web/views/management.py
changeset 3377 dd9d292b6a6d
parent 3230 1d25e928c299
child 3451 6b46d73823f5
equal deleted inserted replaced
3376:f5c69485381f 3377:dd9d292b6a6d
    65         return False
    65         return False
    66 
    66 
    67 
    67 
    68 class SecurityManagementView(EntityView, SecurityViewMixIn):
    68 class SecurityManagementView(EntityView, SecurityViewMixIn):
    69     """display security information for a given entity"""
    69     """display security information for a given entity"""
    70     id = 'security'
    70     __regid__ = 'security'
    71     __select__ = EntityView.__select__ & authenticated_user()
    71     __select__ = EntityView.__select__ & authenticated_user()
    72 
    72 
    73     title = _('security')
    73     title = _('security')
    74 
    74 
    75     def call(self):
    75     def call(self):
   189 
   189 
   190 
   190 
   191 class ErrorView(AnyRsetView):
   191 class ErrorView(AnyRsetView):
   192     """default view when no result has been found"""
   192     """default view when no result has been found"""
   193     __select__ = yes()
   193     __select__ = yes()
   194     id = 'error'
   194     __regid__ = 'error'
   195 
   195 
   196     def page_title(self):
   196     def page_title(self):
   197         """returns a title according to the result set - used for the
   197         """returns a title according to the result set - used for the
   198         title in the HTML header
   198         title in the HTML header
   199         """
   199         """
   272     binfo += '\n'
   272     binfo += '\n'
   273     return binfo
   273     return binfo
   274 
   274 
   275 
   275 
   276 class ProcessInformationView(StartupView):
   276 class ProcessInformationView(StartupView):
   277     id = 'info'
   277     __regid__ = 'info'
   278     __select__ = none_rset() & match_user_groups('users', 'managers')
   278     __select__ = none_rset() & match_user_groups('users', 'managers')
   279 
   279 
   280     title = _('server information')
   280     title = _('server information')
   281 
   281 
   282     def call(self, **kwargs):
   282     def call(self, **kwargs):