Part of canonical.launchpad.webapp
Function | parse_iso8601_date | Parses a standard ISO 8601 format date, ignoring time zones. |
Class | ErrorReportEvent | A new error report has been created. |
Class | ErrorReport | No class docstring; 0/1 class methods, 1/4 methods documented |
Class | ErrorReportingUtility | No class docstring; 9/12 methods documented |
Class | ErrorReportRequest | Undocumented |
Class | ScriptRequest | Fake request that can be passed to ErrorReportingUtility.raising. |
Class | OopsLoggingHandler | Python logging handler that records OOPSes on exception. |
Class | SoftRequestTimeout | Soft request timeout expired |
Function | end_request | Undocumented |
Class | UserRequestOops | A user requested OOPS to log statements. |
Function | maybe_record_user_requested_oops | If an OOPS has been requested, report one. |
Class | OopsNamespace | A namespace handle traversals with ++oops++. |
Function | _normalise_whitespace | Normalise the whitespace in a string to spaces |
Function | _safestr | Undocumented |
Function | _is_sensitive | Return True if the given request variable name is sensitive. |
Return True if the given request variable name is sensitive. Sensitive request variables should not be recorded in OOPS reports. Currently we consider the following to be sensitive: * any name containing 'password' or 'passwd' * cookies * the HTTP_COOKIE header.
Performs no validation whatsoever. It just plucks up to the first
7 numbers from the string and passes them to datetime.datetime
,
so would in fact parse any string containing reasonable numbers.
This function can be replaced with datetime.datetime.strptime()
once we move to Python 2.5.