← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666463] [NEW] [trunk] crashes when missing __openerp__.py

 

Public bug reported:

When creating a new database, if files __openerp__.py or __terp__.py are
missing, the server crashes with no error reported to the user. This
happens when a folder is created in the addons folder, but serves for
other things like code source management. By example, bazaar creates a
folder named .bzr


/server/bin/addons/__init__.py

Line 315:

-        if description_file:
+       if description_file and os.path.isfile(description_file):
            return eval(tools.file_open(description_file).read())

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
[trunk] crashes when missing __openerp__.py
https://bugs.launchpad.net/bugs/666463
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: New

Bug description:
When creating a new database, if files __openerp__.py or __terp__.py are missing, the server crashes with no error reported to the user. This happens when a folder is created in the addons folder, but serves for other things like code source management. By example, bazaar creates a folder named .bzr


/server/bin/addons/__init__.py

Line 315:

-        if description_file:
+       if description_file and os.path.isfile(description_file):
            return eval(tools.file_open(description_file).read())





Follow ups

References