c.l.w.t.PillarFormatterAPI(CustomizableFormatter) : class documentation

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

Adapter for IProduct, IDistribution and IProjectGroup objects to a formatted string.
Method url See ObjectFormatterAPI.
Method link The html to show a link to a Product, ProjectGroup or distribution.
Method _link_summary_values Return a dict of values to use for template substitution.

Inherited from CustomizableFormatter:

Method sprite_css Retrieve the icon for the _context, if any.
Method _make_link_summary Create a summary from _template and _link_summary_values().

Inherited from ObjectFormatterAPI (via CustomizableFormatter):

Method __init__ Undocumented
Method api_url Return the object's (partial) canonical web service URL.
Method traverse Undocumented
Method public_private_css Return the CSS class that represents the object's privacy.
Method pagetitle The page title to be used.
def _link_summary_values(self):
Return a dict of values to use for template substitution.

These values should not be escaped, as this will be performed later. For this reason, only string values should be supplied.

def url(self, view_name=None, rootsite=None):
See ObjectFormatterAPI.

The default URL for a pillar is to the mainsite.

def link(self, view_name, rootsite='mainsite'):
The html to show a link to a Product, ProjectGroup or distribution.

In the case of Products or ProjectGroups we display the custom icon, if one exists. The default URL for a pillar is to the mainsite.

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