~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/interfaces/bugsubscription.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-26 06:01:53 UTC
  • mfrom: (14575.2.4 megalint-9)
  • Revision ID: launchpad@pqm.canonical.com-20111226060153-1rfmi1yn90lu4fuf
[r=jtv][no-qa] Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=E0211,E0213
32
32
    )
33
33
 
34
34
from lp import _
35
 
from lp.services.webservice.apihelpers import patch_reference_property
36
35
from lp.bugs.enum import BugNotificationLevel
37
36
from lp.services.fields import PersonChoice
 
37
from lp.services.webservice.apihelpers import patch_reference_property
38
38
 
39
39
 
40
40
class IBugSubscription(Interface):
48
48
        readonly=True, description=_("The person's Launchpad ID or "
49
49
        "e-mail address.")), as_of="beta")
50
50
    bug = exported(Reference(
51
 
        Interface, title=_("Bug"), required=True, readonly=True), as_of="beta")
 
51
        Interface, title=_("Bug"), required=True, readonly=True),
 
52
        as_of="beta")
52
53
    # We mark this as doNotSnapshot() because it's a magically-generated
53
54
    # Storm attribute and it causes Snapshot to break.
54
55
    bugID = doNotSnapshot(Int(title=u"The bug id.", readonly=True))
85
86
        """Can the user unsubscribe the subscriber from the bug?"""
86
87
 
87
88
 
88
 
 
89
89
# In order to avoid circular dependencies, we only import
90
90
# IBug (which itself imports IBugSubscription) here, and assign it as
91
91
# the value type for the `bug` reference.