c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #02859
[Bug 672117] [NEW] [v6.RC1] cannot handle module menu items in IE
Public bug reported:
That following error occurs simply when you click the menu item
"Administration->Modules->Import Module" or similarly
"Administration->Modules->Update Modules Lists" using IE 8.0 (Firefox
3.6.2 ok):
<type 'exceptions.ValueError'> Python 2.6.5: /usr/bin/python
Sun Nov 7 12:21:21 2010
A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
604 if self.handler:
605 self.stage = 'handler'
606 cherrypy.response.body = self.handler()
607
608 self.stage = 'before_finalize'
global cherrypy = <module 'cherrypy' from '/usr/local/lib/python2..../CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'execute'), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
195 raise cherrypy.HTTPError(405)
196
197 res = func(*args, **kw)
198
199 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....egg/openobject/admin/i18n/mapping/javascript.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
76 request.handler = cherrypy.NotFound()
77
78 return request.handler()
79
80 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function index>, self.args = (), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 action = kw.get('login_action', '')
fn = <bound method Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
195 raise cherrypy.HTTPError(405)
196
197 res = func(*args, **kw)
198
199 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....egg/openobject/admin/i18n/mapping/javascript.cfg', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, action='{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', data='{"context": {"lang": "en_US%2')
13 def index(self, action, data):
14 return actions.execute(
15 simplejson.loads(action),
16 **simplejson.loads(data)
17 )
global simplejson = <module 'simplejson' from '/usr/local/lib/python...-py2.6-linux-x86_64.egg/simplejson/__init__.pyc'>, simplejson.loads = <function loads>, data = '{"context": {"lang": "en_US%2'
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/__init__.py in loads(s='{"context": {"lang": "en_US%2', encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, **kw={})
305 parse_int is None and parse_float is None and
306 parse_constant is None and not kw):
307 return _default_decoder.decode(s)
308 if cls is None:
309 cls = JSONDecoder
global _default_decoder = <simplejson.decoder.JSONDecoder object>, _default_decoder.decode = <bound method JSONDecoder.decode of <simplejson.decoder.JSONDecoder object>>, s = '{"context": {"lang": "en_US%2'
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/decoder.py in decode(self=<simplejson.decoder.JSONDecoder object>, s='{"context": {"lang": "en_US%2', _w=<built-in method match of _sre.SRE_Pattern object>)
333
334 """
335 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
336 end = _w(s, end).end()
337 if end != len(s):
obj undefined, end undefined, self = <simplejson.decoder.JSONDecoder object>, self.raw_decode = <bound method JSONDecoder.raw_decode of <simplejson.decoder.JSONDecoder object>>, s = '{"context": {"lang": "en_US%2', idx undefined, _w = <built-in method match of _sre.SRE_Pattern object>, ).end undefined
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/decoder.py in raw_decode(self=<simplejson.decoder.JSONDecoder object>, s='{"context": {"lang": "en_US%2', idx=0)
349 """
350 try:
351 obj, end = self.scan_once(s, idx)
352 except StopIteration:
353 raise ValueError("No JSON object could be decoded")
obj undefined, end undefined, self = <simplejson.decoder.JSONDecoder object>, self.scan_once = <simplejson._speedups.Scanner object>, s = '{"context": {"lang": "en_US%2', idx = 0
<type 'exceptions.ValueError'>: Unterminated string starting at: line 1 column 21 (char 21)
args = ('Unterminated string starting at: line 1 column 21 (char 21)',)
message = 'Unterminated string starting at: line 1 column 21 (char 21)'
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
[v6.RC1] cannot handle module menu items in IE
https://bugs.launchpad.net/bugs/672117
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Web Client: New
Bug description:
That following error occurs simply when you click the menu item "Administration->Modules->Import Module" or similarly "Administration->Modules->Update Modules Lists" using IE 8.0 (Firefox 3.6.2 ok):
<type 'exceptions.ValueError'> Python 2.6.5: /usr/bin/python
Sun Nov 7 12:21:21 2010
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object>, path_info='/openerp/execute')
604 if self.handler:
605 self.stage = 'handler'
606 cherrypy.response.body = self.handler()
607
608 self.stage = 'before_finalize'
global cherrypy = <module 'cherrypy' from '/usr/local/lib/python2..../CherryPy-3.1.2-py2.6.egg/cherrypy/__init__.pyc'>, cherrypy.response = <cherrypy._ThreadLocalProxy object>, cherrypy.response.body = [], self = <cherrypy._cprequest.Request object>, self.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <bound method Root.default of <openobject.controllers._root.Root object>>, self.args = ('openerp', 'execute'), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openobject.controllers._root.Root object>, 'openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
195 raise cherrypy.HTTPError(405)
196
197 res = func(*args, **kw)
198
199 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....egg/openobject/admin/i18n/mapping/javascript.cfg', func = <function default>, args = (<openobject.controllers._root.Root object>, 'openerp', 'execute'), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/controllers/_root.py in default(self=<openobject.controllers._root.Root object>, *args=('openerp', 'execute'), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
76 request.handler = cherrypy.NotFound()
77
78 return request.handler()
79
80 def find_handler(self):
request = <cherrypy._ThreadLocalProxy object>, request.handler = <cherrypy._cpdispatch.LateParamPageHandler object>
/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object>)
23 def __call__(self):
24 try:
25 return self.callable(*self.args, **self.kwargs)
26 except TypeError, x:
27 test_callable_spec(self.callable, self.args, self.kwargs)
self = <cherrypy._cpdispatch.LateParamPageHandler object>, self.callable = <function index>, self.args = (), self.kwargs = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/utils.py in wrapper(*args=(), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
122 # User is logged in; allow access
123 clear_login_fields(kw)
124 return fn(*args, **kw)
125 else:
126 action = kw.get('login_action', '')
fn = <bound method Execute.index of <openerp.controllers.execute.Execute object>>, args = (), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/openobject/tools/_expose.py in func_wrapper(*args=(<openerp.controllers.execute.Execute object>,), **kw={'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'})
195 raise cherrypy.HTTPError(405)
196
197 res = func(*args, **kw)
198
199 if format == 'json' or (allow_json and 'allow_json' in cherrypy.request.params):
global res = '/usr/local/lib/python2.6/dist-packages/openerp_w....egg/openobject/admin/i18n/mapping/javascript.cfg', func = <function index>, args = (<openerp.controllers.execute.Execute object>,), kw = {'action': '{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', 'data': '{"context": {"lang": "en_US%2'}
/usr/local/lib/python2.6/dist-packages/openerp_web-6.0.0_rc1-py2.6.egg/addons/openerp/controllers/execute.py in index(self=<openerp.controllers.execute.Execute object>, action='{"groups_id": [], "domain": false, "help": false...", "filter": false, "limit": 80, "context": "{}"}', data='{"context": {"lang": "en_US%2')
13 def index(self, action, data):
14 return actions.execute(
15 simplejson.loads(action),
16 **simplejson.loads(data)
17 )
global simplejson = <module 'simplejson' from '/usr/local/lib/python...-py2.6-linux-x86_64.egg/simplejson/__init__.pyc'>, simplejson.loads = <function loads>, data = '{"context": {"lang": "en_US%2'
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/__init__.py in loads(s='{"context": {"lang": "en_US%2', encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, **kw={})
305 parse_int is None and parse_float is None and
306 parse_constant is None and not kw):
307 return _default_decoder.decode(s)
308 if cls is None:
309 cls = JSONDecoder
global _default_decoder = <simplejson.decoder.JSONDecoder object>, _default_decoder.decode = <bound method JSONDecoder.decode of <simplejson.decoder.JSONDecoder object>>, s = '{"context": {"lang": "en_US%2'
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/decoder.py in decode(self=<simplejson.decoder.JSONDecoder object>, s='{"context": {"lang": "en_US%2', _w=<built-in method match of _sre.SRE_Pattern object>)
333
334 """
335 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
336 end = _w(s, end).end()
337 if end != len(s):
obj undefined, end undefined, self = <simplejson.decoder.JSONDecoder object>, self.raw_decode = <bound method JSONDecoder.raw_decode of <simplejson.decoder.JSONDecoder object>>, s = '{"context": {"lang": "en_US%2', idx undefined, _w = <built-in method match of _sre.SRE_Pattern object>, ).end undefined
/usr/local/lib/python2.6/dist-packages/simplejson-2.0.9-py2.6-linux-x86_64.egg/simplejson/decoder.py in raw_decode(self=<simplejson.decoder.JSONDecoder object>, s='{"context": {"lang": "en_US%2', idx=0)
349 """
350 try:
351 obj, end = self.scan_once(s, idx)
352 except StopIteration:
353 raise ValueError("No JSON object could be decoded")
obj undefined, end undefined, self = <simplejson.decoder.JSONDecoder object>, self.scan_once = <simplejson._speedups.Scanner object>, s = '{"context": {"lang": "en_US%2', idx = 0
<type 'exceptions.ValueError'>: Unterminated string starting at: line 1 column 21 (char 21)
args = ('Unterminated string starting at: line 1 column 21 (char 21)',)
message = 'Unterminated string starting at: line 1 column 21 (char 21)'
Follow ups
References