Commit b6911ffb authored by Jean-Paul Smets's avatar Jean-Paul Smets

A bit more ideas.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16439 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4473a817
...@@ -143,6 +143,21 @@ class TypeInteractorExample(Interactor): ...@@ -143,6 +143,21 @@ class TypeInteractorExample(Interactor):
pass pass
# do whatever # do whatever
class InteractorOfInteractor(Interactor)
def __init__(self, interactor):
self.interactor = interactor
def install(self):
self.on(interactor.doSomething).doAfter(self.doSomething)
def doSomething(self, method_call_object):
pass
test = AqDynamicInteractor() test = AqDynamicInteractor()
test.install() test.install()
\ No newline at end of file
#interactor_of_interactor = InteractorOfInteractor(test)
#interactor_of_interactor.install()
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment