* GENiALi alias Roland Schumacher [2011-06-07 20:41 +0200]:
Hi

Hello

I want to XML-RPC with. NET. I use the framework XML-RPC.net for this.
I have a problem with the parameter domain. C# is a static language.

I don't know anything about c# but I don't see why a static language
should not be able to do an xmlrpc request.

Exception:
CookComputing.XmlRpc.XmlRpcFaultException: Server returned a fault
exception: [1] invalid literal for int() with base 10: '.'
Traceback (most recent call last):
 File "/trytond/protocols/xmlrpc.py", line 70, in _dispatch
   session, object_type, object_name, method, *params)
 File "/trytond/protocols/dispatcher.py", line 136, in dispatch
   res = getattr(obj, method)(*args, **kargs)
 File "/trytond/model/modelstorage.py", line 396, in search_read
   ids = self.search(domain, offset=offset, limit=limit, order=order)
 File "/trytond/model/modelsql.py", line 1130, in search
   qu1, qu2, tables, tables_args = self.search_domain(domain)
 File "/trytond/model/modelsql.py", line 1277, in search_domain
   qu1, qu2 = self.__search_domain_oper(domain, tables, tables_args)
 File "/trytond/model/modelsql.py", line 1305, in
__search_domain_oper
   qu1, qu2 = self.__search_domain_calc(tuple_args, tables,
tables_args)
 File "/trytond/model/modelsql.py", line 1676, in
__search_domain_calc
   for x in arg2]
 File "/trytond/backend/fields.py", line 40, in sql_format
   return int(value or 0)
ValueError: invalid literal for int() with base 10: '.'

It looks like trytond is receiving '1.0' instead of 1.
What is the xml send ?

--
Nicolas Évrard

B2CK SPRL
rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
E-mail/Jabber: [email protected]
Website: http://www.b2ck.com/

--
[email protected] mailing list

Reply via email to