~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/scripts/bugtasktargetnamecaches.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-15 10:35:32 UTC
  • mfrom: (14517.1.3 new-bzr)
  • Revision ID: launchpad@pqm.canonical.com-20111215103532-q2m4uyk0r8ugiayx
[r=sinzui, poolie][bug=509016] Always load foreign plugins,
 but restrict probers to avoid accidentally opening foreign branches.
 (re-land)

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
from zope.interface import implements
12
12
 
13
 
from lp.services.database.lpstorm import (
 
13
from canonical.launchpad.interfaces.lpstorm import (
14
14
    IMasterStore,
15
15
    ISlaveStore,
16
16
    )
17
 
from lp.services.looptuner import (
18
 
    ITunableLoop,
19
 
    LoopTuner,
20
 
    )
 
17
from canonical.launchpad.interfaces.looptuner import ITunableLoop
 
18
from canonical.launchpad.utilities.looptuner import LoopTuner
21
19
from lp.bugs.model.bugtask import (
 
20
    BugTask,
22
21
    bug_target_from_key,
23
 
    BugTask,
24
22
    )
25
23
from lp.registry.model.distribution import Distribution
26
24
from lp.registry.model.distroseries import DistroSeries
28
26
from lp.registry.model.productseries import ProductSeries
29
27
from lp.registry.model.sourcepackagename import SourcePackageName
30
28
 
 
29
 
31
30
# These two tuples must be in the same order. They specify the ID
32
31
# columns to get from BugTask, and the classes that they correspond to.
33
32
target_columns = (