l.a.b.l.ReturnToReferrerMixin : class documentation

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

Known subclasses: lp.bugs.browser.bugsubscription.BugSubscriptionSubscribeSelfView, lp.bugs.browser.bugtask.BugTaskDeletionView, lp.registry.browser.product.ProductConfigureBase, lp.registry.browser.product.ProductReviewLicenseView, lp.registry.browser.product.ProductSetBranchView, lp.registry.browser.product.ProjectAddStepTwo, lp.registry.browser.sourcepackage.SourcePackageChangeUpstreamStepOne, lp.registry.browser.sourcepackage.SourcePackageChangeUpstreamStepTwo, lp.registry.browser.sourcepackage.SourcePackageRemoveUpstreamView, lp.translations.browser.potemplate.POTemplateEditView, lp.translations.browser.productseries.ProductSeriesTranslationsSettingsView

Return to the previous page after submitting the form.

The _return_url is stored in a hidden field in the launchpad-form.pt between the request to view the form and submitting the form.

_return_attribute_name and _return_attribute_values are also stored as hidden fields and they are used to check the validity of _return_url.

If _return_url depends on _return_attribute_name, the result of a form submission can invalidate it. If this is the case, _return_attribute_name should be overwritten to return the attribute name to which _return_url depends.

Method _return_attribute_name Undocumented
Method _return_attribute_value Undocumented
Method _return_url See LaunchpadFormView.
@property
def _return_attribute_name(self):
Undocumented
@property
def _return_attribute_value(self):
Undocumented
@property
def _return_url(self):
See LaunchpadFormView.
API Documentation for Launchpad, generated by pydoctor at 2019-08-20 00:00:04.