c.l.w.t.BugTrackerFormatterAPI(ObjectFormatterAPI) : class documentation

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

Adapter for IBugTracker objects to a formatted string.
Method link Return an HTML link to the bugtracker page.
Method external_link Return an HTML link to the external bugtracker.
Method external_title_link Return an HTML link to the external bugtracker.
Method aliases Generate alias URLs, obfuscating where necessary.

Inherited from ObjectFormatterAPI:

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(self, view_name):
Return an HTML link to the bugtracker page.

If the user is not logged-in, the title of the bug tracker is modified to obfuscate all email addresses.

def external_link(self):
Return an HTML link to the external bugtracker.

If the user is not logged-in, and the URL of the bugtracker contains an email address, this returns the obfuscated URL as text (i.e. no <a/> link).

def external_title_link(self):
Return an HTML link to the external bugtracker.

If the user is not logged-in, the title of the bug tracker is modified to obfuscate all email addresses. Additonally, if the URL is a mailto: address then no link is returned, just the title text.

def aliases(self):
Generate alias URLs, obfuscating where necessary.

If the user is not logged-in, email addresses should be hidden.

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