Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: xmlrpc calls: msg#00001

cms.opengroupware.xmlrpc.devel

Subject: Re: xmlrpc calls

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>
Google Custom Search

Recently Viewed:
db.postgresql.b...    video.ffmpeg.us...    gis.qgis.devel/...    web.rdf.redland...    file-systems.oc...    recreation.rail...    systems.archos....    python.c++/2003...    lang.c--/2005-0...    multimedia.gpho...    network.unison....    editors.jedit.u...    hardware.pciids...    cms.tiki.cvs/20...    bug-tracking.ma...    java.hadoop.hba...    ietf.rsvp/2002-...    xfree86.devel/2...    qnx.openqnx.dev...    apache.labs.dev...    tex.pdftex/2008...    os.solaris.open...    user-groups.lin...    kde.koffice/200...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive 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

Navigation