changeset 395:28ca88607682

-> http://k0s.org/hg/IntentMadeManifest/rev/734d26329c82
author Jeff Hammel <jhammel@mozilla.com>
date Mon, 29 Jul 2013 22:15:23 -0700
parents ff13c22effdf
children f3472dd25d9e
files python/actions.py
diffstat 1 files changed, 0 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/python/actions.py	Mon Jul 29 22:10:56 2013 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,29 +0,0 @@
-#!/usr/bin/env python
-
-class Actions(object):
-
-    def __init__(self):
-        self.functions = {}
-
-    def __call__(self, function, dependencies):
-        import pdb; pdb.set_trace()
-        self.functions[function.func_name] = function
-        return function
-
-    def do(self, func_name):
-        self.functions[func_name]()
-
-action = Actions()
-
-@action
-def foo():
-    print "hello"
-
-@action('foo')
-def bar():
-    print "goodbye"
-
-if __name__ == '__main__':
-    pass
-
-action.do('bar')