app/soc/views/models/organization.py
changeset 2945 4752074c1af3
parent 2938 062d5ddb15b7
equal deleted inserted replaced
2944:4ef4f0c0c26e 2945:4752074c1af3
   157 
   157 
   158     new_params['edit_extra_dynaproperties'] = {
   158     new_params['edit_extra_dynaproperties'] = {
   159         'clean': cleaning.clean_refs(new_params, ['home_link_id'])
   159         'clean': cleaning.clean_refs(new_params, ['home_link_id'])
   160         }
   160         }
   161 
   161 
       
   162     new_params['mentor_role_name'] = 'mentor'
       
   163 
   162     params = dicts.merge(params, new_params)
   164     params = dicts.merge(params, new_params)
   163 
   165 
   164     super(View, self).__init__(params=params)
   166     super(View, self).__init__(params=params)
   165 
   167 
   166     # create and store the special form for applicants
   168     # create and store the special form for applicants
   190       params: a dict with params for this View
   192       params: a dict with params for this View
   191       kwargs: the Key Fields for the specified entity
   193       kwargs: the Key Fields for the specified entity
   192     """
   194     """
   193 
   195 
   194     list_params = params.copy()
   196     list_params = params.copy()
   195     list_params['list_action'] = (redirects.getRequestRedirectForRole, 'mentor')
   197     list_params['list_action'] = (redirects.getRequestRedirectForRole,
       
   198                                   params['mentor_role_name'])
   196     list_params['list_description'] = ugettext('Choose an Organization which '
   199     list_params['list_description'] = ugettext('Choose an Organization which '
   197         'you want to become a Mentor for.')
   200         'you want to become a Mentor for.')
   198 
   201 
   199     filter = {'scope_path': kwargs['scope_path'],
   202     filter = {'scope_path': kwargs['scope_path'],
   200               'status' : 'active'}
   203               'status' : 'active'}