Part of canonical.launchpad.webapp.interfaces View In Hierarchy
Known implementations: canonical.launchpad.webapp.notifications.NotificationResponse, canonical.launchpad.webapp.servers.LaunchpadTestResponse
| Method | addNotification | Append the given message to the list of notifications. |
| Method | removeAllNotifications | Remove all notifications. |
| Object | notifications | Undocumented |
| Method | addDebugNotification | Shortcut to addNotification(msg, DEBUG). |
| Method | addInfoNotification | Shortcut to addNotification(msg, INFO). |
| Method | addNoticeNotification | Shortcut to addNotification(msg, NOTICE). |
| Method | addWarningNotification | Shortcut to addNotification(msg, WARNING). |
| Method | addErrorNotification | Shortcut to addNotification(msg, ERROR). |
| Method | redirect | Like IHTTPApplicationResponse.redirect, preserving notifications. |
A plain string message will be CGI escaped. Passing a message
that provides the IStructuredString interface will return a
unicode string that has been properly escaped. Passing an
instance of a Zope internationalized message will cause the
message to be translated, then CGI escaped.
| Parameters | msg | This may be a string, an instance of zope.i18n.Message,
or an instance of IStructuredString. |
| level | One of the BrowserNotificationLevel values: DEBUG,
INFO, NOTICE, WARNING, ERROR. |