[gen] Removed obsolete code; a Page instance that does not have sub-pages does not show the portlet.
This commit is contained in:
parent
b717a001d4
commit
46f5b8e464
2 changed files with 5 additions and 5 deletions
|
@ -12,6 +12,11 @@ class PageWrapper(AbstractWrapper):
|
|||
'''Show the sub-pages.'''
|
||||
if self.user.has_role('Manager'): return 'view'
|
||||
|
||||
def showPortlet(self):
|
||||
'''Do not show the portlet for a page, unless sub-pages arre defined.'''
|
||||
if self.isEmpty('pages'): return False
|
||||
return True
|
||||
|
||||
def onEdit(self, created):
|
||||
return self._callCustom('onEdit', created)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue