class Action(ObservableItem,ItemWithStatus):
+ """Actions in the GTD terminology are physical, visible activities.
+ In MobileGTD, an action consists of a description (e.g. "Google for Python"),
+ a context ("@Computer") and optionally a project which it belongs to and
+ additional information.
+ An Action also has a state. This can be one of the following:
+ - unprocessed: New, has not yet been processed in any way by MobileGTD
+ - active: The action is among the next actions
+ - done: The action has been performed
+ - tickled: The action has been postponed to a certain date
+ - inactive: The action has been paused
+ """
def parse(string):
assert type(string) == unicode
context,description,info,status = parse_action_line(string)
class Project(ObservableItem,ItemWithStatus):
+ """Projects in the GTD terminology are things that need more than one
+ step to completion.
+ In MobileGTD a project consists of a name, a set of actions and a set of infos.
+ A Project also has a state. This can be one of the following:
+ - unprocessed: New, has not yet been processed in any way by MobileGTD
+ - active: It is planned to work on the project before the next Review cycle
+ - done: The project has been finished
+ - tickled: The project has been postponed to a certain date
+ - inactive: The project has been paused
+ """
observers = []
def __init__(self,name,status = inactive):
assert type(name) == unicode