~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/features/scopes.py

  • Committer: Curtis Hovey
  • Date: 2011-12-29 05:29:36 UTC
  • mto: This revision was merged to the branch mainline in revision 14606.
  • Revision ID: curtis.hovey@canonical.com-20111229052936-c261pibg1p6ze6m4
Moved canonical.config to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
import re
27
27
 
28
 
import canonical.config
 
28
import lp.services.config
29
29
from lp.registry.interfaces.person import IPerson
30
30
from lp.services.propertycache import cachedproperty
31
31
 
192
192
        """Match the current server as a scope."""
193
193
        server_name = scope_name.split('.', 1)[1]
194
194
        try:
195
 
            return canonical.config.config['launchpad']['is_' + server_name]
 
195
            return lp.services.config.config['launchpad']['is_' + server_name]
196
196
        except KeyError:
197
197
            pass
198
198
        return False