diff options
| author | Vo Minh Thu <vmt@openerp.com> | 2011-05-17 11:18:22 +0200 |
|---|---|---|
| committer | Vo Minh Thu <vmt@openerp.com> | 2011-05-17 11:18:22 +0200 |
| commit | a09b91d8fdb88a1e9789f548670cb41d0ff98d6c (patch) | |
| tree | 7f3d5dfb7851e12a23e148e3faae1942f73331d9 /tools/module_graph.py | |
| parent | 6c051106ae84b6510c2245b6fa44f604863d76b0 (diff) | |
[REF] simplified init_db/load_modules:
- removed unnecessary call to openerp.modules.db.initialize() in openerp/service/web_services.py
as the pooler.restart_pool() call just next after is already doing it.
- made the try/finally section bigger in openerp/modules/loading.py, to inlcude
the first cr.execute.
- abstracted the test to check if a database is initialized.
- removed unnecessary "if cr:" as the cr is nevertheless used after that.
bzr revid: vmt@openerp.com-20110517091822-pjtw6sc1s5assbr5
Diffstat (limited to 'tools/module_graph.py')
0 files changed, 0 insertions, 0 deletions
