diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-24 20:02:14 -0600 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-10-24 20:02:14 -0600 |
commit | ac4efac3944d180cffd0ad9d63f631dc928e1d28 (patch) | |
tree | 169357c91ee70371ee42894bf89641008fcff9e6 /ipalib/constants.py | |
parent | 8ca44bcbfa2aec0c7c84205dc08c81f711a22c5d (diff) | |
download | freeipa-ac4efac3944d180cffd0ad9d63f631dc928e1d28.tar.gz freeipa-ac4efac3944d180cffd0ad9d63f631dc928e1d28.tar.xz freeipa-ac4efac3944d180cffd0ad9d63f631dc928e1d28.zip |
Finished Env._finalize_core() and corresponding unit tests
Diffstat (limited to 'ipalib/constants.py')
-rw-r--r-- | ipalib/constants.py | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/ipalib/constants.py b/ipalib/constants.py index d817fda45..a1cc5b4c6 100644 --- a/ipalib/constants.py +++ b/ipalib/constants.py @@ -21,5 +21,41 @@ Constants centralized in one file. """ -# The section read in config files, i.e. [global] +# The section to read in the config files, i.e. [global] CONFIG_SECTION = 'global' + + +# The default configuration for api.env +DEFAULT_CONFIG = ( + ('lite_xmlrpc_port', 8888), + ('lite_webui_port', 9999), + ('xmlrpc_uri', 'http://localhost:8888'), + ('ldap_uri', ''), + + ('verbose', False), + ('debug', False), + + # Env.__init__() or Env._bootstrap() or Env._finalize_core() + # will have filled in all the keys below by the time DEFAULT_CONFIG + # is merged in, so the values below are never actually used. They are + # listed both to provide a big picture and so DEFAULT_CONFIG contains + # the keys that should be present after Env._load_standard is called. + + # Set in Env.__init__(): + ('ipalib', None), # The directory containing ipalib/__init__.py + ('site_packages', None), # The directory contaning ipalib + ('script', None), # sys.argv[0] + ('bin', None), # The directory containing script + ('home', None), # The home directory of user underwhich process is running + ('dot_ipa', None), # ~/.ipa directory + + # Set in Env._bootstrap(): + ('in_tree', None), # Whether or not running in-tree (bool) + ('context', None), # Name of context, default is 'default' + ('conf', None), # Path to configuration file + + # Set in Env._finalize_core(): + ('in_server', None), # Whether or not running in-server (bool) + ('log', None), # Path to log file + +) |