c.l.w.s.LaunchpadBrowserResponse(NotificationResponse, BrowserResponse) : class documentation

Part of canonical.launchpad.webapp.servers View In Hierarchy

Known subclasses: canonical.launchpad.webapp.servers.LaunchpadTestResponse, lp.vostok.publisher.VostokBrowserResponse

No class docstring
Method __init__ Undocumented
Method redirect Do a redirect.

Inherited from NotificationResponse:

Method addNotification See INotificationResponse.
Method notifications Undocumented
Method removeAllNotifications See canonical.launchpad.webapp.interfaces.INotificationResponse
Method addDebugNotification See INotificationResponse.
Method addInfoNotification See INotificationResponse.
Method addNoticeNotification See INotificationResponse.
Method addWarningNotification See INotificationResponse.
Method addErrorNotification See INotificationResponse.
def __init__(self, header_output=None, http_transaction=None):
Undocumented
def redirect(self, location, status=None, trusted=True, temporary_if_possible=False):
Do a redirect.

Unlike Zope's BrowserResponse.redirect(), consider all redirects to be trusted. Otherwise we'd have to change all callsites that redirect from lp.net to vhost.lp.net to pass trusted=True.

If temporary_if_possible is True, then do a temporary redirect if this is a HEAD or GET, otherwise do a 303.

See RFC 2616.

The interface doesn't say that redirect returns anything. However, Zope's implementation does return the location given. This is largely useless, as it is just the location given which is often relative. So we won't return anything.

API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.