Activity log for bug #666714

Date Who What changed Old value New value Message
2010-10-26 10:42:41 Olivier Dony (Odoo) bug added bug
2010-10-26 10:43:29 Olivier Dony (Odoo) openobject-addons: assignee OpenERP R&D Addons Team 2 (openerp-dev-addons2)
2010-10-26 10:44:17 Olivier Dony (Odoo) bug task added openobject-server
2010-10-26 10:45:00 Olivier Dony (Odoo) openobject-server: importance Undecided Medium
2010-10-26 10:45:00 Olivier Dony (Odoo) openobject-server: status New Confirmed
2010-10-26 10:45:00 Olivier Dony (Odoo) openobject-server: milestone 6.0-rc2
2010-10-26 10:46:34 Olivier Dony (Odoo) openobject-server: status Confirmed Invalid
2010-10-26 10:47:54 Olivier Dony (Odoo) description Starting with v6.0 OpenERP supports multiple addons paths. This means that one cannot simply access tools.config['addons_path'] and use it with os.path.join to access a resource file from a module. OpenERP also support zipped modules, which means that merely doing an os.path.join() will not work to open the file. Please instead use addons.get_module_resource( ) to obtain the path to the resource. Also make sure to verify the return value of get_module_resource( ), which could be False when the file was not found. For the framework, we also need to fix tools.file_open to properly handle this. Starting with v6.0 OpenERP supports multiple addons paths. This means that one cannot simply access tools.config['addons_path'] and use it with os.path.join to access a resource file from a module. OpenERP also support zipped modules, which means that merely doing an os.path.join() will not work to open the file. Please instead use addons.get_module_resource( ) to obtain the path to the resource (which could be inside a zip file!) Also make sure to verify the return value of get_module_resource( ), which could be False when the file was not found. You could also use directly tools.misc.file_open() which will return the open file even if it is inside a zip (also needs its own error checking)
2010-10-26 11:29:53 Ujjvala Collins openobject-addons: status Confirmed In Progress
2010-10-26 12:06:25 Olivier Dony (Odoo) openobject-addons: assignee OpenERP R&D Addons Team 2 (openerp-dev-addons2) OpenERP R&D Addons Team 1 (openerp-dev-addons1)
2010-10-27 13:04:40 Harry (OpenERP) openobject-addons: status In Progress Fix Committed
2010-10-28 12:29:17 Harry (OpenERP) openobject-addons: status Fix Committed Fix Released