Re: Beginning importing with python again
Dirk Bartley <[email protected]> Tue, 25 Aug 2009 10:20:14 -0400
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Message-ID | <[email protected]> |
Ahhh got it. I remember now.
Thx
On Tue, 2009-08-25 at 09:30 -0400, Dirk Bartley wrote:
> Greetings
>
>
> 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):
> print "Length = 0"
> else :
> print "Length != 0"
> enterprise = result[0]
> print 'Found Enterprise # %d' % enterprise['objectId']
> for key in enterprise :
> print "key %s value %s" % (key, enterprise[key])
>
>
> My question is how to query and retrieve a contact??
>
> Dirk
>
--
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc