def accessControlList(self, request, inheritance=True, expanding=False, inherited_aces=None): def gotACL(wikiACL): if wikiACL is not None: # ACL depends on wiki server... log.debug("Wiki ACL: %s" % (wikiACL.toxml(),)) return succeed(wikiACL) else: # ...otherwise permissions are fixed, and are not subject to # inheritance rules, etc. return self.defaultAccessControlList() d = getWikiACL(self, request) d.addCallback(gotACL) return d
def accessControlList(self, request, inheritance=True, expanding=False, inherited_aces=None): try: wikiACL = (yield getWikiACL(self, request)) except HTTPError: wikiACL = None if wikiACL is not None: # ACL depends on wiki server... log.debug("Wiki ACL: %s" % (wikiACL.toxml(),)) returnValue(wikiACL) else: # ...otherwise permissions are fixed, and are not subject to # inheritance rules, etc. returnValue((yield self.defaultAccessControlList()))
def accessControlList(self, request, inheritance=True, expanding=False, inherited_aces=None): def gotACL(wikiACL): if wikiACL is not None: # ACL depends on wiki server... log.debug("Wiki ACL: %s" % (wikiACL.toxml(), )) return succeed(wikiACL) else: # ...otherwise permissions are fixed, and are not subject to # inheritance rules, etc. return self.defaultAccessControlList() d = getWikiACL(self, request) d.addCallback(gotACL) return d