From xmlrpc@opengroupware.org Mon Feb 5 10:57:36 2007 From: xmlrpc@opengroupware.org (=?ISO-8859-1?Q?Fabi_Avil=E9s?=) Date: Mon, 5 Feb 2007 11:57:36 +0100 Subject: [OGo-XML-RPC] LSDBObjectCommandException - no participants set Message-ID: <919866d50702050257y20a26facl3a10fb2b3db08c79@mail.gmail.com> Hi people, I've been reading the thread and found one message wich says the same problem wich is happening to me, but there is no solution in it. That problem is: I try to insert an appointment without any participants, or wether I put some participants in it, I always get the same exception ("no participants set"). It seems that this version of Ogo requires participants to insert and appointment, and that there is some bug in xml-rpc (or I am doing something wrong or have something misconfigured) What I'm seeing is that I can create *ONE* appointment, and subsequent calls to appointment.insert fail. Restarting ogo-xmlrpcd allows me to create one more appointment, etc... First Run ----------------------- [root@ws1 ~]# ./test2.py 20060118T10:10:10 20060118T11:15:10 /usr/lib/python2.3/xmlrpclib.py:373: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up return "" % (repr(self.value), id(self)) {'startDate': , 'endDate': , 'title': 'Test Appointment I'} Appointment Created! ---------------------- {'startDate': , 'endDate': , 'title': 'Test Appointment I', 'participants': [{'password': '***************', 'dbStatus': 'updated', 'name': 'Williams', 'firstname': 'adam', 'companyId': 10410, 'number': 'OGo10410', 'objectVersion': 2, 'isLocked': 0, 'isAccount': 1, 'isExtraAccount': 0, 'isPerson': 1, 'ownerId': 10000, 'login': 'adam', 'isIntraAccount': 1, 'templateUserId': 9999}], 'location': '', 'id': 'skyrix://ws1.cable.orka.telecoms.bg/TestBox/10730'} Second Run ----------------------- [root@ws1 ~]# ./test2.py 20060119T10:10:10 20060119T11:15:10 /usr/lib/python2.3/xmlrpclib.py:373: FutureWarning: %u/%o/%x/%X of negative int will return a signed string in Python 2.4 and up return "" % (repr(self.value), id(self)) {'startDate': , 'endDate': , 'title': 'Test Appointment I'} Traceback (most recent call last): File "./test2.py", line 18, in ? result = server.appointment.insert(dict) File "/usr/lib/python2.3/xmlrpclib.py", line 1029, in __call__ return self.__send(self.__name, args) File "/usr/lib/python2.3/xmlrpclib.py", line 1316, in __request verbose=self.__verbose File "/usr/lib/python2.3/xmlrpclib.py", line 1080, in request return self._parse_response(h.getfile(), sock) File "/usr/lib/python2.3/xmlrpclib.py", line 1219, in _parse_response return u.close() File "/usr/lib/python2.3/xmlrpclib.py", line 742, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: This is copied from the old message from Adam Tauno Williams. Can anybody help me please??? I'm usign InstantOgo 1.0.5 ASE From xmlrpc@opengroupware.org Thu Feb 8 07:57:09 2007 From: xmlrpc@opengroupware.org (Christian Hoffmann) Date: Thu, 08 Feb 2007 08:57:09 +0100 Subject: [OGo-XML-RPC] project.fetchJobs alternative? Message-ID: <45CAD7D5.4010301@niechoj.de> Hi list, the project.fetchJobs method seems not to be implemented. What is the best way if i want to have all jobs assigned to a project? I have no idea to get the relationship between a job and a project. Thanks in advance Christian From xmlrpc@opengroupware.org Thu Feb 8 12:00:56 2007 From: xmlrpc@opengroupware.org (Adam Williams) Date: Thu, 08 Feb 2007 07:00:56 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <45CAD7D5.4010301@niechoj.de> References: <45CAD7D5.4010301@niechoj.de> Message-ID: <1170936056.6625.39.camel@ws01.whitemice.org> > the project.fetchJobs method seems not to be implemented. Correct --- - (NSArray *)project_fetchJobsAction:(id)_person :(id)_fSpec { /* TODO: hh: NOT IMPLEMENTED ?? */ /* TODO: hh: person argument ??? */ return [NSArray array]; // TODO: ??? return [self _fetchJobsOf:[self _getPersonByArgument:_person] fSpec:_fSpec]; } --- Pretty weird looking. > What is the > best way if i want to have all jobs assigned to a project? > I have no idea to get the relationship between a job and a project. It seems that person.fetchJobs takes a fetch specification as the second parameter - person_fetchJobsAction:(id)_person :(id)_fSpec Have you tried setting a "projectId = 123456" as a parameter in the fetch spec? Or you could try my alternative XML-RPC interface, which will return jobs in a project; http://code.google.com/p/zogi/wiki/Project It is not yet complete, but that part is working. ZOGI builds into a ZideStore bundle. From xmlrpc@opengroupware.org Thu Feb 8 14:01:15 2007 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Thu, 08 Feb 2007 09:01:15 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1170936056.6625.39.camel@ws01.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> Message-ID: <1170943275.4897.15.camel@aleph.whitemice.org> --=-K7zbKRB4+LCzfnpLfVi8 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > > What is the > > best way if i want to have all jobs assigned to a project? > > I have no idea to get the relationship between a job and a project. #!/usr/bin/env python import xmlrpclib,pprint server =3D xmlrpclib.Server('http://adam:*******@gourd-amber/RPC2') person =3D server.person.getById(10100) fetchSpec =3D {} fetchSpec['qualifier'] =3D "projectId =3D 115100" result =3D server.person.fetchJobs(10100, fetchSpec) #Tried this too #result =3D server.person.fetchJobs(person, fetchSpec) pprint.pprint(result) This returns nothing. I suspect this is because it is going through the SkyPersonJobDataSource from the Document API; which is not an terribly smart chunk of code. I think the only fetch specs supported through the jobs related functions of the XML-RPC API are: fetchSpec['qualifier'] =3D "type =3D 'toDoJob'" fetchSpec['qualifier'] =3D "type =3D 'controlJob'" fetchSpec['qualifier'] =3D "type =3D 'delegatedJob'" fetchSpec['qualifier'] =3D "type =3D 'archivedJob'" fetchSpec['qualifier'] =3D "type =3D 'palmJob'" There is a SkyProjectJobDataSource object, but it doesn't seem to get used anywhere in the XML-RPC API. Using ZOGI (http://code.google.com/p/zogi/) your should be able to: #!/usr/bin/env python import xmlrpclib,pprint server =3D xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awilliam/'= ) pprint.pprint(server.zogi.getObjectById(115100, 4096)) And get all the tasks for project 115100, in the _TASKS key. --=-K7zbKRB4+LCzfnpLfVi8 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFyy0rLRePpNle04MRAkkeAJ42aWqsZl77p2TKUNWT95b1gtLMEwCfbA8s oSsvBhG41R4m6aPHvHXeoog= =ztoJ -----END PGP SIGNATURE----- --=-K7zbKRB4+LCzfnpLfVi8-- From xmlrpc@opengroupware.org Thu Feb 8 14:26:39 2007 From: xmlrpc@opengroupware.org (Helge Hess) Date: Thu, 8 Feb 2007 15:26:39 +0100 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1170943275.4897.15.camel@aleph.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> Message-ID: <8BBF571B-3BFD-4727-9D62-279080F58716@opengroupware.org> On Feb 8, 2007, at 15:01, Adam Tauno Williams wrote: > This returns nothing. I suspect this is because it is going > through the > SkyPersonJobDataSource from the Document API; which is not an > terribly > smart chunk of code. Yup, thats a problem with xmlrpcd in general. It would make much more sense to use Logic commands and map them to appropriate XML-RPC methods with a defined API. Greets, Helge -- Helge Hess http://www.helgehess.eu/ From xmlrpc@opengroupware.org Thu Feb 8 14:50:48 2007 From: xmlrpc@opengroupware.org (Christian Hoffmann) Date: Thu, 08 Feb 2007 15:50:48 +0100 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1170943275.4897.15.camel@aleph.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> Message-ID: <45CB38C8.4010900@niechoj.de> Is your ZOGI living beside the rpc daemon? Is it easy to install. I am accessing the RPC through a delphi program. Normally it should be easy to use your ZOGI. Is that right? Adam Tauno Williams schrieb: >>> What is the >>> best way if i want to have all jobs assigned to a project? >>> I have no idea to get the relationship between a job and a project. >>> > > #!/usr/bin/env python > import xmlrpclib,pprint > server = xmlrpclib.Server('http://adam:*******@gourd-amber/RPC2') > person = server.person.getById(10100) > fetchSpec = {} > fetchSpec['qualifier'] = "projectId = 115100" > result = server.person.fetchJobs(10100, fetchSpec) > #Tried this too > #result = server.person.fetchJobs(person, fetchSpec) > pprint.pprint(result) > > This returns nothing. I suspect this is because it is going through the > SkyPersonJobDataSource from the Document API; which is not an terribly > smart chunk of code. > > I think the only fetch specs supported through the jobs related > functions of the XML-RPC API are: > > fetchSpec['qualifier'] = "type = 'toDoJob'" > fetchSpec['qualifier'] = "type = 'controlJob'" > fetchSpec['qualifier'] = "type = 'delegatedJob'" > fetchSpec['qualifier'] = "type = 'archivedJob'" > fetchSpec['qualifier'] = "type = 'palmJob'" > > There is a SkyProjectJobDataSource object, but it doesn't seem to get > used anywhere in the XML-RPC API. > > Using ZOGI (http://code.google.com/p/zogi/) your should be able to: > #!/usr/bin/env python > import xmlrpclib,pprint > server = > xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awilliam/') > pprint.pprint(server.zogi.getObjectById(115100, 4096)) > > And get all the tasks for project 115100, in the _TASKS key. > > From xmlrpc@opengroupware.org Thu Feb 8 15:21:09 2007 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Thu, 08 Feb 2007 10:21:09 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <45CB38C8.4010900@niechoj.de> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> Message-ID: <1170948069.4897.31.camel@aleph.whitemice.org> --=-dA9cpWojzWItFbg3G3V4 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > Is your ZOGI living beside the rpc daemon? It loads into ZideStore; it is a ZideStore bundle.=20 > Is it easy to install. I am accessing the RPC through a delphi program.=20 > Normally it should be easy to use your ZOGI. Is that right? To my knowledge no one has tested it other than me; or people who I can force to use my code. :) But it should be pretty easy to install. 1.) Get from Google's SVN http://code.google.com/p/zogi/source 2.) make * Of course this requires the OGo, SOPE, & Objective-C development packages to be installed. This should give you a zOGI.zsp file which you need to bundle up and move to /usr/local/lib/zidestore-1.5 folder of your OGo server. Then if you restart ZideStore (rcogo-zidestore restart on SuSE) you should see a "register ZideStore product: zOGI.zsp" in your "ogo-zidestore-1.5-err.log" file. Then tweak getLoginAccount.py in the TestScripts directory to reflect your username, password, url, etc... and see if it works. This requires Python, but that is a nice simple method to test with. Or, especially if you are using SuSE, try downloading the file at http://code.google.com/p/zogi/downloads/list and unpacking that in /usr/local/lib/zidestore-1.5 on your server. This is built on openSUSE 10.2, but seems to work fine on my SuSE 9.3 boxes as well. As with all off-the-cuff binaries, this can't be guaranteed to work on any-given-box. Documentation at http://code.google.com/p/zogi/wiki/Root zOGI is not complete; but if you run into something you desperately need we'll try to add it quickly. The initial focus was on getting decent methods for managing jobs/tasks. =20 Any feedback is very much appreciated. > > Using ZOGI (http://code.google.com/p/zogi/) your should be able to: > > #!/usr/bin/env python > > import xmlrpclib,pprint > > server =3D > > xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awilli= am/') > > pprint.pprint(server.zogi.getObjectById(115100, 4096)) > > And get all the tasks for project 115100, in the _TASKS key. --=-dA9cpWojzWItFbg3G3V4 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFyz/lLRePpNle04MRAjpaAJ9iip/oLbzbM8BaWesTzLpCm02V3wCfQ7a+ qsfBiGWWYjTlkJIHvRBa4KU= =ekEQ -----END PGP SIGNATURE----- --=-dA9cpWojzWItFbg3G3V4-- From xmlrpc@opengroupware.org Thu Feb 8 15:54:49 2007 From: xmlrpc@opengroupware.org (Helge Hess) Date: Thu, 8 Feb 2007 16:54:49 +0100 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1170948069.4897.31.camel@aleph.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> <1170948069.4897.31.camel@aleph.whitemice.org> Message-ID: <11BC9488-3D22-4E30-88E7-E2B720CBA195@opengroupware.org> On Feb 8, 2007, at 16:21, Adam Tauno Williams wrote: > 1.) Get from Google's SVN > http://code.google.com/p/zogi/source Hm, btw: do you plan to upload that to OGo once I managed to get you Svn write access? Greets, Helge -- Helge Hess http://www.helgehess.eu/ From xmlrpc@opengroupware.org Thu Feb 8 16:09:40 2007 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Thu, 08 Feb 2007 11:09:40 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <11BC9488-3D22-4E30-88E7-E2B720CBA195@opengroupware.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> <1170948069.4897.31.camel@aleph.whitemice.org> <11BC9488-3D22-4E30-88E7-E2B720CBA195@opengroupware.org> Message-ID: <1170950980.4897.44.camel@aleph.whitemice.org> --=-H6g9YI9DJKEMLHrN907n Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2007-02-08 at 16:54 +0100, Helge Hess wrote: > On Feb 8, 2007, at 16:21, Adam Tauno Williams wrote: > > 1.) Get from Google's SVN > > http://code.google.com/p/zogi/source > Hm, btw: do you plan to upload that to OGo once I managed to get you =20 > Svn write access? Hadn't really even thought about it. =20 If it gets to a reasonable state of completeness it would be nice to see it rolled in; especially if someone else starts using it in their apps/utilities. Currently it is still shifting around quite a bit, so I think it is maybe best/easiest to leave it "third party" for now. My entirely soft target it to have something complete-ish by spring or mid-summer. --=-H6g9YI9DJKEMLHrN907n Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFy0tELRePpNle04MRAseOAJ90ObbrYS/0VllvQoBk+4VzIHxS2QCfYXhv N10MCfvXF1ENlTK6rJir/wQ= =KNNw -----END PGP SIGNATURE----- --=-H6g9YI9DJKEMLHrN907n-- From xmlrpc@opengroupware.org Fri Feb 9 10:24:34 2007 From: xmlrpc@opengroupware.org (Christian Hoffmann) Date: Fri, 09 Feb 2007 11:24:34 +0100 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1170948069.4897.31.camel@aleph.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> <1170948069.4897.31.camel@aleph.whitemice.org> Message-ID: <45CC4BE2.9070203@niechoj.de> Thanks Adam, i have installed your binaries because i also use Suse. It worked perfect and fetching the jobs from a project work fine. Thanks a lot and proceed with developing ZOGI. I will check for updates and i think i will use more than just the fetching of projects. See you Christian Adam Tauno Williams schrieb: >> Is your ZOGI living beside the rpc daemon? >> > > It loads into ZideStore; it is a ZideStore bundle. > > >> Is it easy to install. I am accessing the RPC through a delphi program. >> Normally it should be easy to use your ZOGI. Is that right? >> > > To my knowledge no one has tested it other than me; or people who I can > force to use my code. :) But it should be pretty easy to install. > > 1.) Get from Google's SVN > http://code.google.com/p/zogi/source > 2.) make > > * Of course this requires the OGo, SOPE, & Objective-C development > packages to be installed. > > This should give you a zOGI.zsp file which you need to bundle up and > move to /usr/local/lib/zidestore-1.5 folder of your OGo server. Then if > you restart ZideStore (rcogo-zidestore restart on SuSE) you should see a > "register ZideStore product: zOGI.zsp" in your > "ogo-zidestore-1.5-err.log" file. > > Then tweak getLoginAccount.py in the TestScripts directory to reflect > your username, password, url, etc... and see if it works. This requires > Python, but that is a nice simple method to test with. > > Or, especially if you are using SuSE, try downloading the file at > http://code.google.com/p/zogi/downloads/list and unpacking that > in /usr/local/lib/zidestore-1.5 on your server. This is built on > openSUSE 10.2, but seems to work fine on my SuSE 9.3 boxes as well. As > with all off-the-cuff binaries, this can't be guaranteed to work on > any-given-box. > > Documentation at http://code.google.com/p/zogi/wiki/Root > > zOGI is not complete; but if you run into something you desperately > need we'll try to add it quickly. The initial focus was on getting > decent methods for managing jobs/tasks. > > Any feedback is very much appreciated. > > >>> Using ZOGI (http://code.google.com/p/zogi/) your should be able to: >>> #!/usr/bin/env python >>> import xmlrpclib,pprint >>> server = >>> xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awilliam/') >>> pprint.pprint(server.zogi.getObjectById(115100, 4096)) >>> And get all the tasks for project 115100, in the _TASKS key. >>> > > From xmlrpc@opengroupware.org Fri Feb 9 12:20:58 2007 From: xmlrpc@opengroupware.org (Adam Tauno Williams) Date: Fri, 09 Feb 2007 07:20:58 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <45CC4BE2.9070203@niechoj.de> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> <1170948069.4897.31.camel@aleph.whitemice.org> <45CC4BE2.9070203@niechoj.de> Message-ID: <1171023658.4698.16.camel@aleph.whitemice.org> --=-JLhood6hXQK43hFDKP9J Content-Type: text/plain Content-Transfer-Encoding: quoted-printable > i have installed your binaries because i also use Suse. It worked=20 > perfect and fetching the jobs from a project work fine. Excellent. > Thanks a lot and proceed with developing ZOGI. I will check for updates=20 > and i think i will use more than just the fetching of projects. Wonderful. Feel free to toss out suggestions. > > http://code.google.com/p/zogi/source > > Documentation at http://code.google.com/p/zogi/wiki/Root > >>> Using ZOGI (http://code.google.com/p/zogi/) your should be able to: > >>> #!/usr/bin/env python > >>> import xmlrpclib,pprint > >>> server =3D > >>> xmlrpclib.Server('http://awilliam:*****@gourd-amber/zidestore/so/awil= liam/') > >>> pprint.pprint(server.zogi.getObjectById(115100, 4096)) > >>> And get all the tasks for project 115100, in the _TASKS key. --=-JLhood6hXQK43hFDKP9J Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFzGcqLRePpNle04MRAklzAJ0SbKady2q/JaVfXjS9gnLtOcrK1wCcDIU6 osNDvAavFOjgsXq4bpII0FQ= =OFA7 -----END PGP SIGNATURE----- --=-JLhood6hXQK43hFDKP9J-- From xmlrpc@opengroupware.org Sun Feb 11 01:35:30 2007 From: xmlrpc@opengroupware.org (Adam Williams) Date: Sat, 10 Feb 2007 20:35:30 -0500 Subject: [OGo-XML-RPC] project.fetchJobs alternative? In-Reply-To: <1171023658.4698.16.camel@aleph.whitemice.org> References: <45CAD7D5.4010301@niechoj.de> <1170936056.6625.39.camel@ws01.whitemice.org> <1170943275.4897.15.camel@aleph.whitemice.org> <45CB38C8.4010900@niechoj.de> <1170948069.4897.31.camel@aleph.whitemice.org> <45CC4BE2.9070203@niechoj.de> <1171023658.4698.16.camel@aleph.whitemice.org> Message-ID: <1171157730.8759.2.camel@ws01.whitemice.org> > > Thanks a lot and proceed with developing ZOGI. I will check for updates > > and i think i will use more than just the fetching of projects. > Wonderful. Feel free to toss out suggestions. BTW, I just posted a new bundle. http://code.google.com/p/zogi/downloads/list This corresponds to r266 I don't know what features you are looking for but note saving works now, and object properties are both presented/rendered and saved. http://code.google.com/p/zogi/wiki/objectProperty