comparison python/actions.py @ 255:1f7325245dc8

more stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 16 Dec 2012 22:27:28 -0800
parents 56537ed6ebc6
children f40a172512c6
comparison
equal deleted inserted replaced
254:56537ed6ebc6 255:1f7325245dc8
4 4
5 def __init__(self): 5 def __init__(self):
6 self.functions = {} 6 self.functions = {}
7 7
8 def __call__(self, function): 8 def __call__(self, function):
9 self.functions[function.func_name] = function
9 return function 10 return function
11
12 def do(self, func_name, *args, **kwargs):
13 pass
10 14
11 action = Actions() 15 action = Actions()
12 16
13 @action 17 @action
14 def foo(): 18 def foo():