Hi
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.
This code work fine.
object[] domain = new object[] { "id", "in", "1" };
XmlRpcStruct[] test = proxy.PartySearchRead(domain, context);
But this code doesn't work.
object[] domain = new object[] { "id", "in", "1,2" };
XmlRpcStruct[] test = proxy.PartySearchRead(domain, context);
or
object[] domain = new object[] { "id", "in", "1,2".Split(',') };
XmlRpcStruct[] test = proxy.PartySearchRead(domain, context);
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: '.'
Does anyone have any idea?
--
[email protected] mailing list