l.a.b.t.PersonFormatterAPI(ObjectFormatterAPI) : class documentation

Part of lp.app.browser.tales View In Hierarchy

Known subclasses: lp.app.browser.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 link_display_name_id Return a link to the user's profile page.
Method _makeLink Undocumented

Inherited from ObjectFormatterAPI:

Method __init__ Undocumented
Method api_url Return the object's (partial) canonical web service URL.
Method traverse Traverse the specified path, processing any optional parameters.
Method global_css Undocumented
Method pagetitle The page title to be used.
Method _getSaneBreadcrumbDetail Undocumented
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 link_display_name_id(self, view_name):
Return a link to the user's profile page.

The link text uses both the display name and Launchpad id to clearly indicate which user profile is linked.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.