|
|
Choosing A Webhost: |
Re: xmlrpc calls: msg#00001cms.opengroupware.xmlrpc.devel
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 xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | xmlrpc calls, Henning Burow |
|---|---|
| Next by Date: | JOGI person, Christoph Guse |
| Previous by Thread: | xmlrpc calls, Henning Burow |
| Next by Thread: | Re: xmlrpc calls, Adam Tauno Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |