Re: xmlrpc calls

Gerhard Pfeiffer <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
On Mon, May 02, 2005 at 09:34:37PM +0200, Henning Burow wrote:
> I was looking into the jogi software, but i couldn't find it there. Then 
> i checked the xmlrpc_call with
> xmlrpc_call http://localhost:22000/RPC2
> which generated me a list of a lot of possible xml calls, but i could 
> not find all needed calls there. Is there a way over xmlrpc to put 
> appointments in opengroupware with all those fields?

Did you try appointment.insert or appointment.ypdate?
Didn't use them myself yet, but I think setting the values in the
parameter-struct might work.

Ok, before sendig this, I played a little  bit around:
#!/usr/bin/python
import xmlrpclib, time

s  = xmlrpclib.Server("https://togo:********@ogo.informatik.uni-erlangen.de/RPC2")

endDate = xmlrpclib.DateTime(time.strptime( '2007-01-31','%Y-%m-%d'))
startDate = xmlrpclib.DateTime(time.strptime('2005-05-05','%Y-%m-%d'))
end = xmlrpclib.DateTime(time.strptime('2005-05-06','%Y-%m-%d'))
dict = {}
dict['startDate'] = startDate
dict['endDate'] = end
dict['title'] = 'ein test'
dict['type'] = 'weekly'
dict['cycleEndDate'] = endDate

res = s.appointment.insert(dict)
print(repr(res))


This way, you can set a cyclic appointment.
type is one of weekday,daily,14_daily,4_weekly,weekly,monthly,yearly

[had to look this up in the source, didn't see it anywhere in the
documentation...]


Ciao,
  Gerhard
-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.