~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-28 17:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 14605.
  • Revision ID: curtis.hovey@canonical.com-20111228170306-n9fz94h85ckaoaf3
Separate test-authoring classes from test-running classes.

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
29
from lp.registry.interfaces.person import IPerson
29
 
import lp.services.config
30
30
from lp.services.propertycache import cachedproperty
31
31
 
32
32
 
192
192
        """Match the current server as a scope."""
193
193
        server_name = scope_name.split('.', 1)[1]
194
194
        try:
195
 
            return lp.services.config.config['launchpad']['is_' + server_name]
 
195
            return canonical.config.config['launchpad']['is_' + server_name]
196
196
        except KeyError:
197
197
            pass
198
198
        return False