app/soc/views/models/role.py
changeset 1195 cbef45d75942
parent 1176 c211191e7d81
child 1196 11dbdf12d7c2
equal deleted inserted replaced
1194:32a9709e6051 1195:cbef45d75942
   204     form = request_params['invite_form'](request.POST)
   204     form = request_params['invite_form'](request.POST)
   205 
   205 
   206     if not form.is_valid():
   206     if not form.is_valid():
   207       # return the invalid form response
   207       # return the invalid form response
   208       return self._constructResponse(request, entity=None, context=context,
   208       return self._constructResponse(request, entity=None, context=context,
   209           form=form, params=params)
   209           form=form, params=request_params)
   210 
   210 
   211     # collect the cleaned data from the valid form
   211     # collect the cleaned data from the valid form
   212     key_name, form_fields = soc.views.helper.forms.collectCleanedFields(form)
   212     key_name, form_fields = soc.views.helper.forms.collectCleanedFields(form)
   213 
   213 
   214     # get the group entity for which this request is via the scope_path
   214     # get the group entity for which this request is via the scope_path
   492     form = request_params['invite_form'](request.POST)
   492     form = request_params['invite_form'](request.POST)
   493 
   493 
   494     if not form.is_valid():
   494     if not form.is_valid():
   495       # return the invalid form response
   495       # return the invalid form response
   496       return self._constructResponse(request, entity=None, context=context,
   496       return self._constructResponse(request, entity=None, context=context,
   497           form=form, params=params)
   497           form=form, params=request_params)
   498 
   498 
   499     # get the group entity for which this request is via the scope_path
   499     # get the group entity for which this request is via the scope_path
   500     group = self._logic.getGroupEntityFromScopePath(params['group_logic'],
   500     group = self._logic.getGroupEntityFromScopePath(params['group_logic'],
   501          kwargs['scope_path'])
   501          kwargs['scope_path'])
   502 
   502