~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-17 19:51:38 UTC
  • mfrom: (13627.2.15 bug-813322-2)
  • Revision ID: launchpad@pqm.canonical.com-20110817195138-yox3nrvqtq27gpb5
[r=stevenk][bug=813322] Defer duplicate bug recipient list
        calculation until processing by the cron job.

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
    def subscription_info(self):
454
454
        return IBug(self.context).getSubscriptionInfo()
455
455
 
456
 
    @property
 
456
    @cachedproperty
457
457
    def direct_subscribers(self):
458
458
        """Return the list of direct subscribers."""
459
 
        return self.subscription_info.direct_subscriptions.subscribers
 
459
        return self.subscription_info.direct_subscribers
460
460
 
461
 
    @property
 
461
    @cachedproperty
462
462
    def duplicate_subscribers(self):
463
463
        """Return the list of subscribers from duplicates.
464
464
 
465
465
        This includes all subscribers who are also direct or indirect
466
466
        subscribers.
467
467
        """
468
 
        return self.subscription_info.duplicate_subscriptions.subscribers
 
468
        return self.subscription_info.duplicate_subscribers
469
469
 
470
470
    def getSubscriptionClassForUser(self, subscribed_person):
471
471
        """Return a set of CSS class names based on subscription status.