c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #08794
[Bug 691962] Re: client-web crashes on startup
Should be fixed, users of serbian translations will have to either roll
back Babel to 0.9.4 or use the Trunk version, but apart from that things
should now work correctly for the other locales.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/691962
Title:
client-web crashes on startup
Status in OpenObject Web Client:
Fix Released
Bug description:
Platform OSX 10.6.5, python 2.7.1, Firefox and Safari browsers.
6.0-dev from 18 December [revision 3066] crashes on startup with following message:
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CherryPy-3.1.2-py2.7.egg/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/CherryPy-3.1.2-py2.7.egg/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/tools/_expose.py", line 191, in func_wrapper
res = func(*args, **kw)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/controllers/_root.py", line 63, in default
obj = pooler.get_pool().get_controller("/openerp/modules")
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/pooler.py", line 93, in get_pool
addons.load_addons(db_name, config)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/addons.py", line 206, in load_addons
load_module_graph(db_name, graph, config)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/addons.py", line 183, in load_module_graph
i18n.load_translations(addon_path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/i18n/_gettext.py", line 91, in load_translations
_load_translations(path, locales, domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/i18n/_gettext.py", line 72, in _load_translations
tr = _load_translation(path, locale, domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/openerp_web-6.0.0_rc1-py2.7.egg/openobject/i18n/_gettext.py", line 62, in _load_translation
locale_path, [locale], domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Babel-0.9.5-py2.7.egg/babel/support.py", line 309, in load
return cls(fileobj=open(filename, 'rb'), domain=domain)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Babel-0.9.5-py2.7.egg/babel/support.py", line 283, in __init__
gettext.GNUTranslations.__init__(self, fp=fileobj)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 180, in __init__
self._parse(fp)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 315, in _parse
self.plural = c2py(plural)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py", line 126, in c2py
return eval('lambda n: int(%s)' % plural)
File "<string>", line 1
lambda n: int((test(n%10==1 and n%100!=11 , 0 , test( n%10>=2 and n%10< =4 and (n%100<10 or n%100>=20) , 1 , 2))))
References