if caller_name in (target_name, target_rec['delegations']):
try: result = method(target_rec, *args[1:])
except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err)
else:
raise xmlrpclib.Fault(108, '%s: Permission denied.' % caller_name)
if caller_name in (target_name, target_rec['delegations']):
try: result = method(target_rec, *args[1:])
except Exception, err: raise xmlrpclib.Fault(104, 'Error in call: %s' %err)
else:
raise xmlrpclib.Fault(108, '%s: Permission denied.' % caller_name)