[trigger] Refactorisation (voir détails) - On passe aux tests
* Pour une plus grande modularité, event a été refactorisé, ce qui a impliqué de réécrire le fonctionnement des services. * Maintenant, y a plus qu'à tester.
This commit is contained in:
parent
3d98882755
commit
d29343392b
7 changed files with 283 additions and 130 deletions
|
@ -29,8 +29,8 @@ class TriggerFactory(object):
|
|||
def get_services(cls):
|
||||
return cls._meths.values()
|
||||
|
||||
def record(function):
|
||||
TriggerFactory.register(function.func_name, function)
|
||||
def record(cls):
|
||||
TriggerFactory.register(cls.__name__, cls)
|
||||
|
||||
def trigger(what):
|
||||
return TriggerFactory.get(what)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue