From xmlrpc@opengroupware.org Sun Mar 5 18:00:33 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Sun, 5 Mar 2006 19:00:33 +0100 Subject: [OGo-XML-RPC] "Must use setCurrentEntity if select is not done through database" In-Reply-To: <1141072595.6838.8.camel@aleph.whitemice.org> References: <1141072595.6838.8.camel@aleph.whitemice.org> Message-ID: <487D01D1-03FC-4E6D-A338-93DC245FEE41@opengroupware.org> On 27. Feb 2006, at 21:36 Uhr, Adam Tauno Williams wrote: > After doing an insert of an account I want to change the "login" so I > call "account.update". But it fails with a message of "Must use > setCurrentEntity if select is not done through database"... ????? > Anyone have a clue what his means? > > Otherwise, if it is not possible to change "login" what is the purpose > of account.update? The exception raised sounds like a bug. Greets, Helge -- http://docs.opengroupware.org/Members/helge/ OpenGroupware.org From xmlrpc@opengroupware.org Mon Mar 6 03:05:46 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Sun, 05 Mar 2006 22:05:46 -0500 Subject: [OGo-XML-RPC] OGoMojo 0.0.16 Message-ID: <1141614346.15304.6.camel@aleph.whitemice.org> This release adds support for searching, creating, updating, and deleting resource and task objects. Download From: http://docs.opengroupware.org/Members/whitemice/OGoMojo/ or http://www.whitemiceconsulting.com/node/91 Feature list of the XML-RPC backend: http://www.whitemiceconsulting.com/node/32 Including in the download is LDAPTeamSync and LDAPAccountSync From xmlrpc@opengroupware.org Mon Mar 6 13:51:37 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 06 Mar 2006 08:51:37 -0500 Subject: [OGo-XML-RPC] "Must use setCurrentEntity if select is not done through database" In-Reply-To: <487D01D1-03FC-4E6D-A338-93DC245FEE41@opengroupware.org> References: <1141072595.6838.8.camel@aleph.whitemice.org> <487D01D1-03FC-4E6D-A338-93DC245FEE41@opengroupware.org> Message-ID: <1141653097.7199.5.camel@aleph.whitemice.org> --=-O6efdLEui9B6MNUC7ETc Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > > After doing an insert of an account I want to change the "login" so I > > call "account.update". But it fails with a message of "Must use > > setCurrentEntity if select is not done through database"... ????? > > Anyone have a clue what his means > > Otherwise, if it is not possible to change "login" what is the purpose > > of account.update? > The exception raised sounds like a bug. http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=3D1703 --=-O6efdLEui9B6MNUC7ETc Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEDD5pLRePpNle04MRAtsYAJ9KTeunQPzR8nC/Ek0tmzJJDDzl6wCcDln2 eXryNFWaY90sHa0GvZ8kyW8= =MXty -----END PGP SIGNATURE----- --=-O6efdLEui9B6MNUC7ETc-- From xmlrpc@opengroupware.org Tue Mar 7 18:02:35 2006 From: xmlrpc@opengroupware.org (Martin Hofheinz) Date: Tue, 7 Mar 2006 19:02:35 +0100 Subject: [OGo-XML-RPC] Appointments Message-ID: <20060307190235.ade165c5.m.hofheinz@netzwerk-design.net> hi list, i worder if there is a more uptodate xml-rpc api decription than the one that can be found at "http://docs.opengroupware.org/Members/bjoern/xml-rpc-de.pdf" which is version 4.1. i tried to insert an appointment, but in this description there are no hints to the appointment types and how they are defined. i also miss an attribute for a title or name of the appointment. any help is appreciated. regards martin From xmlrpc@opengroupware.org Mon Mar 6 18:28:32 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 06 Mar 2006 13:28:32 -0500 Subject: [OGo-XML-RPC] Appointments In-Reply-To: <20060307190235.ade165c5.m.hofheinz@netzwerk-design.net> References: <20060307190235.ade165c5.m.hofheinz@netzwerk-design.net> Message-ID: <1141669712.7495.7.camel@aleph.whitemice.org> --=-+zEiuDHJIr3suJEFq+0u Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > i worder if there is a more uptodate xml-rpc api decription than the one = that can be found at "http://docs.opengroupware.org/Members/bjoern/xml-rpc-= de.pdf" which is version 4.1. No, but ask specific questions and I'll be happy to answer. That document isn't so great, but with time you realize it is better than you might think (how is that for cryptic! :) I'm the author of POGI (PHP for OGo) and MOGI (Mono/.NET for OGo), so I've become pretty familiar with the API. > i tried to insert an appointment, but in this description there are no hi= nts to the appointment types and how they are defined.=20 > i also miss an attribute for a title or name of the appointment. In C# I initialize a new appointment document like -=20 appointment =3D new XmlRpcStruct(); appointment.Add("startDate", DateTime.Now); appointment.Add("endDate", DateTime.Now.AddHours(1)); appointment.Add("title", ""); appointment.Add("comment", ""); appointment.Add("location", ""); appointment.Add("cycleEndDate", DateTime.Now.AddDays(30)); appointment.Add("aptType", "meeting"); aptType is a string like: "birthday", "phone call", "duedate", "vacation", "at home", "ill", "meeting", "all types", "outward", "tradeshow". Those are the defaults, you can define more; there is information in the docs plone. --=-+zEiuDHJIr3suJEFq+0u Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEDH9QLRePpNle04MRAsLmAJ9uC8js4I5hzYeBGUMM0mWlfnIGawCdHUgj Hmnzdk9v5aIViwRPwqkmndQ= =Qn5C -----END PGP SIGNATURE----- --=-+zEiuDHJIr3suJEFq+0u-- From xmlrpc@opengroupware.org Mon Mar 6 18:42:06 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 06 Mar 2006 13:42:06 -0500 Subject: [OGo-XML-RPC] Appointments In-Reply-To: <1141669712.7495.7.camel@aleph.whitemice.org> References: <20060307190235.ade165c5.m.hofheinz@netzwerk-design.net> <1141669712.7495.7.camel@aleph.whitemice.org> Message-ID: <1141670526.7495.11.camel@aleph.whitemice.org> --=-qPY5lOs+7v8inJRU0Mgy Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > > i tried to insert an appointment, but in this description there are no = hints to the appointment types and how they are defined.=20 > > i also miss an attribute for a title or name of the appointment. > In C# I initialize a new appointment document like -=20 > appointment =3D new XmlRpcStruct(); > appointment.Add("startDate", DateTime.Now); > appointment.Add("endDate", DateTime.Now.AddHours(1)); > appointment.Add("title", ""); > appointment.Add("comment", ""); > appointment.Add("location", ""); > appointment.Add("cycleEndDate", DateTime.Now.AddDays(30)); > appointment.Add("aptType", "meeting"); > aptType is a string like: "birthday", "phone call", "duedate", > "vacation", "at home", "ill", "meeting", "all types", "outward", > "tradeshow". Those are the defaults, you can define more; there is > information in the docs plone. If the appointment is a cyclic then you put the cycle specifier in a "type" key, like: appointment.Add("location", "once"); - which means not a cyclic. The values for "type" are something like -=20 cyclelist.AppendValues("None", "once"); cyclelist.AppendValues("Annually", "yearly"); cyclelist.AppendValues("Monthly", "monthly"); cyclelist.AppendValues("Weekly", "weekly"); cyclelist.AppendValues("Week Day", "weekday"); cyclelist.AppendValues("Every Second Week", "2_weekly"); cyclelist.AppendValues("Every Fourth Week", "4_weekly"); - but with recent TRUNK you can put in ICAL cycle specifiers as well (I haven't tested this, but they exist in the database). --=-qPY5lOs+7v8inJRU0Mgy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEDIJ+LRePpNle04MRAiI+AJ4nHgVze6F2j9PgbcXlsVBsaze6ggCePXds Pv0y2VBr9WH2EhJqi0QZK4s= =ZB84 -----END PGP SIGNATURE----- --=-qPY5lOs+7v8inJRU0Mgy-- From xmlrpc@opengroupware.org Mon Mar 13 12:12:35 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 13 Mar 2006 07:12:35 -0500 Subject: [OGo-XML-RPC] Determining object type from id Message-ID: <1142251955.26436.6.camel@aleph.whitemice.org> If I issue a request like (to link.getLinksFrom) - link.getLinksFrom 10100 - I get a response that is an array of structures like - labelOGo669160 sourceskyrix://.../10100 typegeneric idskyrix://.../1580570 targetskyrix://.../669160 - which is good. But is there a mechanism for determining what type of object (appointment, contact, enterprise, etc...) that "skyrix://.../669160" is? From xmlrpc@opengroupware.org Mon Mar 13 12:23:04 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Mon, 13 Mar 2006 13:23:04 +0100 Subject: [OGo-XML-RPC] Determining object type from id In-Reply-To: <1142251955.26436.6.camel@aleph.whitemice.org> References: <1142251955.26436.6.camel@aleph.whitemice.org> Message-ID: <712D5636-E163-4C10-A162-A4492F877939@opengroupware.org> On 13. Mrz 2006, at 13:12 Uhr, Adam Tauno Williams wrote: > - which is good. But is there a mechanism for determining what > type of > object (appointment, contact, enterprise, etc...) that > "skyrix://.../669160" is? This can be done using LSTypeManager in LSFoundation. But apparently its operations are not exposed in XML-RPC ... bug report? ;-) Greets, Helge -- http://docs.opengroupware.org/Members/helge/ OpenGroupware.org From xmlrpc@opengroupware.org Mon Mar 13 13:06:04 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Mon, 13 Mar 2006 08:06:04 -0500 Subject: [OGo-XML-RPC] Determining object type from id In-Reply-To: <712D5636-E163-4C10-A162-A4492F877939@opengroupware.org> References: <1142251955.26436.6.camel@aleph.whitemice.org> <712D5636-E163-4C10-A162-A4492F877939@opengroupware.org> Message-ID: <1142255164.26436.10.camel@aleph.whitemice.org> > > - which is good. But is there a mechanism for determining what > > type of > > object (appointment, contact, enterprise, etc...) that > > "skyrix://.../669160" is? > This can be done using LSTypeManager in LSFoundation. But apparently > its operations are not exposed in XML-RPC ... Grrr > bug report? ;-) http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=1708 From xmlrpc@opengroupware.org Thu Mar 16 06:42:44 2006 From: xmlrpc@opengroupware.org (Arto Mustikkamaa) Date: Thu, 16 Mar 2006 06:42:44 -0000 Subject: [OGo-XML-RPC] xml problems with enterprise projects and how they are linked to job Message-ID: <20060316064245.32A8617BDFA@ogo.procios.com> help get project and I have done python program that prints jobs with certain gategory and starDate and endDate is between given dates now I want to search jobs for sertain enterpise in test database I have enterprise named Iiris I see projects with project code P12420 under this project I see my jobs I get enterprices with this methods in my enterprise class def get_enterprise(self,field='name',condition='like',field_value='*'): apu="%s %s '%s'" %(field,condition,field_value) result=self.server.enterprise.fetch(apu) return result then I send result list to other method def get_projects(self,elist): # elist list of enterprises comes all right for e1 in range(len(elist)): # entnumber=string.split(elist[e1] ['id'],'/') # one_eterprise=string.atoi(entnumber[len(entnumber)-1]) # I tried also with number one_eterprise= elist[e1] ['id'] print one_eterprise result=self.server.enterprise.getProjects(one_eterprise) print elist[e1] print "____projects___" print result enterprise.getProjects give me nothing there is no errors in errorlog how can I get jobs sertain enterprise From xmlrpc@opengroupware.org Thu Mar 16 16:40:15 2006 From: xmlrpc@opengroupware.org (Helge Hess) Date: Thu, 16 Mar 2006 17:40:15 +0100 Subject: [OGo-XML-RPC] xml problems with enterprise projects and how they are linked to job In-Reply-To: <20060316064245.32A8617BDFA@ogo.procios.com> References: <20060316064245.32A8617BDFA@ogo.procios.com> Message-ID: Hi, first there was a bug with retrieving enterprises inside xmlrpcd, it always seemed to use the 'number' of the enterprise. Eg this works for me: ---snip--- >>> print s.enterprise.getProjects('OGo26280') [{'status': '05_processing', 'startDate': , 'endDate': , 'name': 'allgemein', 'url': 'skyrix://move/', 'projectId': 29470, 'number': 'P29470', 'isFake': 0, 'dbStatus': 'inserted', 'ownerId': 10280}] ---snap-- However, enterprise.getProjects doesn't return the so called 'fake' projects (is_fake flag set in the database). Those are the projects created together with the enterprise record. I've added a new method enterprise.getAllProjects which also returns fake projects (OGo 1.1 r1568). Greets, Helge On 16. Mrz 2006, at 07:42 Uhr, Arto Mustikkamaa wrote: > help get project and > I have done python program that prints jobs with certain gategory > and starDate > and endDate is between given dates now I want to search jobs for > sertain > enterpise > > in test database I have enterprise named Iiris I see projects with > project code > P12420 under this project I see my jobs > I get enterprices with this methods in my enterprise class > > def get_enterprise > (self,field='name',condition='like',field_value='*'): > apu="%s %s '%s'" %(field,condition,field_value) > result=self.server.enterprise.fetch(apu) > return result > > then I send result list to other method > > def get_projects(self,elist): > # elist list of enterprises comes all right > for e1 in range(len(elist)): > # entnumber=string.split(elist[e1] ['id'],'/') > # one_eterprise=string.atoi(entnumber[len(entnumber)-1]) > # I tried also with number > one_eterprise= elist[e1] ['id'] > print one_eterprise > result=self.server.enterprise.getProjects(one_eterprise) > print elist[e1] > print "____projects___" > print result > > enterprise.getProjects give me nothing > there is no errors in errorlog > > how can I get jobs sertain enterprise > > > -- > OpenGroupware.org XML-RPC > xmlrpc@opengroupware.org > http://mail.opengroupware.org/mailman/listinfo/xmlrpc -- http://docs.opengroupware.org/Members/helge/ OpenGroupware.org From xmlrpc@opengroupware.org Tue Mar 21 08:47:39 2006 From: xmlrpc@opengroupware.org (Arto Mustikkamaa) Date: Tue, 21 Mar 2006 08:47:39 -0000 Subject: [OGo-XML-RPC] xml problems with enterprise projects and how they are linked to job Message-ID: <20060321084739.1227D17BDFA@ogo.procios.com> we are using older ogo version how do I still get samekind of allproject method I have tried to understand how new methods is registered and done but most of examples I get is only Pow function examples :), not how to get something from database less get out something out of ogo. Other thing I am now trying to is using XMLRPC over SSL. Maybe I need some information of it too xmlrpc@opengroupware.org wrote: > Hi, > > first there was a bug with retrieving enterprises inside xmlrpcd, it > always seemed to use the 'number' of the enterprise. Eg this works > for me: > ---snip--- > >>> print s.enterprise.getProjects('OGo26280') > [{'status': '05_processing', 'startDate': u'20041130T23:00:00' at 4034626c>, 'endDate': u'20281230T23:00:00' at 4034662c>, 'name': 'allgemein', 'url': > 'skyrix://move/', 'projectId': 29470, 'number': 'P29470', 'isFake': > 0, 'dbStatus': 'inserted', 'ownerId': 10280}] > ---snap-- > > However, enterprise.getProjects doesn't return the so called 'fake' > projects (is_fake flag set in the database). Those are the projects > created together with the enterprise record. > I've added a new method enterprise.getAllProjects which also returns > fake projects (OGo 1.1 r1568). > > Greets, > Helge > > On 16. Mrz 2006, at 07:42 Uhr, Arto Mustikkamaa wrote: > > > help get project and > > I have done python program that prints jobs with certain gategory > > and starDate > > and endDate is between given dates now I want to search jobs for > > sertain > > enterpise > > > > in test database I have enterprise named Iiris I see projects with > > project code > > P12420 under this project I see my jobs > > I get enterprices with this methods in my enterprise class > > > > def get_enterprise > > (self,field='name',condition='like',field_value='*'): > > apu="%s %s '%s'" %(field,condition,field_value) > > result=self.server.enterprise.fetch(apu) > > return result > > > > then I send result list to other method > > > > def get_projects(self,elist): > > # elist list of enterprises comes all right > > for e1 in range(len(elist)): > > # entnumber=string.split(elist[e1] ['id'],'/') > > # one_eterprise=string.atoi(entnumber[len(entnumber)-1]) > > # I tried also with number > > one_eterprise= elist[e1] ['id'] > > print one_eterprise > > result=self.server.enterprise.getProjects(one_eterprise) > > print elist[e1] > > print "____projects___" > > print result > > > > enterprise.getProjects give me nothing > > there is no errors in errorlog > > > > how can I get jobs sertain enterprise > > > > > > -- > > OpenGroupware.org XML-RPC > > xmlrpc@opengroupware.org > > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > > -- > http://docs.opengroupware.org/Members/helge/ > OpenGroupware.org > > -- > OpenGroupware.org XML-RPC > xmlrpc@opengroupware.org > http://mail.opengroupware.org/mailman/listinfo/xmlrpc > From xmlrpc@opengroupware.org Fri Mar 24 16:54:11 2006 From: xmlrpc@opengroupware.org (Roberto Bagnoli) Date: Fri, 24 Mar 2006 17:54:11 +0100 Subject: [OGo-XML-RPC] How to set categories for Enterprises via? Message-ID: <44242433.2090003@orion.it> Hi all, a little question about Enterprise structure... When in edit mode on Company data using OGo web gui, there is a "Categories" section we can use to assign categories to enterprises, but i cannot found corresponding data fields into Enterprise Document record structure... Here i refer to the documentation snippet at http://www.opengroupware.org/en/devs/docs/snippets/xmlrpc/EnterpriseStruct.html Is there a way to operate on Enterprise categories using XML-RPC? If so, how? (I'm using ogo-jogi API library) Thanks in advance Best Regards Roberto From xmlrpc@opengroupware.org Fri Mar 24 19:31:13 2006 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Fri, 24 Mar 2006 14:31:13 -0500 Subject: [OGo-XML-RPC] How to set categories for Enterprises via? In-Reply-To: <44242433.2090003@orion.it> References: <44242433.2090003@orion.it> Message-ID: <1143228673.6742.0.camel@aleph.whitemice.org> --=-Xe1tgnHH/iR3y73mZMbp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > a little question about Enterprise structure... > When in edit mode on Company data using OGo web gui, there is > a "Categories" section we can use to assign categories to enterprises, > but i cannot found corresponding data fields into Enterprise Document > record structure... > Here i refer to the documentation snippet at > http://www.opengroupware.org/en/devs/docs/snippets/xmlrpc/EnterpriseStruc= t.html > Is there a way to operate on Enterprise categories using XML-RPC? > If so, how? > (I'm using ogo-jogi API library) The categories are comma separated values in the keywords field of the enterprise structure. --=-Xe1tgnHH/iR3y73mZMbp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEJEkBLRePpNle04MRAnAoAJ0WW8j50JDWUO0b0iR/TB+YReFMKQCffXUb kXkRGHCDToe059zXq7ysb4M= =Z8Td -----END PGP SIGNATURE----- --=-Xe1tgnHH/iR3y73mZMbp--