equal
deleted
inserted
replaced
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): |