c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26766
[Bug 799088] Re: [openobject-client-web/6.0/] TypeError: sequence item 72: expected string or Unicode, bool found
Error trace in openerp-web's error logfile (I added 2 line to print the
data before it generates error) like below:
print 'self.delim: '+self.delim
print 'self.data: '+repr(self.data)
<...>
/usr/lib/pymodules/python2.6/mako/util.py in getvalue(self=<mako.util.FastEncodingBuffer object>)
112 return self.delim.join(self.data).encode(self.encoding, self.errors)
113 else:
114 return self.delim.join(self.data)
115
116 class LRUCache(dict):
self = <mako.util.FastEncodingBuffer object>
self.delim = u''
self.delim.join = <built-in method join of unicode object>
self.data = [u'<!doctype html>\n<html>\n<head>\n <meta htt...ject/static/css/jquery.fancybox-1.3.1.css"/>\n\n', u'\n <script type="text/javascript" src="/ope...ext/javascript">\n window.SCRIPT_PATH = "', Markup(u''), u'";\n openobject.http.SCRIPT_PATH = "', Markup(u''), u'";\n </script>\n \n', u' ', u'<script type="text/javascript" src="/openerp/j18n/en_US"></script>\n', u'\n', u' \n ', u'\n <script type="text/javascript" src="/ope...atic/css/style-ie.css"/>\n <![endif]-->\n ', u'\n <title>', Markup(u'Login'), u'</title>\n <script type="text/javascript">\...}));\n })\n }\n </script>\n', Markup(u''), u'\n', Markup(u''), u'\n\n</head>\n\n<body>\n\n', u'\n\n', u'\n <table width="100%">\n <tr>', ...]
<type 'exceptions.TypeError'>: sequence item 114: expected string or Unicode, bool found
--
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/799088
Title:
[openobject-client-web/6.0/] TypeError: sequence item 72: expected
string or Unicode, bool found
Status in OpenERP Web Client:
New
Bug description:
I have the following error when using the latest openobject-client-
web/6.0/ (details version info is at the end). Strangely, if I change
the openerp-server port (e.g from 8070 to 8170), the this error
doesn't show up but of course the web-client cannot find the server
(see attached). Is there any possibility that the openerp-server and
openerp-webclient is out of sync when talking UTF-8 data?
500 Internal Server Error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Traceback (most recent call last):
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/openobject/controllers/_root.py", line 90, in default
return request.handler()
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/addons/openerp/controllers/utils.py", line 188, in wrapper
return fn(*args, **kw)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/addons/openerp/controllers/root.py", line 167, in login
return tiny_login(target=location, db=db, user=user, password=password, action="login", message=message)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/openobject/tools/_expose.py", line 222, in func_wrapper
return render_template(_template, res).encode("utf-8")
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/openobject/tools/_expose.py", line 141, in render_template
return utils.NoEscape(template.render_unicode(**kw))
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/mako/template.py", line 305, in render_unicode
as_unicode=True)
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/mako/runtime.py", line 661, in _render
return context._pop_buffer().getvalue()
File "/var/local/software/openerp-6.0-trunk-20110603-0404/web/lib/mako/util.py", line 136, in getvalue
return self.delim.join(self.data)
TypeError: sequence item 72: expected string or Unicode, bool found
Powered by CherryPy 3.1.2
$ bzr info
Standalone tree (format: 2a)
Location:
branch root: .
Related branches:
parent branch: http://bazaar.launchpad.net/~openerp/openobject-client-web/6.0/
ubuntu@ip-10-128-191-131:/var/local/software/6.0-trunk/web$ bzr version-info
revision-id: noz@xxxxxxxxxxx-20110610101019-edxod1zdauc4m8me
date: 2011-06-10 15:40:19 +0530
build-date: 2011-06-18 15:34:40 +0700
revno: 4638
branch-nick: web
$ bzr version-info ../server/
revision-id: jvo@xxxxxxxxxxx-20110617090357-bcbg80ec7raw4ldf
date: 2011-06-17 14:33:57 +0530
build-date: 2011-06-18 15:39:14 +0700
revno: 3444
branch-nick: server
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/799088/+subscriptions
References