author | Thierry Florac <thierry.florac@onf.fr> |
Thu, 03 May 2018 11:36:20 +0200 | |
changeset 86 | 48af829c3e59 |
parent 85 | ae47f20eae33 |
child 87 | e1bed28e3ff7 |
--- a/src/pyams_portal/page.py Thu May 03 11:35:53 2018 +0200 +++ b/src/pyams_portal/page.py Thu May 03 11:36:20 2018 +0200 @@ -64,6 +64,14 @@ self._inherit_parent = value if self.can_inherit else False @property + def override_parent(self): + return not self.inherit_parent + + @override_parent.setter + def override_parent(self, value): + self.inherit_parent = not value + + @property def parent(self): parent = self.__parent__ page = IPortalPage(parent)