Hi,

i'm having problems after upgrade to python2.7 - my application stopped working 
correctly and is printing the error at the end of email. Looks like a standard 
validation error but:
1.) The integer argument is defined like:
Integer
and i also tried:
Integer(nillable=True)
I'm sending None there.
2.) It was working before with spyne 2.10.9 and python 2.6.
3.) It is working also now with spyne 2.10.2 or older.

Any ideas?

azur




Traceback (most recent call last):
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/server/wsgi.py",
 line 250, in __call__
   return self._verb_handlers[verb](req_env, start_response)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/server/wsgi.py",
 line 359, in handle_rpc
   self.get_in_object(p_ctx)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/server/_base.py",
 line 82, in get_in_object
   message=self.app.in_protocol.REQUEST)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/soap/soap11.py",
 line 256, in deserialize
   ctx.in_object = self.from_element(body_class, ctx.in_body_doc)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/_base.py",
 line 246, in from_element
   return handler(self, cls, element)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/model.py",
 line 68, in wrapper
   return func(prot, cls, element)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/model.py",
 line 259, in complex_from_element
   value = prot.from_element(member, c)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/_base.py",
 line 246, in from_element
   return handler(self, cls, element)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/model.py",
 line 68, in wrapper
   return func(prot, cls, element)
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/protocol/xml/model.py",
 line 82, in base_from_element
   cls.validate_native(cls, retval)):
 File 
"/usr/local/lib/python2.7/dist-packages/spyne-2.10.9-py2.7.egg/spyne/model/primitive.py",
 line 422, in validate_native
   and int(value) == value
TypeError: int() argument must be a string or a number, not 'NoneType'
_______________________________________________
Soap mailing list
[email protected]
https://mail.python.org/mailman/listinfo/soap

Reply via email to