openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #12974
[Bug 1017508] [NEW] TypeError: cannot marshal None unless allow_none is enabled
Public bug reported:
Hi all,
i'm trying to port a module for OpenERP 6.0.x on a 6.1 installation.
When i click on create button in the tree views i receive this message:
Server Traceback (most recent call last):
File "/home/openerp/openerp-6.1/server/openerp/wsgi/core.py", line 80, in xmlrpc_return
response = xmlrpclib.dumps((result,), methodresponse=1, allow_none=False, encoding=None)
File "/usr/lib/python2.7/xmlrpclib.py", line 1085, in dumps
data = m.dumps(params)
File "/usr/lib/python2.7/xmlrpclib.py", line 632, in dumps
dump(v, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
f(self, value, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 735, in dump_struct
dump(v, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
f(self, value, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 658, in dump_nil
raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled
If I edit the file /home/openerp/openerp-6.1/server/openerp/wsgi/core.py
at line 80 with this line:
response = xmlrpclib.dumps((result,), methodresponse=1, allow_none=True,
encoding=None)
all work fine! Why are you choose to set allow_none to False? Is
possibile to set it on True? It's a bug?
Thanks, Francesco.
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: server xmlrpc
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1017508
Title:
TypeError: cannot marshal None unless allow_none is enabled
Status in OpenERP Server:
New
Bug description:
Hi all,
i'm trying to port a module for OpenERP 6.0.x on a 6.1 installation.
When i click on create button in the tree views i receive this
message:
Server Traceback (most recent call last):
File "/home/openerp/openerp-6.1/server/openerp/wsgi/core.py", line 80, in xmlrpc_return
response = xmlrpclib.dumps((result,), methodresponse=1, allow_none=False, encoding=None)
File "/usr/lib/python2.7/xmlrpclib.py", line 1085, in dumps
data = m.dumps(params)
File "/usr/lib/python2.7/xmlrpclib.py", line 632, in dumps
dump(v, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
f(self, value, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 735, in dump_struct
dump(v, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 654, in __dump
f(self, value, write)
File "/usr/lib/python2.7/xmlrpclib.py", line 658, in dump_nil
raise TypeError, "cannot marshal None unless allow_none is enabled"
TypeError: cannot marshal None unless allow_none is enabled
If I edit the file
/home/openerp/openerp-6.1/server/openerp/wsgi/core.py at line 80 with
this line:
response = xmlrpclib.dumps((result,), methodresponse=1,
allow_none=True, encoding=None)
all work fine! Why are you choose to set allow_none to False? Is
possibile to set it on True? It's a bug?
Thanks, Francesco.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1017508/+subscriptions
Follow ups
References