if AuthorizeHelpers.slice_belongs_to_pi (api, slice, caller):
granted=True ; break
if not granted:
+# try: print "DEBUG: caller=%s"%caller
+# except: pass
raise PLCPermissionDenied, "Cannot write slice tag %s - %s"%(tag_type['tagname'],reason)
setattr(Slice,'caller_may_write_tag',caller_may_write_slice_tag)