~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/blueprints/model/specification.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:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=E0611,W0212
46
46
    SQLBase,
47
47
    sqlvalues,
48
48
    )
49
 
from canonical.launchpad.helpers import get_contact_email_addresses
 
49
from canonical.launchpad.components.decoratedresultset import (
 
50
    DecoratedResultSet,
 
51
    )
 
52
from canonical.launchpad.helpers import (
 
53
    get_contact_email_addresses,
 
54
    )
50
55
from lp.app.errors import UserCannotUnsubscribePerson
51
56
from lp.blueprints.adapters import SpecificationDelta
52
57
from lp.blueprints.enums import (
83
88
from lp.registry.interfaces.distribution import IDistribution
84
89
from lp.registry.interfaces.distroseries import IDistroSeries
85
90
from lp.registry.interfaces.person import validate_public_person
 
91
from lp.registry.interfaces.productseries import IProductSeries
86
92
from lp.registry.interfaces.product import IProduct
87
 
from lp.registry.interfaces.productseries import IProductSeries
88
 
from lp.services.database.decoratedresultset import DecoratedResultSet
89
93
from lp.services.propertycache import (
90
94
    cachedproperty,
91
95
    get_property_cache,
92
96
    )
93
97
 
94
98
 
 
99
 
95
100
def recursive_blocked_query(spec):
96
101
    return """
97
102
        RECURSIVE blocked(id) AS (