18 lines
661 B
Python
18 lines
661 B
Python
|
# ------------------------------------------------------------------------------
|
||
|
from appy.gen.wrappers import AbstractWrapper
|
||
|
|
||
|
# ------------------------------------------------------------------------------
|
||
|
class PageWrapper(AbstractWrapper):
|
||
|
|
||
|
def validate(self, new, errors):
|
||
|
'''Inter-field validation.'''
|
||
|
return self._callCustom('validate', new, errors)
|
||
|
|
||
|
def showSubPages(self):
|
||
|
'''Show the sub-pages.'''
|
||
|
if self.user.has_role('Manager'): return 'view'
|
||
|
|
||
|
def onEdit(self, created):
|
||
|
return self._callCustom('onEdit', created)
|
||
|
# ------------------------------------------------------------------------------
|