~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2010-07-08 20:50:49 UTC
  • mfrom: (11095 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11215.
  • Revision ID: aaron@canonical.com-20100708205049-74zvsyu5ugkj5cke
Merged stable into force-aptitude.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
from lp.bugs.interfaces.bugtracker import BugTrackerType
84
84
from lp.bugs.interfaces.bugwatch import IBugWatchSet
85
85
from lp.bugs.interfaces.cve import ICveSet
86
 
from lp.bugs.scripts.bugheat import BugHeatConstants
87
86
from lp.bugs.model.bugattachment import BugAttachment
88
87
from lp.bugs.model.bugbranch import BugBranch
89
88
from lp.bugs.model.bugcve import BugCve
888
887
 
889
888
        # When a new task is added the bug's heat becomes relevant to the
890
889
        # target's max_bug_heat.
891
 
        target.recalculateMaxBugHeat()
 
890
        target.recalculateBugHeatCache()
892
891
 
893
892
        return new_task
894
893
 
1570
1569
        self.heat = heat
1571
1570
        self.heat_last_updated = timestamp
1572
1571
        for task in self.bugtasks:
1573
 
            task.target.recalculateMaxBugHeat()
 
1572
            task.target.recalculateBugHeatCache()
1574
1573
 
1575
1574
    def updateHeat(self):
1576
1575
        """See `IBug`."""