moved class stripe to another file

renamed decorator
This commit is contained in:
Giovanni Harting
2015-08-28 02:35:52 +02:00
parent 1aa955ce91
commit 7e421bc676
4 changed files with 77 additions and 64 deletions

View File

@@ -15,7 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
def add_action(actiondict):
def ledd_protocol(proto):
"""
Decorator used to add functions to action dict
:param actiondict: dict to add to
@@ -23,7 +23,7 @@ def add_action(actiondict):
"""
def wrap(f):
actiondict[f.__name__] = f
proto[f.__name__] = f
def wrapped_f(*args):
f(*args)