c.l.w._.LaunchpadView(UserAttributeCache) : class documentation

Part of canonical.launchpad.webapp View In Hierarchy

Known subclasses: canonical.launchpad.webapp.__init__.LaunchpadFormView

Base class for views in Launchpad.

Available attributes and methods are:

Method __init__ Undocumented
Method initialize Override this in subclasses.
Method template The page's template, if configured in zcml.
Method render Return the body of the response.
Method __call__ Undocumented
Method _isRedirected Return True if a redirect was requested.
Method _getErrorMessage Property getter for error_message.
Method _setErrorMessage Property setter for error_message.
Method _getInfoMessage Property getter for info_message.
Method _setInfoMessage Property setter for info_message.

Inherited from UserAttributeCache:

Method account Undocumented
Method user The logged-in Person, or None if there is no one logged in.
Method isBetaUser Return True if the user is in the beta testers team.
def __init__(self, context, request):
Undocumented
def initialize(self):
Override this in subclasses.

Default implementation does nothing.

@property
def template(self):
The page's template, if configured in zcml.
def render(self):
Return the body of the response.

If the mime type of request.response starts with text/, then the result of this method is encoded to the charset of request.response. If there is no charset, it is encoded to utf8. Otherwise, the result of this method is treated as bytes.

XXX: Steve Alexander says this is a convenient lie. That is, its not quite right, but good enough for most uses.

def _isRedirected(self):
Return True if a redirect was requested.

Check if the response status is one of 301, 302, 303 or 307.

def __call__(self):
Undocumented
def _getErrorMessage(self):
Property getter for error_message.
def _setErrorMessage(self, error_message):
Property setter for error_message.

Enforces error_message values that are either None or implement IStructuredString.

def _getInfoMessage(self):
Property getter for info_message.
def _setInfoMessage(self, info_message):
Property setter for info_message.

Enforces info_message values that are either None or implement IStructuredString.

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