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

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

Known subclasses: canonical.launchpad.webapp.tales.TeamFormatterAPI

Adapter for IPerson objects to a formatted string.
Method local_time Return the local time for this person.
Method url See ObjectFormatterAPI.
Method link See ObjectFormatterAPI.
Method displayname Return the displayname as a string.
Method unique_displayname Return the unique_displayname as a string.
Method icon Return the URL for the person's icon.
Method nameLink Return the Launchpad id of the person, linked to their profile.
Method _makeLink Undocumented

Inherited from ObjectFormatterAPI:

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 local_time(self):
Return the local time for this person.
def url(self, view_name=None, rootsite='mainsite'):
See ObjectFormatterAPI.

The default URL for a person is to the mainsite.

def _makeLink(self, view_name, rootsite, text):
Undocumented
def link(self, view_name, rootsite='mainsite'):
See ObjectFormatterAPI.

Return an HTML link to the person's page containing an icon followed by the person's name. The default URL for a person is to the mainsite.

def displayname(self, view_name, rootsite=None):
Return the displayname as a string.
def unique_displayname(self, view_name):
Return the unique_displayname as a string.
def icon(self, view_name):
Return the URL for the person's icon.
def nameLink(self, view_name):
Return the Launchpad id of the person, linked to their profile.
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.