Re: Getting defaults via XML-RPC

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
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
[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.