Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/o/collective.hook-1.0b1/collective/hook/decorator.py   collective.hook(Download)
from zope import event
 
from collective.hook.event import HookEvent
 
def hook(eventclass=HookEvent):

src/c/o/collective.hook-1.0b1/collective/hook/tests/test_event.py   collective.hook(Download)
    def setUp(self):
        self.event = event.HookEvent()
 
    def testBefore(self):
        #initialization, the event must already be at before=True