def init(e):
- def hook_m_0(self):
+ def hook_m_0(e):
e.log.info('Hey! It\'s me, the dummy extension in your main pipeline! (at time 0)')
- e.main_pipe.insert(hook_m_0, 'exts.dummy.hook_m_0', 0)
- def hook_m_79(self):
+ e.main_pipe.insert(0, 'exts.dummy.hook_m_0', hook_m_0)
+
+ def hook_m_79(e):
e.log.info('Me, the dummy extension, requies no cleanup! (at time 79)')
- e.main_pipe.insert(hook_m_79, 'exts.dummy.hook_m_79', 79)
- def hook_t_42(self):
+ e.main_pipe.insert(79, 'exts.dummy.hook_m_79', hook_m_79)
+
+ def hook_t_42(e):
t = 'It\'s test %s and the dummy extension did nothing! (at time 42)' % e['TEST']
e.log.info(t)
e.log.user.info(t)
- e.test_pipe.insert(hook_t_42, 'exts.dummy.hook_t_42', 42)
+
+ e.test_pipe.insert(42, 'exts.dummy.hook_t_42', hook_t_42)