~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Gary Poster
  • Date: 2011-03-30 23:15:11 UTC
  • mto: (12655.5.4 bug741684-2)
  • mto: This revision was merged to the branch mainline in revision 12715.
  • Revision ID: gary.poster@canonical.com-20110330231511-zcfmywkfcccy28nl
readd the bug and person optimizations, trying to follow the advice Robert gave; cache the initial_message because we were getting it from the SQL twice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
703
703
            days_old, getUtility(ILaunchpadCelebrities).janitor, bug=self)
704
704
        return bugtasks.count() > 0
705
705
 
706
 
    @property
 
706
    @cachedproperty
707
707
    def initial_message(self):
708
708
        """See `IBug`."""
709
709
        store = Store.of(self)