Mercurial > hg > IntentMadeManifest
comparison intentmademanifest/api.py @ 1:6aafed869664
notes to self
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Sun, 07 Apr 2013 03:29:48 -0700 |
| parents | |
| children | b8be785f8e87 |
comparison
equal
deleted
inserted
replaced
| 0:67cfeffa0d90 | 1:6aafed869664 |
|---|---|
| 1 """ | |
| 2 API | |
| 3 """ | |
| 4 # TODO: probably to workflow.py, state.py, transition.py | |
| 5 | |
| 6 """ | |
| 7 Example usage [STUB]: | |
| 8 | |
| 9 class MyWorkflow(Workflow): | |
| 10 def __init__(self, **kwargs): | |
| 11 Workflow.__init__(self, **kwargs) | |
| 12 """ | |
| 13 | |
| 14 class Workflow(object): | |
| 15 """DG of all workflow""" | |
| 16 | |
| 17 def __init__(self, initial_state=None): | |
| 18 """ | |
| 19 - initial_state: if settable | |
| 20 """ | |
| 21 | |
| 22 def state(self): | |
| 23 """ | |
| 24 current state | |
| 25 """ |
