# HG changeset patch # User Jeff Hammel # Date 1355725277 28800 # Node ID 56537ed6ebc6e2f165da08fff60778fb609ea9d3 # Parent 8593b0384d3e3b24b019c9eb2fa21ecd5dba0dc9 sample actions file with dependencies (stub) diff -r 8593b0384d3e -r 56537ed6ebc6 python/actions.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python/actions.py Sun Dec 16 22:21:17 2012 -0800 @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +class Actions(object): + + def __init__(self): + self.functions = {} + + def __call__(self, function): + return function + +action = Actions() + +@action +def foo(): + print "hello" + +@action +def bar(): + print "goodbye" + +if __name__ == '__main__': + pass