[REF] simplified init_db/load_modules:
authorVo Minh Thu <vmt@openerp.com>
Tue, 17 May 2011 09:18:22 +0000 (11:18 +0200)
committerVo Minh Thu <vmt@openerp.com>
Tue, 17 May 2011 09:18:22 +0000 (11:18 +0200)
commita09b91d8fdb88a1e9789f548670cb41d0ff98d6c
tree7f3d5dfb7851e12a23e148e3faae1942f73331d9
parent6c051106ae84b6510c2245b6fa44f604863d76b0
[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
openerp/modules/db.py
openerp/modules/loading.py
openerp/service/web_services.py