Hello all,

Sorry, this is not a bug, it is a wishlist improvement, and we cannot accept 
such changes on a stable version.
Besides, all modern source code editors support switching and converting to 
Unix/Newline-only mode even on Windows, so please use this mode when editing 
OpenERP source code, in all cases. This is the convention in use for OpenERP 
source code regardless of the platform you develop on, and makes interoperation 
and source code sharing more straightforward.

Thank you!

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

-- 
[5.0.12] Module base - __terp__.py when endline \r\n WRONG
https://bugs.launchpad.net/bugs/624177
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 the file has __terp__.py new lines with the format "\r\n" (Windows)
Processing this file fails
That is, as if there were no module

I remove the try-except in the line of process these file for generate 
traceback.

[2010-08-25 12:31:03,832] ERROR:web-services:[01]: 
[2010-08-25 12:31:03,832] ERROR:web-services:[02]: Environment Information : 
[2010-08-25 12:31:03,833] ERROR:web-services:[03]: System : 
Linux-2.6.31-19-generic-i686-with-Ubuntu-9.10-karmic
[2010-08-25 12:31:03,833] ERROR:web-services:[04]: OS Name : posix
[2010-08-25 12:31:03,833] ERROR:web-services:[05]: Distributor ID:      Ubuntu
[2010-08-25 12:31:03,833] ERROR:web-services:[06]: Description: Ubuntu 9.10
[2010-08-25 12:31:03,833] ERROR:web-services:[07]: Release:     9.10
[2010-08-25 12:31:03,833] ERROR:web-services:[08]: Codename:    karmic
[2010-08-25 12:31:03,833] ERROR:web-services:[09]: Operating System Release : 
2.6.31-19-generic
[2010-08-25 12:31:03,834] ERROR:web-services:[10]: Operating System Version : 
#56-Ubuntu SMP Thu Jan 28 01:26:53 UTC 2010
[2010-08-25 12:31:03,834] ERROR:web-services:[11]: Operating System 
Architecture : 32bit
[2010-08-25 12:31:03,834] ERROR:web-services:[12]: Operating System Locale : 
es_ES.UTF8
[2010-08-25 12:31:03,834] ERROR:web-services:[13]: Python Version : 2.5.4
[2010-08-25 12:31:03,834] ERROR:web-services:[14]: OpenERP-Server Version : 
5.0.12
[2010-08-25 12:31:03,834] ERROR:web-services:[15]: Last revision No. & ID : 
[2010-08-25 12:31:03,834] ERROR:web-services:[16]: Exception in call: Traceback 
(most recent call last):
[2010-08-25 12:31:03,834] ERROR:web-services:[17]:   File 
"/openerp-server/bin/wizard/__init__.py", line 74, in execute_cr
[2010-08-25 12:31:03,834] ERROR:web-services:[18]:     action_res = 
action(self, cr, uid, data, context)
[2010-08-25 12:31:03,834] ERROR:web-services:[19]:   File 
"/openerp-server/bin/addons/base/module/wizard/wizard_update_module.py", line 
50, in _update_module
[2010-08-25 12:31:03,835] ERROR:web-services:[20]:     update, add = 
pooler.get_pool(cr.dbname).get('ir.module.module').update_list(cr, uid)
[2010-08-25 12:31:03,835] ERROR:web-services:[21]:   File 
"/openerp-server/bin/addons/base/module/module.py", line 331, in update_list
[2010-08-25 12:31:03,835] ERROR:web-services:[22]:     terp = 
self.get_module_info(mod_name)
[2010-08-25 12:31:03,835] ERROR:web-services:[23]:   File 
"/openerp-server/bin/addons/base/module/module.py", line 102, in get_module_info
[2010-08-25 12:31:03,835] ERROR:web-services:[24]:     info = eval(data)
[2010-08-25 12:31:03,835] ERROR:web-services:[25]:   File "<string>", line 1
[2010-08-25 12:31:03,835] ERROR:web-services:[26]:     {
^2010-08-25 12:31:03,835] ERROR:web-services:[27]:     
[2010-08-25 12:31:03,835] ERROR:web-services:[28]: SyntaxError: invalid syntax



_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help   : https://help.launchpad.net/ListHelp

Reply via email to