~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/doc/canonical-config.txt

Changes per review. this includes a mass renaming, rewriting, and deletiong of conf files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
launchpad.testrunner.conf, which extends the default conf.
39
39
 
40
40
    >>> import os.path, canonical
41
 
    >>> from canonical.config import (
42
 
    ...     CONFIG_ENVIRONMENT_VARIABLE, DEFAULT_CONFIG, DEFAULT_SECTION)
43
41
    >>> os.path.join(config.root, 'lib', 'canonical') == os.path.dirname(
44
42
    ...     canonical.__file__)
45
43
    True
46
44
 
47
45
    >>> config._default_config_section
48
46
    'testrunner'
49
 
    >>> config.name
50
 
    'launchpad.testrunner.conf'
51
 
 
52
 
    >>> os.environ.get('LPCONFIG', DEFAULT_SECTION)
53
 
    'default'
 
47
    >>> config.filename
 
48
    '.../configs/testrunner/launchpad-lazr.conf'
54
49
    >>> config.extends.name
55
 
    'launchpad.default.conf'
56
 
 
57
 
    >>> environ_dir = os.environ.get(
58
 
    ...     CONFIG_ENVIRONMENT_VARIABLE, DEFAULT_CONFIG)
59
 
    >>> environ_and_name = os.path.join(environ_dir, config.name)
60
 
    >>> config.filename.endswith(environ_and_name)
61
 
    True
 
50
    'schema-lazr.conf'
62
51
 
63
52
 
64
53
== Transition from ZConfig to LAZR ==