pass method to event
This commit is contained in:
parent
1e9f8e86c0
commit
ea0fc71ef3
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ def fire_event(doc, event_name):
|
|||
for t in tl:
|
||||
module, method = '.'.join(t[0].split('.')[:-1]), t[0].split('.')[-1]
|
||||
exec 'from %s import %s' % (module, method) in locals()
|
||||
locals()[method](doc)
|
||||
locals()[method](doc, method)
|
||||
#
|
||||
# setup
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue