l.s.w.e.ScriptRequest(ErrorReportRequest) : class documentation

Part of lp.services.webapp.errorlog View In Hierarchy

Known subclasses: lp.codehosting.bzrutils.BazaarOopsRequest

Fake request that can be passed to ErrorReportingUtility.raising.

It can be used by scripts to enrich error reports with context information and a representation of the resource on which the error occurred. It also gives access to the generated OOPS id.

The resource for which the error occurred MAY be identified by an URL. This URL should point to a human-readable representation of the model object, such as a page on launchpad.net, even if this URL does not occur as part of the normal operation of the script.

Parametersdatacontext information relevant to diagnosing the error. It is recorded as request-variables in the OOPS.
URLinitial value of the URL instance variable.
Instance VariablesURLpointer to a representation of the resource for which the error occured. Defaults to None.
oopsidthe oopsid set by ErrorReportingUtility.raising. Initially set to None.
Method __init__ Undocumented
Method items Undocumented
Method form Undocumented
def __init__(self, data, URL=None):
Undocumented
def items(self):
Undocumented
@property
def form(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.