Part of canonical.launchpad.webapp
| Function | get_current_view | Return the current view or None. |
| Function | get_facet | Return the view's facet name. |
| Class | LinkData | General links that aren't default links. |
| Class | MenuLink | Adapter from ILinkData to ILink. |
| Class | FacetLink | Adapter from ILinkData to IFacetLink. |
| Class | MenuBase | Base class for facets and menus. |
| Function | escape | Performs translation and sanitizes any HTML present in the message. |
| Function | translate_if_i18n | Translate an internationalized object, returning the result. |
| Parameters | request | A IHTTPApplicationRequest. If request is None, the
current browser request is used. |
| Returns | The view from requests that provide IHTTPApplicationRequest. | |
A plain string message will be sanitized ("&", "<" and ">" are
converted to HTML-safe sequences). 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 santizied.
| Parameters | message | This may be a string, zope.i18n.Message,
zope.i18n.MessageID, or an instance of IStructuredString. |