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
......@@ -160,6 +160,13 @@ class RoleManager:
if not r != (not wannaBe): REQUEST.response.notFoundError()
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)
......
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