app/soc/views/models/role.py
changeset 1756 0a332ff872bf
parent 1730 2d877bb10306
child 1937 7343876363cd
equal deleted inserted replaced
1755:972c546f0810 1756:0a332ff872bf
   601     # get the request entity using the information from kwargs
   601     # get the request entity using the information from kwargs
   602     fields = {'link_id': kwargs['link_id'],
   602     fields = {'link_id': kwargs['link_id'],
   603         'scope_path': kwargs['scope_path'],
   603         'scope_path': kwargs['scope_path'],
   604         'role': params['module_name']}
   604         'role': params['module_name']}
   605     request_entity = request_logic.logic.getForFields(fields, unique=True)
   605     request_entity = request_logic.logic.getForFields(fields, unique=True)
   606     
   606 
   607     get_dict = request.GET
   607     get_dict = request.GET
   608     
   608 
   609     if 'status' in get_dict.keys():
   609     if 'status' in get_dict.keys():
   610       if get_dict['status'] in ['group_accepted', 'rejected', 'ignored']:
   610       if get_dict['status'] in ['group_accepted', 'rejected', 'ignored']:
   611         # update the request_entity and redirect away from this page
   611         # update the request_entity and redirect away from this page
   612         request_status = get_dict['status']
   612         request_status = get_dict['status']
   613 
   613 
   628               redirects.getListRequestsRedirect(request_entity.scope, 
   628               redirects.getListRequestsRedirect(request_entity.scope, 
   629                   group_view.getParams()))
   629                   group_view.getParams()))
   630 
   630 
   631     # put the entity in the context
   631     # put the entity in the context
   632     context['entity'] = request_entity
   632     context['entity'] = request_entity
       
   633     context['request_status'] = request_entity.status 
   633     context['module_name'] = params['module_name']
   634     context['module_name'] = params['module_name']
   634 
   635 
   635     #display the request processing page using the appropriate template
   636     #display the request processing page using the appropriate template
   636     template = request_view.view.getParams()['request_processing_template']
   637     template = request_view.view.getParams()['request_processing_template']
   637 
   638