Beispiel #1
0
 def __before__(self, action, **env):
     UserController.__before__(self, action, **env)
     check1 = request.params.get("ext_field-filters")
     ps = request.params.get("ext_field-filters-select")
     check2 = request.params.get("ext_field-actions")
     ac = request.params.get("ext_field-actions-select")
     if check1:
         c.process_state = ps
     if check2:
         c.action_multi = ac
Beispiel #2
0
 def __before__(self, action, **env):
     UserController.__before__(self, action, **env)
     try:
         context = {
             'model': model,
             'user': c.user,
             'auth_user_obj': c.userobj
         }
         check_access('site_read', context)
     except NotAuthorized:
         if c.action not in (
                 'login',
                 'request_reset',
                 'perform_reset',
         ):
             abort(403, _('Not authorized to see this page'))
Beispiel #3
0
 def __before__(self, action, **env):
     log.fatal("Before: %s" % __name__)
     UserController.__before__(self, action, **env)
     context = ''
     self._setup_template_variables(context)
 def __before__(self, action, **env):
     UserController.__before__(self, action, **env)
     c.display_private_only = True
Beispiel #5
0
 def __before__(self, action, **env):
     UserController.__before__(self, action, **env)
     c.display_private_only = True
 def __before__(self, action, **env):
     log.fatal("Before: %s" % __name__)
     UserController.__before__(self, action, **env)
     context = ''
     self._setup_template_variables(context)