add method for checking for top-level page (e.g. data protection stmt)
This commit is contained in:
parent
ff0e19a72c
commit
fb94aacaa8
1 changed files with 4 additions and 0 deletions
|
@ -394,6 +394,10 @@ class NodeView(BaseView):
|
||||||
def editable(self):
|
def editable(self):
|
||||||
return canWrite(self.context, 'body')
|
return canWrite(self.context, 'body')
|
||||||
|
|
||||||
|
def hasTopPage(self, name):
|
||||||
|
page = self.topMenu.context.get(name)
|
||||||
|
return page is not None
|
||||||
|
|
||||||
# menu stuff
|
# menu stuff
|
||||||
|
|
||||||
@Lazy
|
@Lazy
|
||||||
|
|
Loading…
Add table
Reference in a new issue