app/soc/views/models/student_project.py
changeset 2689 18d8486fd411
parent 2688 dfe0439a0711
child 2691 f8e0a007d99b
equal deleted inserted replaced
2688:dfe0439a0711 2689:18d8486fd411
   411     content = [gps_list, ps_list]
   411     content = [gps_list, ps_list]
   412 
   412 
   413     for list in content:
   413     for list in content:
   414       # remove all the surveys that have no records attached
   414       # remove all the surveys that have no records attached
   415       list['data'] = [i for i in list['data'] if
   415       list['data'] = [i for i in list['data'] if
   416                       list['logic'].hasAtLeastOneRecord(i)]
   416                       list['logic'].hasRecord(i)]
   417 
   417 
   418     # return the List Object with the filtered list content
   418     # return the List Object with the filtered list content
   419     return soc.logic.lists.Lists(content)
   419     return soc.logic.lists.Lists(content)
   420 
   420 
   421   def manageGet(self, request, template, context, params, entity, **kwargs):
   421   def manageGet(self, request, template, context, params, entity, **kwargs):