|
|
Choosing A Webhost: |
Re: Resources and appointments: msg#00017cms.opengroupware.xmlrpc.devel
> > I'm the author of the patch. > Thanks for work work! > > FYI, the example in bugzilla is wrong. The > > example says: > > server.appointment.setResources("25730", [ "25810", "25830"]); > > - but in fact you want to call it with the actual resource names, like: > > server.appointment.setResources("25730", [ "North Conference Room", > > "Video Projector 3"]); > > > > I'd *assumed* that the resource list stored objectIds like the write > > list field, but it appears to actually store resource names. > That's good to know. > Is there a possibility that the behaviour could be changed to > server.appointment.setResources("25730", [ "25810", "25830"]); Yes; a patch to do that is on my ToDo list. If contents is a number like - server.appointment.setResources("25730", [25810, 25830]); - assume it is a pkey/objectId, retrieve the corresponding appointmentResource(s) by id (appointmentresource::get-by-global-id / LSGetResourcesForGlobalIDs) store their names in the appointment. If contents s a string - server.appointment.setResources("25730", [ "North Conference Room"]); - then assume it is a resource name and store it directly, currently with no validation. I might be able to get that out today; but when/if it is accepted into Trunk is up to Helge. Going the other way - resource name to id - doesn't seem to have a specific command, which means I have to do a search. And I'm still a bit bewildered by the EOFetchSpec/extended-search thing. > Because I like it more to have object ids to deal with, than a > changeable plaintext argument. Yep. I've got the same issue. My code tosses around triples like "Document/{entityName}/{objectId}" as a way to abstractly refer to any OGo document/object. So I'm trying to clean up what I can within xmlrpcd. > I'm not that much into Objective-C, so it is not a quick job for me to > check the possiblities. Me neither! But I'm learning. :) -- OpenGroupware.org XML-RPC xmlrpc@xxxxxxxxxxxxxxxxx http://mail.opengroupware.org/mailman/listinfo/xmlrpc
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Resources and appointments, Tobias Kaefer |
|---|---|
| Next by Date: | Recent XML-RPC Updates, Adam Tauno Williams |
| Previous by Thread: | Re: Resources and appointments, Tobias Kaefer |
| Next by Thread: | Re: Resources and appointments, Tobias Kaefer |
| 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 |