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: Getting defaults via XML-RPC: msg#00037

cms.opengroupware.xmlrpc.devel

Subject: Re: Getting defaults via XML-RPC

On 9. Jun 2005, at 16:20 Uhr, Adam Tauno Williams wrote:
I'm trying to read the defaults for SkyScheduler_defaultAppointmentTypes
and SkyScheduler_customAppointmentTypes as specified in
http://bugzilla.opengroupware.org/bugzilla/show_bug.cgi?id=384

Hm, this doesn't work because the default is currently defined in the WebUI. So maybe we should add a getAppointmentTypes action (enh request).

But xmlrpc_call http://throw/RPC2 defaults.dataForKey NSGlobalDomain
SkyScheduler_defaultAppointmentTypes doesn't return anything.

Yes, because the xmlrpcd doesn't know about this default.

Is NSGlobalDomain the incorrect domain?

No. And AFAIK its optional, this works for me:

xmlrpc_call http://localhost/RPC2 defaults.arrayForKey Languages

I've tried stringForKey, objectForKey, dictionaryForKey, and dataForKey

The objectForKey action is the master method and will return any type. All the other variants check the type of the default, eg arrayForKey will only return the result if its actually an array.

Greets,
Helge
--
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org

--
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