summaryrefslogtreecommitdiff
path: root/openerpcommand/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'openerpcommand/conf.py')
-rw-r--r--openerpcommand/conf.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/openerpcommand/conf.py b/openerpcommand/conf.py
deleted file mode 100644
index 98237ea5ad8..00000000000
--- a/openerpcommand/conf.py
+++ /dev/null
@@ -1,25 +0,0 @@
-"""
-Display the currently used configuration. The configuration for any
-sub-command is normally given by options. But some options can be specified
-using environment variables. This sub-command shows those variables.
-A `set` sub-command should be provided when the configuration is in a real
-configuration file instead of environment variables.
-"""
-import os
-import sys
-import textwrap
-
-def run(args):
- for x in ('database', 'addons', 'host', 'port'):
- x_ = ('openerp_' + x).upper()
- if x_ in os.environ:
- print '%s: %s' % (x, os.environ[x_])
- else:
- print '%s: <not set>' % (x, )
- os.environ['OPENERP_DATABASE'] = 'yeah'
-
-def add_parser(subparsers):
- parser = subparsers.add_parser('conf',
- description='Display the currently used configuration.')
-
- parser.set_defaults(run=run)