~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-26 13:59:20 UTC
  • mfrom: (14603 devel)
  • mto: This revision was merged to the branch mainline in revision 14604.
  • Revision ID: curtis.hovey@canonical.com-20111226135920-cbhchj893b5vay30
Merged devel.

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.