[OGo-XML-RPC] Resources and appointments

Adam Tauno Williams xmlrpc@opengroupware.org
Thu, 17 Aug 2006 06:42:15 -0400


On Thu, 2006-08-17 at 11:22 +0200, Helge Hess wrote:
> On Aug 17, 2006, at 07:16, Tobias Kaefer wrote:
> > "[_coder encodeString:[self resourceNames] forKey:@"resourceNames"];
> >
> > to the encodeWithXmlRpcCoder method in SkyAppointmentDocument 
> > +XmlRpcCoding.m"
> 
> I've added something like this in trunk. It exposes the names as  
> arrays though.

Cool.

Note that there is already a "resource.getByName" action,  so the client
should be able to work with the list-of-names.

awilliam@aleph:~/OGo/TestScripts/xmlrpcd> cat getResourceByName.py
#!/usr/bin/env python
import xmlrpclib,time,pprint
server = xmlrpclib.Server('http://awilliam:fred@localhost/RPC2')
result = server.resource.getByName("North Conference Room")
print result

awilliam@aleph:~/OGo/TestScripts/xmlrpcd> ./getResourceByName.py
[{'category': 'Conference Room', 'name': 'North Conference Room',
'objectVersion': 1, 'email': 'awilliam@whitemice.org',
'notificationTime': 720, 'emailSubject': 'North Conference Room', 'id':
'skyrix://aleph.whitemice.org/aleph/25830'}]