l.s.l.a.storm : module documentation

Part of lp.services.longpoll.adapters

Long-poll life-cycle adapters.
Function gen_primary_key Generate the primary key values for the given model instance.
Function get_primary_key Return the primary key for the given model instance.
Class LongPollStormEvent A ILongPollEvent for events of Storm objects.
Class LongPollStormCreationEvent A ILongPollEvent for events of Storm classes.
Function object_created Subscription handler for Storm creation events.
Function object_deleted Subscription handler for Storm deletion events.
Function object_modified Subscription handler for Storm modification events.
def gen_primary_key(model_instance):
Generate the primary key values for the given model instance.
def get_primary_key(model_instance):
Return the primary key for the given model instance.

If the primary key contains only one value it is returned, otherwise all the primary key values are returned in a tuple.

@adapter(Storm, IObjectCreatedEvent)
def object_created(model_instance, object_event):
Subscription handler for Storm creation events.
@adapter(Storm, IObjectDeletedEvent)
def object_deleted(model_instance, object_event):
Subscription handler for Storm deletion events.
@adapter(Storm, IObjectModifiedEvent)
def object_modified(model_instance, object_event):
Subscription handler for Storm modification events.
API Documentation for Launchpad, generated by pydoctor at 2018-10-17 00:00:11.