~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-06-25 08:55:37 UTC
  • mfrom: (13287.1.8 bug-800652)
  • Revision ID: launchpad@pqm.canonical.com-20110625085537-moikyoo2pe98zs7r
[r=jcsackett, julian-edwards][bug=800634,
        800652] Enable and display overrides on sync package uploads.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009 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
31
31
    Int,
32
32
    )
33
33
 
34
 
from lp import _
 
34
from canonical.launchpad import _
 
35
from canonical.launchpad.components.apihelpers import (
 
36
    patch_reference_property,
 
37
    )
35
38
from lp.bugs.enum import BugNotificationLevel
36
39
from lp.services.fields import PersonChoice
37
 
from lp.services.webservice.apihelpers import patch_reference_property
38
40
 
39
41
 
40
42
class IBugSubscription(Interface):
48
50
        readonly=True, description=_("The person's Launchpad ID or "
49
51
        "e-mail address.")), as_of="beta")
50
52
    bug = exported(Reference(
51
 
        Interface, title=_("Bug"), required=True, readonly=True),
52
 
        as_of="beta")
 
53
        Interface, title=_("Bug"), required=True, readonly=True), as_of="beta")
53
54
    # We mark this as doNotSnapshot() because it's a magically-generated
54
55
    # Storm attribute and it causes Snapshot to break.
55
56
    bugID = doNotSnapshot(Int(title=u"The bug id.", readonly=True))
86
87
        """Can the user unsubscribe the subscriber from the bug?"""
87
88
 
88
89
 
 
90
 
89
91
# In order to avoid circular dependencies, we only import
90
92
# IBug (which itself imports IBugSubscription) here, and assign it as
91
93
# the value type for the `bug` reference.