~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/interfaces/specificationsubscription.py

Add DistroSeriesInitializeView.rebuilding_allowed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    'ISpecificationSubscription',
12
12
    ]
13
13
 
14
 
from lazr.restful.declarations import (
15
 
    call_with,
16
 
    export_as_webservice_entry,
17
 
    export_read_operation,
18
 
    operation_for_version,
19
 
    REQUEST_USER,
20
 
    )
21
14
from zope.interface import (
22
15
    Attribute,
23
16
    Interface,
34
27
class ISpecificationSubscription(Interface):
35
28
    """A subscription for a person to a specification."""
36
29
 
37
 
    export_as_webservice_entry(publish_web_link=False, as_of='devel')
38
 
 
39
30
    id = Int(
40
31
        title=_('ID'), required=True, readonly=True)
41
32
    person = PublicPersonChoice(
56
47
        'attends meetings about this feature.'),
57
48
        default=False)
58
49
 
59
 
    @call_with(user=REQUEST_USER)
60
 
    @export_read_operation()
61
 
    @operation_for_version("devel")
62
 
    def canBeUnsubscribedByUser(user):
63
 
        """Can the user unsubscribe the subscriber from the specification?"""