[trunk] Database creation fails: AttributeError: __exit__

Bug #925447 reported by Francois Degrave
0
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Hi!

Since I last updated my branches, I'm not able to create a DB anymore. Here is the exception:

db.create:CREATE DATABASE failed:
Traceback (most recent call last):
  File "/home/fde/repository/openobject-server_trunk/openerp/service/web_services.py", line 61, in _initialize_db
    openerp.modules.db.initialize(cr) # TODO this should be removed as it is done by pooler.restart_pool.
  File "/home/fde/repository/openobject-server_trunk/openerp/modules/db.py", line 61, in initialize
    info = openerp.modules.load_information_from_description_file(i)
  File "/home/fde/repository/openobject-server_trunk/openerp/modules/module.py", line 348, in load_information_from_description_file
    with tools.file_open(terp_file) as terp_f:
AttributeError: __exit__

Changed in openobject-server:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.