~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Ian Booth
  • Date: 2011-06-10 02:27:37 UTC
  • mto: This revision was merged to the branch mainline in revision 13273.
  • Revision ID: ian.booth@canonical.com-20110610022737-a52tump7cg3cejbm
Further split up subscriptions portal into separate templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    """View for the contents for the subscribers portlet."""
71
71
 
72
72
    @property
 
73
    def subscription(self):
 
74
        """Return a decorated subscription with added attributes."""
 
75
        return SubscriptionAttrDecorator(self.context)
 
76
 
 
77
    @property
73
78
    def sorted_subscriptions(self):
74
79
        """Get the list of subscriptions to the specification.
75
80
 
92
97
                cannot_unsubscribe.append(subscription)
93
98
 
94
99
        sorted_subscriptions = can_unsubscribe + cannot_unsubscribe
95
 
        result = [
96
 
            SubscriptionAttrDecorator(subscription)
97
 
            for subscription in sorted_subscriptions]
98
 
        return result
 
100
        return sorted_subscriptions
99
101
 
100
102
    @property
101
103
    def current_user_subscription_class(self):