app/soc/views/models/request.py
changeset 612 3cca81b1e5a1
parent 605 4a384d412640
child 618 b2319f2633bc
equal deleted inserted replaced
611:2ec30182e5f1 612:3cca81b1e5a1
   135       page_name: the page name displayed in templates as page and header title
   135       page_name: the page name displayed in templates as page and header title
   136       params: a dict with params for this View
   136       params: a dict with params for this View
   137       kwargs: not used
   137       kwargs: not used
   138     """
   138     """
   139 
   139 
       
   140     params = dicts.merge(params, self._params)
       
   141 
   140     try:
   142     try:
   141       self.checkAccess('listSelf', request)
   143       access.checkAccess('listSelf', request, params['rights'])
   142     except out_of_band.Error, error:
   144     except out_of_band.Error, error:
   143       return error.response(request)
   145       return error.response(request)
   144 
       
   145     params = dicts.merge(params, self._params)
       
   146 
   146 
   147     # get the current user
   147     # get the current user
   148     properties = {'account': users.get_current_user()}
   148     properties = {'account': users.get_current_user()}
   149     user_entity = user_logic.logic.getForFields(properties, unique=True)
   149     user_entity = user_logic.logic.getForFields(properties, unique=True)
   150 
   150