~gmb/launchpad/fix-dupe-emails-bug-673203

« back to all changes in this revision

Viewing changes to lib/lp/registry/interfaces/structuralsubscription.py

[r=jelmer][ui=none][bug=672507] The bug_notification_level field is
        now available for structural subscriptions when the advanced
        subscriptions feature flag is switched on.

Show diffs side-by-side

added added

removed removed

Lines of Context:
217
217
            required=False))
218
218
    @call_with(subscribed_by=REQUEST_USER)
219
219
    @export_factory_operation(IStructuralSubscription, [])
220
 
    def addBugSubscription(subscriber, subscribed_by):
 
220
    def addBugSubscription(subscriber, subscribed_by,
 
221
                           bug_notification_level=None):
221
222
        """Add a bug subscription for this structure.
222
223
 
223
224
        This method is used to create a new `IStructuralSubscription`
227
228
        :subscriber: The IPerson who will be subscribed. If omitted,
228
229
            subscribed_by will be used.
229
230
        :subscribed_by: The IPerson creating the subscription.
 
231
        :bug_notification_level: The BugNotificationLevel for the
 
232
            subscription. If omitted, BugNotificationLevel.COMMENTS will be
 
233
            used.
230
234
        :return: The new bug subscription.
231
235
        """
232
236