Commit eb796dfd authored by Jeffrey Shell's avatar Jeffrey Shell

Added routine to check whether we're being accessed as a ZClass

Defined Instance Method.  But you should be able to guess that.
parent e4f23215
......@@ -161,6 +161,13 @@ class RoleManager:
return r
def _isBeingAccessedAsZClassDefinedInstanceMethod(self):
p=getattr(self,'aq_parent',None)
if p is None: return 0 # Not wrapped
return type(p.aq_base) is PermissionMapper
def getPermissionMapping(name, obj, st=type('')):
obj=getattr(obj, 'aq_base', obj)
name=pname(name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment