from datetime import datetime from turbogears import database from util import * __all__ = ['Mmf'] ################################## # Planning model ################################## statuses = ['new', 'in progress', 'done' ] class Mmf(object): """A Minimal Marketable Feature is the core unit of planning: something large enough to have value, and small enough to build.""" def __init__(self, name, description, status="new"): self.name = name self.description = description self.status = "new" if status.lower().strip() in statuses: self.status = status.lower().strip() def __repr__(self): # fixme return "(mmf %s %s %s)" % (self.name, self.description, self.order)