summaryrefslogtreecommitdiff
path: root/openerpcommand/conf.py
diff options
context:
space:
mode:
authorAntony Lesuisse <lesuisse@gmail.com>2014-05-29 18:33:04 +0200
committerAntony Lesuisse <lesuisse@gmail.com>2014-05-29 18:33:04 +0200
commitd4624fa826a5e9542782f2c53c8ba2c766d093bc (patch)
treebe214779eb6d1f17157aa48e72fbcbf95405e38b /openerpcommand/conf.py
parent045ecc603e67911a5390c812cb6b5b123d9c190e (diff)
[IMP] repository cleanup
- move packaging stuff to setup - remove historical stuff - remove oe, odoo-cmd-fme will be merged with the convered commands - add an odoo.py script to run odo and boostrap it - simplify README - prepare to move documentation to the github wiki
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)