l.b.b.b.BugSubscriptionSubscribeSelfView(LaunchpadFormView, ReturnToReferrerMixin, AdvancedSubscriptionMixin) : class documentation

Part of lp.bugs.browser.bugsubscription View In Hierarchy

A view to handle the +subscribe page for a bug.
Method field_names Undocumented
Method next_url Provided so returning to the page they came from works.
Method initialize See LaunchpadFormView.
Method current_user_subscription Undocumented
Method setUpFields See LaunchpadFormView.
Method setUpWidgets See LaunchpadFormView.
Method user_is_muted Undocumented
Method user_is_subscribed_directly Is the user subscribed directly to this bug?
Method user_is_subscribed_to_dupes Is the user subscribed to dupes of this bug?
Method user_is_subscribed Is the user subscribed to this bug?
Method user_is_subscribed_to_dupes_only Is the user subscribed to this bug only via a dupe?
Method shouldShowUnsubscribeFromDupesWarning Should we warn the user about unsubscribing and duplicates?
Method subscribe_action Handle subscription requests.
Method _subscribers_for_current_user Return a dict of the subscribers for the current user.
Method _update_subscription_term Undocumented
Method _unsubscribe_current_user_term Undocumented
Method _unmute_user_term Undocumented
Method _subscription_field Undocumented
Method _handleSubscribe Handle a subscribe request.
Method _handleUnsubscribe Handle an unsubscribe request.
Method _handleUnmute Handle an unmute request.
Method _handleUnsubscribeCurrentUser Handle the special cases for unsubscribing the current user.
Method _handleUnsubscribeOtherUser Handle unsubscribing someone other than the current user.
Method _handleUpdateSubscription Handle updating a user's subscription.
Method _getUnsubscribeNotification Construct and return the unsubscribe-from-bug feedback message.
Method _getUnsubscribedDupesMsgFragment Return the duplicates fragment of the unsubscription notification.

Inherited from LaunchpadFormView:

Method __init__ Undocumented
Method render Return the body of the response.
Method extendFields Allow subclasses to extend the form fields.
Method help_links Dictionary mapping field names to help links.
Method adapters Provide custom adapters for use when setting up the widgets.
Method action_url Set the default action URL for the form.
Method has_available_actions Does the view have any available actions that will render?
Method initial_values Override this in your subclass if you want any widgets to have
Method addError Add a form wide error.
Method getFieldError Get the error associated with a particular field.
Method setFieldError Set the error associated with a particular field.
Static Method validate_none Do not do any validation.
Method validate_widgets Validate the named form widgets.
Method error_count Undocumented
Method ajax_failure_handler Called by the form if validate() finds any errors.
Method validate Validate the form.
Method validate_cancel Noop validation in case we cancel.
Method focusedElementScript Helper function to construct the script element content.
Method isSingleLineLayout Undocumented
Method isMultiLineLayout Undocumented
Method isCheckBoxLayout Undocumented
Method showOptionalMarker Should the (Optional) marker be shown?
Method _processNotifications Add any notification messages to the response headers.
Method _abort Abort the form edit.
Method _validate Check all widgets and perform any custom validation.

Inherited from ReturnToReferrerMixin:

Method _return_attribute_name Undocumented
Method _return_attribute_value Undocumented
Method _return_url See LaunchpadFormView.

Inherited from AdvancedSubscriptionMixin:

Method _bug_notification_level_field Return a custom form field for bug_notification_level.
Method _setUpBugNotificationLevelField Set up the bug_notification_level field.
@property
def field_names(self):
Undocumented
@property
def next_url(self):
Provided so returning to the page they came from works.
@cachedproperty
def _subscribers_for_current_user(self):
Return a dict of the subscribers for the current user.
def initialize(self):
See LaunchpadFormView.
@cachedproperty
def current_user_subscription(self):
Undocumented
@cachedproperty
def _update_subscription_term(self):
Undocumented
@cachedproperty
def _unsubscribe_current_user_term(self):
Undocumented
@cachedproperty
def _unmute_user_term(self):
Undocumented
@cachedproperty
def _subscription_field(self):
Undocumented
def setUpFields(self):
See LaunchpadFormView.
def setUpWidgets(self):
See LaunchpadFormView.
@cachedproperty
def user_is_muted(self):
Undocumented
@cachedproperty
def user_is_subscribed_directly(self):
Is the user subscribed directly to this bug?
@cachedproperty
def user_is_subscribed_to_dupes(self):
Is the user subscribed to dupes of this bug?
@property
def user_is_subscribed(self):
Is the user subscribed to this bug?
@property
def user_is_subscribed_to_dupes_only(self):
Is the user subscribed to this bug only via a dupe?
def shouldShowUnsubscribeFromDupesWarning(self):
Should we warn the user about unsubscribing and duplicates?

The warning should tell the user that, when unsubscribing, they will also be unsubscribed from dupes of this bug.

@action('Continue', 'continue')
def subscribe_action(self, action, data):
Handle subscription requests.
def _handleSubscribe(self, level=None):
Handle a subscribe request.
def _handleUnsubscribe(self, user):
Handle an unsubscribe request.
def _handleUnmute(self):
Handle an unmute request.
def _handleUnsubscribeCurrentUser(self):
Handle the special cases for unsubscribing the current user.
def _handleUnsubscribeOtherUser(self, user):
Handle unsubscribing someone other than the current user.
def _handleUpdateSubscription(self, level):
Handle updating a user's subscription.
def _getUnsubscribeNotification(self, user, unsubed_dupes):
Construct and return the unsubscribe-from-bug feedback message.
Unknown Field: userThe IPerson or ITeam that was unsubscribed from the bug.
Unknown Field: unsubed_dupesThe list of IBugs that are dupes from which the user was unsubscribed.
def _getUnsubscribedDupesMsgFragment(self, unsubed_dupes):
Return the duplicates fragment of the unsubscription notification.

This piece lists the duplicates from which the user was unsubscribed.

API Documentation for Launchpad, generated by pydoctor at 2019-08-20 00:00:04.