Activity log for bug #1267149

Date Who What changed Old value New value Message
2014-01-08 15:22:30 Nicolas Bessi - Camptocamp bug added bug
2014-01-08 15:23:56 Nicolas Bessi - Camptocamp description Hello, Let say I have module A and module B. B depends on A in __openerp__.py but the two addons are in different branches. In B addons I have this code somewhere in the code: from openerp.addons.A.a_module import myhelper If I have B in addons path but not A server will raise an import error even if I have not require the istallation of the addons. This will lead to a server crash at startup with a unclear error message This will also force people to have more branch to retrieve with all the trouble that goes along. I understand why all the files with model classes have to be loaded in order to prepare final Model form. But I'm a little perplex on the reason of loading all files of an addon when graphing the addons dependence tree. Only __openerp__.py should be loaded first in a safe manner, and when the graph is calculated then effectively load the packages. It will avoid such trouble and also avoid (malicious) code to be executed when you do not want to. Regards Nicolas Hello, Let say I have module A and module B. B depends on A in __openerp__.py but the two addons are in different branches. In B addons I have this code somewhere in the code: from openerp.addons.A.a_module import myhelper If I have B in addons path but not A server will raise an import error even if I have not require the istallation of the A addon. This will lead to a server crash at startup with a unclear error message. This will also force people to have more branch to retrieve with all the trouble that goes along. I understand why all the files with model classes have to be loaded in order to prepare final model state. But I'm a little perplex on the reason of loading all files of an addon when graphing the addons dependence tree. Only __openerp__.py should be loaded first in a safe manner, and when the graph is calculated then effectively load the packages. It will avoid such trouble and also avoid (malicious) code to be executed when you do not want to. Regards Nicolas
2014-01-08 15:41:37 Alexandre Fayolle - camptocamp description Hello, Let say I have module A and module B. B depends on A in __openerp__.py but the two addons are in different branches. In B addons I have this code somewhere in the code: from openerp.addons.A.a_module import myhelper If I have B in addons path but not A server will raise an import error even if I have not require the istallation of the A addon. This will lead to a server crash at startup with a unclear error message. This will also force people to have more branch to retrieve with all the trouble that goes along. I understand why all the files with model classes have to be loaded in order to prepare final model state. But I'm a little perplex on the reason of loading all files of an addon when graphing the addons dependence tree. Only __openerp__.py should be loaded first in a safe manner, and when the graph is calculated then effectively load the packages. It will avoid such trouble and also avoid (malicious) code to be executed when you do not want to. Regards Nicolas Hello, Let say I have module A and module B. B depends on A in __openerp__.py but the two addons are in different branches. In B addons I have this code somewhere in the code: from openerp.addons.A.a_module import myhelper If I have B in addons path but not A. Server will raise an import error even if I have not required the installation of the B addon. This will lead to a server crash at startup with a unclear error message. This will also force people to have more branches to retrieve with all the trouble that goes along. I understand why all the files with model classes have to be loaded in order to prepare final model state. But I'm a little perplex on the reason of loading all files of an addon when graphing the addons dependence tree. Only __openerp__.py should be loaded first in a safe manner, and when the graph is calculated then effectively load the packages. It will avoid such trouble and also avoid (malicious) code to be executed when you do not want to. Regards Nicolas
2014-01-08 17:33:01 David BEAL (ak) bug added subscriber David BEAL
2014-01-08 22:23:37 Agustín bug added subscriber Agustín