Re: Beginning importing with python again
Adam Tauno Williams <[email protected]> Tue, 25 Aug 2009 10:52:34 -0400
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <1251211954.5123.2.camel@linux-m3mt> |
> Trying to remember where I was a while ago. Some of it is coming back.
> I'm able to query, retrieve and display an enterprise like
> criteria = [
> { 'conjunction' : 'AND', 'key' : 'bai_id', 'value' : '0CARTR',
> 'expression' : 'EQUALS' }
> ]
> result = server.zogi.searchForObjects('Enterprise', criteria, 0)
> if (len(result) == 0):
> My question is how to query and retrieve a contact??
Second example down on
<http://code.google.com/p/zogi/wiki/searchForObjects> Basically
Enterprise and Contact searches are the same; except the fields are
different [of course]. Internally on the server Enterprises and
Contacts are both Company objects - think OOP inheritance, Contacts and
Enterprises both have addresses, phone numbers, company values, etc... -
so most [all?] operations, like searching and access control, work
identically for Contacts and Enterprises
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc