~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/structuralsubscription.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-03 11:23:34 UTC
  • mfrom: (13457.6.16 upgrade-stderr)
  • Revision ID: launchpad@pqm.canonical.com-20110803112334-acnupsa7jmzmdeet
[r=stevenk][bug=819751] Fix the implementation of several methods in
 LoggingUIFactory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    )
36
36
from zope.traversing.browser import absoluteURL
37
37
 
 
38
from canonical.launchpad.webapp.authorization import check_permission
 
39
from canonical.launchpad.webapp.interfaces import NoCanonicalUrl
 
40
from canonical.launchpad.webapp.menu import (
 
41
    enabled_with_permission,
 
42
    Link,
 
43
    )
 
44
from canonical.launchpad.webapp.publisher import (
 
45
    canonical_url,
 
46
    LaunchpadView,
 
47
    Navigation,
 
48
    stepthrough,
 
49
    )
38
50
from lp.app.browser.launchpadform import (
39
51
    action,
40
52
    custom_widget,
52
64
    IStructuralSubscriptionTarget,
53
65
    IStructuralSubscriptionTargetHelper,
54
66
    )
55
 
from lp.registry.interfaces.distribution import IDistribution
 
67
from lp.registry.interfaces.distribution import (
 
68
    IDistribution,
 
69
    )
56
70
from lp.registry.interfaces.distributionsourcepackage import (
57
71
    IDistributionSourcePackage,
58
72
    )
59
73
from lp.registry.interfaces.milestone import IProjectGroupMilestone
60
74
from lp.registry.interfaces.person import IPersonSet
61
75
from lp.services.propertycache import cachedproperty
62
 
from lp.services.webapp.authorization import check_permission
63
 
from lp.services.webapp.interfaces import NoCanonicalUrl
64
 
from lp.services.webapp.menu import (
65
 
    enabled_with_permission,
66
 
    Link,
67
 
    )
68
 
from lp.services.webapp.publisher import (
69
 
    canonical_url,
70
 
    LaunchpadView,
71
 
    Navigation,
72
 
    stepthrough,
73
 
    )
74
76
 
75
77
 
76
78
class StructuralSubscriptionNavigation(Navigation):
496
498
            info[target] = record
497
499
        subscriber = subscription.subscriber
498
500
        for filter in subscription.bug_filters:
499
 
            is_team = subscriber.is_team
 
501
            is_team = subscriber.isTeam()
500
502
            user_is_team_admin = (
501
503
                is_team and subscriber in administered_teams)
502
504
            team_has_contact_address = (