changeset 2:b8be785f8e87

lets pretend that were dead...er, doing something
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 07 Apr 2013 13:51:29 -0700
parents 6aafed869664
children 613d4807661e
files README.txt intentmademanifest/api.py setup.py
diffstat 3 files changed, 33 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt
+++ b/README.txt
@@ -1,31 +1,47 @@
 IntentMadeManifest
 ===========
 
 python workflow engine via directed graph
 
 As risen from the stillborn ashes:
 http://k0s.org/mozilla/hg/MozbaseWorkflow/
 
+
+Potential Uses
+--------------
+
+* dependency somethin somethin'
+
+
 Links
 -----
 
 Python packages:
 
 * https://pypi.python.org/pypi/finite
   Yet another finite state automaton
 
 * https://pypi.python.org/pypi/fluidity-sm
   State machine implementation for Python objects.
 
 * https://pypi.python.org/pypi/fysom
   pYthOn Finite State Machine
 
+* https://pypi.python.org/pypi/workflow/1.01
+  Simple workflows for Python;
+  Not sure if this is really what's needed. And....1.01???
 
-Potential Uses
---------------
+* https://pypi.python.org/pypi/xworkflows
+  A library implementing workflows (or state machines) for Python projects.
 
-* dependency somethin somethin'
+
+State Machines:
+
+Workflow == state machines, so an understanding from either
+perspective is the same apropos the other.
+
+* http://en.wikipedia.org/wiki/Finite-state_machine
 
 ----
 
 Jeff Hammel
--- a/intentmademanifest/api.py
+++ b/intentmademanifest/api.py
@@ -16,10 +16,22 @@ class Workflow(object):
 
     def __init__(self, initial_state=None):
         """
         - initial_state: if settable
         """
 
     def state(self):
         """
-        current state
+        current state;
+        returns the current state object
         """
+
+class State(object):
+    """a state"""
+
+    def __init__(self, *transitions):
+
+    def available():
+        """avalable transitions"""
+
+    def transit():
+        """invoke a transition"""
--- a/setup.py
+++ b/setup.py
@@ -1,16 +1,16 @@
 """
 setup packaging script for IntentMadeManifest
 """
 
 import os
 
 version = "0.0"
-dependencies = ['MakeItSo', 'webob']
+dependencies = []
 
 # allow use of setuptools/distribute or distutils
 kw = {}
 try:
     from setuptools import setup
     kw['entry_points'] = """
       [console_scripts]
       IntentMadeManifest = IntentMadeManifest.main:main