def navRootObject(self): """ Find the root of the page navigation """ context = aq_inner(self.context) parent = aq_parent(context) while parent and not IHelpCenterNavRoot.providedBy(parent): parent = aq_parent(parent) return parent
def navRootObject(self): """ Find the root of the page navigation """ context = aq_inner(self.context) parent = aq_parent(context) while parent and not IHelpCenterNavRoot.providedBy(parent): parent = aq_parent(parent) return parent
def navRootObject(self): """ Find the metadata parent """ parent = aq_parent(aq_inner(self)) while parent and not IHelpCenterNavRoot.providedBy(parent): try: parent = aq_parent(parent) except AttributeError: break return parent
def navRootObject(self): """ Find the metadata parent """ parent = aq_parent(aq_inner(self)) while parent and not IHelpCenterNavRoot.providedBy(parent): try: parent = aq_parent(parent) except AttributeError: break return parent