Part of canonical.launchpad.webapp
| 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. |
Raises NoCanonicalUrl if canonical url data is not available.
Raises NoCanonicalUrl if a canonical url is not available.
'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.