← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666463] Re: [trunk] crashes when missing __openerp__.py

 

Hello,

There has been a series of recent updates to the
addons.get_module_resource() function that provides the value of the
"description_file" you are mentioning in your code extract (it does
check os.path.exists() now). Could you please try with the latest trunk
and confirm that you still have the issue, as we cannot reproduce it
(revision 2960 of server)

If you can still reproduce it, please reopen the bug and provide more
details such as steps to reproduce, more details about your setup and an
actual traceback or log extract of the server when this occurs?

Thanks!

** Changed in: openobject-server
       Status: New => Invalid

-- 
[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: Invalid

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())





References