l.s.w.m.WebhookSet : class documentation

Part of lp.services.webhooks.model View In Hierarchy

See IWebhookSet.
Method new Undocumented
Method delete Undocumented
Method getByID Undocumented
Method findByTarget Undocumented
Method trigger Undocumented
Class Method _checkVisibility Check visibility of the webhook context object.
def new(self, target, registrant, delivery_url, event_types, active, secret):
Undocumented
def delete(self, hooks):
Undocumented
def getByID(self, id):
Undocumented
def findByTarget(self, target):
Undocumented
@classmethod
def _checkVisibility(cls, context, user):
Check visibility of the webhook context object.

In order to be able to dispatch a webhook without disclosing unauthorised information, the webhook owner (currently always equal to the webhook target owner) must be able to see the context for the action that caused the webhook to be triggered.

ReturnsTrue if the context is visible to the webhook owner, otherwise False.
def trigger(self, target, event_type, payload, context=None):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.