Part of lp.bugs.browser.bugsubscription View In Hierarchy
| 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. |
The warning should tell the user that, when unsubscribing, they will also be unsubscribed from dupes of this bug.