l.s.w.payload : module documentation

Part of lp.services.webhooks

No module docstring
Interface IWebhookPayloadRequest An internal fake request used while composing webhook payloads.
Class WebhookPayloadRequest An internal fake request used while composing webhook payloads.
Class WebhookAbsoluteURL A variant of CanonicalAbsoluteURL that always forces a local path.
Function compose_webhook_payload Compose a webhook payload dictionary from some fields of an object.
def compose_webhook_payload(interface, obj, names):
Compose a webhook payload dictionary from some fields of an object.

Fields are serialised in the same way that lazr.restful does for webservice-exported objects, except that object paths are always local.

ParametersinterfaceThe interface of the object to serialise.
objThe object to serialise.
namesA list of fields from obj to serialise.
API Documentation for Launchpad, generated by pydoctor at 2018-08-16 00:00:03.