app/soc/views/models/group.py
changeset 1115 0a723ff3d27c
parent 1085 0afbdd0905ef
child 1127 69a9134c5c7e
equal deleted inserted replaced
1114:65c8d1bfe94b 1115:0a723ff3d27c
   126     page_name = '%s %s' %(page_name, kwargs['link_id'])
   126     page_name = '%s %s' %(page_name, kwargs['link_id'])
   127 
   127 
   128     # get the group from the request
   128     # get the group from the request
   129     group_logic = params['logic']
   129     group_logic = params['logic']
   130 
   130 
   131     group_entity = group_logic.getFromFields(**kwargs)
   131     group_entity = group_logic.getFromKeyFields(kwargs)
   132 
   132 
   133     role_names = params['role_views'].keys()
   133     role_names = params['role_views'].keys()
   134     
   134     
   135     # list all incoming requests
   135     # list all incoming requests
   136     filter = {
   136     filter = {
   209     page_name = '%s %s' %(page_name, kwargs['link_id'])
   209     page_name = '%s %s' %(page_name, kwargs['link_id'])
   210 
   210 
   211     # get the group from the request
   211     # get the group from the request
   212     group_logic = params['logic']
   212     group_logic = params['logic']
   213 
   213 
   214     group_entity = group_logic.getFromFields(**kwargs)
   214     group_entity = group_logic.getFromKeyFields(kwargs)
   215 
   215 
   216     # create the filter
   216     # create the filter
   217     filter = {
   217     filter = {
   218         'scope' : group_entity,
   218         'scope' : group_entity,
   219         'status': 'active'
   219         'status': 'active'