l.s.w.publisher : module documentation

Part of lp.services.webapp

Publisher of objects as web pages.
Class DecoratorAdvisor Base class for a function decorator that adds class advice.
Class DataDownloadView Download data without templating.
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.
Function get_raw_form_value_from_current_request Undocumented
Class RootObject Undocumented
Class LaunchpadContainer No class docstring; 2/4 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.

def get_raw_form_value_from_current_request(field, field_name):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2018-02-24 00:00:04.