c.l.w.t.PageTemplateContextsAPI : class documentation

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

Implements interfaces: zope.traversing.interfaces.ITraversable

Adapter from page tempate's CONTEXTS object to fmt:pagetitle.

This is registered to be used for the dict type.

Method __init__ Undocumented
Method traverse Undocumented
Method pagetitle Return the string title for the page template CONTEXTS dict.
def __init__(self, contextdict):
Undocumented
def traverse(self, name, furtherPath):
Undocumented
def pagetitle(self):
Return the string title for the page template CONTEXTS dict.

Take the simple filename without extension from self.contextdict['template'].filename, replace any hyphens with underscores, and use this to look up a string, unicode or function in the module canonical.launchpad.pagetitles.

If no suitable object is found in canonical.launchpad.pagetitles, emit a warning that this page has no title, and return the default page title.

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