Re: Re: questions regarding ZOGi,WAS:[OGo-Users]custom fields and synchronizing ogo
"Sebastian Reitenbach" <[email protected]> Fri, 28 Mar 2008 09:35:00 +0100
| Newsgroups | gmane.comp.cms.opengroupware.xmlrpc.devel |
|---|---|
| Organization | L00 bugdead prods. |
| Message-ID | <[email protected]> |
[email protected] wrote: > > > So the enterprise is created and the specified contact appears linked to > > > the enterprise? That is what is supposed to happen. > > > > but the contact_id field in the database is still empty. > > No, the contact_id field stays empty, and also in the webinterface, there is > > no contact for the created company. > > Ah. Nope, it doesn't set the contact_id attribute on the Enterprise, > it just does an assignment. ah, yeah, it assigned the account to the company. I found the account added to the persons tab of the company. > > One moment while I check the code.... > > Nope, zOGI doesn't support retrieving the contact_id (as contactId). > But it should support writing it, just set "contactId: 10160" for > example. Since "contactId" is an attribute known to OGo Logic it should > just set it. > > That should be corrected in zOGI r951 (Google Code version). I don't need to retrieve this information, but writing it, works great!! So creation of new companies works great. But still, as mentioned, I get the python backtrace when I try updating a company. I have to retrieve the old object_version from the database, and then add 1. When I then update the company, with the new version, then updating works well too. Maybe as an enhancement, zOGI could figure out the old object version, and creating a new one, when it is updating a record? cheers Sebastian Sebastian -- OpenGroupware.org XML-RPC [email protected] http://mail.opengroupware.org/mailman/listinfo/xmlrpc