602
602
# Register an event listener that will print events it receives.
603
603
>>> from lazr.lifecycle.interfaces import (
604
604
... IObjectCreatedEvent, IObjectModifiedEvent)
606
606
>>> from lp.answers.interfaces.question import IQuestion
608
608
>>> def print_event(object, event):