[kronolith] Calendar permissions via xmlrpc / python
Guenter Bartsch
guenter.bartsch at gmail.com
Mon Jan 28 12:15:59 UTC 2013
all,
currently experimenting with the xmlrpc apis of horde/kronolith (using python)
anyone happen to know how share/calender permissions work?
I have tried listUserPermissions and listGroupPermissions, but all I
get i empty responses:
horde: Browse...
horde: kronolith/heiko/vzIvbK9GdIOq7PEPgu3otg1: {'browseable': True,
'name': 'Events from Shared Kalender von Heiko', 'icon': {'': [],
'app': 'kronolith'}}
horde: result from listUserPermissions: []
horde: result from listGroupPermissions: []
horde: kronolith/heiko/DofqbdhGPrM0pxfigx7-Qg8: {'browseable': True,
'name': 'Events from Noch ein privater Heiko-Kalender', 'icon': {'':
[], 'app': 'kronolith'}}
horde: result from listUserPermissions: []
horde: result from listGroupPermissions: []
horde: kronolith/heiko/foo: {'browseable': True, 'name': 'Events
from Vom Skript angelegter Kalender', 'icon': {'': [], 'app':
'kronolith'}}
horde: result from listUserPermissions: []
horde: result from listGroupPermissions: []
horde: kronolith/heiko/72IvcjFwgO0C5HuLGSfPKg1: {'browseable': True,
'name': 'Events from Calendar of heiko', 'icon': {'': [], 'app':
'kronolith'}}
horde: result from listUserPermissions: []
horde: result from listGroupPermissions: []
code snipped:
print "horde: Browse..."
browse = server.calendar.browse ("kronolith/%s" % horde_login, [])
for cal_id in browse:
try:
if cal_id.endswith (".ics"):
continue
cal = browse[cal_id]
print "horde: %s: %s" % (cal_id, str(cal))
base_id = cal_id.rsplit ('/', 1)[1]
perms = server.horde.listUserPermissions ("kronolith",
base_id, horde_login)
print "horde: result from listUserPermissions: %s"
% str(perms)
for perm in perms:
print "horde: UP %s" % str(perm)
perms = server.horde.listGroupPermissions
("kronolith", base_id, horde_login)
print "horde: result from listGroupPermissions: %s"
% str(perms)
for perm in perms:
print "horde: GP %s" % str(perm)
except xmlrpclib.Fault as e:
print "Fault catched: %s" % e
ideas, anyone?
best,
guenter
More information about the kronolith
mailing list