summaryrefslogtreecommitdiff
path: root/openerpcommand/__init__.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/__init__.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/__init__.py')
-rw-r--r--openerpcommand/__init__.py63
1 files changed, 0 insertions, 63 deletions
diff --git a/openerpcommand/__init__.py b/openerpcommand/__init__.py
deleted file mode 100644
index b7131913e1e..00000000000
--- a/openerpcommand/__init__.py
+++ /dev/null
@@ -1,63 +0,0 @@
-import argparse
-import textwrap
-
-from .call import Call
-from .client import Open, Show, ConsumeNothing, ConsumeMemory, LeakMemory, ConsumeCPU
-from .benchmarks import Bench, BenchRead, BenchFieldsViewGet, BenchDummy, BenchLogin
-from .bench_sale_mrp import BenchSaleMrp
-from . import common
-
-from . import conf # Not really server-side (in the `for` below).
-from . import cron
-from . import drop
-from . import initialize
-from . import model
-from . import module
-from . import read
-from . import scaffold
-from . import uninstall
-from . import update
-from . import web
-from . import grunt_tests
-
-command_list_server = (conf, cron, drop, initialize, model, module, read,
- scaffold, uninstall, update, web, grunt_tests, )
-
-command_list_client = (Call, Open, Show, ConsumeNothing, ConsumeMemory,
- LeakMemory, ConsumeCPU, Bench, BenchRead,
- BenchFieldsViewGet, BenchDummy, BenchLogin,
- BenchSaleMrp, )
-
-def main_parser():
- parser = argparse.ArgumentParser(
- usage=argparse.SUPPRESS,
- description=textwrap.fill(textwrap.dedent("""\
- OpenERP Command provides a set of command-line tools around
- the OpenERP framework: openobject-server. All the tools are
- sub-commands of a single oe executable.""")),
- epilog="""Use <command> --help to get information about the command.""",
- formatter_class=argparse.RawDescriptionHelpFormatter,
- )
- description = []
- for x in command_list_server:
- description.append(x.__name__[len(__package__)+1:])
- if x.__doc__:
- description.extend([
- ":\n",
- textwrap.fill(str(x.__doc__).strip(),
- subsequent_indent=' ',
- initial_indent=' '),
- ])
- description.append("\n\n")
- subparsers = parser.add_subparsers(
- title="Available commands",
- help=argparse.SUPPRESS,
- description="".join(description[:-1]),
- )
- # Server-side commands.
- for x in command_list_server:
- x.add_parser(subparsers)
- # Client-side commands. TODO one per .py file.
- for x in command_list_client:
- x(subparsers)
- return parser