c.l.w.publisher : module documentation

Part of canonical.launchpad.webapp

Publisher of objects as web pages.
Class DecoratorAdvisor Base class for a function decorator that adds class advice.
Class UserAttributeCache Mix in to provide self.user, cached.
Class LaunchpadRootUrlData ICanonicalUrlData for the ILaunchpadRoot object.
Function canonical_urldata_iterator Iterate over the urldata for the object and each of its canonical url
Function canonical_url_iterator Iterate over the object and each of its canonical url parents.
Class CanonicalAbsoluteURL A bridge between Zope's IAbsoluteURL and Launchpad's canonical_url.
Function layer_for_rootsite Return the registered layer for the specified rootsite.
Class FakeRequest Used solely to provide a layer for the view check in canonical_url.
Class RootObject Undocumented
Class LaunchpadContainer No class docstring; 1/2 methods documented
Class RedirectionView Undocumented
Class RenamedView Redirect permanently to the new name of the view.
def canonical_urldata_iterator(obj):
Iterate over the urldata for the object and each of its canonical url parents.

Raises NoCanonicalUrl if canonical url data is not available.

def canonical_url_iterator(obj):
Iterate over the object and each of its canonical url parents.

Raises NoCanonicalUrl if a canonical url is not available.

def layer_for_rootsite(rootsite):
Return the registered layer for the specified rootsite.

'code' -> lp.code.publisher.CodeLayer 'translations' -> lp.translations.publisher.TranslationsLayer et al.

The layer is defined in ZCML using a named utility with the name of the rootsite, and providing IDefaultBrowserLayer. If there is no utility defined with the specified name, then LaunchpadLayer is returned.

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