Re: Error from person.get

Thomas Kriener <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
But with person.fetch I'm back to my old problem, that I can only search 
for one criteria, right ?

BTW: Why does a function return an array, if it returns maximum one 
element ?

Regards,
Thomas

Helge Hess schrieb:

> On Sep 9, 2004, at 12:03, Thomas Kriener wrote:
> 
>> result=server.person.get( { 'name' : "Kriener", } )
> 
> ..
> 
>> I always get back:
>> xmlrpclib.Fault: <Fault 0: 'Invalid argument: Nil object to be added 
>> in array'>
>>
>> BTW: There are more than one Person with name Kriener.
> 
> 
> Yes, "person.get" is for retrieving a unique person record, so you can 
> only specify something like "login", "number" or "companyId" as fields. 
> (well, this is not strictly correct for the implementation, but use it 
> like that).
> 
> If you need to fetch multiple persons, use person.fetch.
> 
> Besides the fault is of course misleading and should be corrected.
> 
> Greets,
>   Helge

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.