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

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

Adapter providing fmt support for IPPA objects.
Method link Return html including a link for the context PPA.
Method reference Return the text PPA reference for a PPA.
Method _link_summary_values See CustomizableFormatter._link_summary_values.

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 url Return the object's canonical URL.
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):
See CustomizableFormatter._link_summary_values.
def link(self, view_name):
Return html including a link for the context PPA.

Render a link using CSS sprites for users with permission to view the PPA.

Disabled PPAs are listed with sprites but not linkified.

Unaccessible private PPA are not rendered at all (empty string is returned).

def reference(self, view_name=None, rootsite=None):
Return the text PPA reference for a PPA.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.