def get_form_ids_or_query_string(self, request):
        if 'select_all' in self.request.POST:
            # Altough evaluating form_ids and sending to task would be cleaner,
            # heavier calls should be in in an async task instead
            import urllib
            form_query_string = urllib.unquote(self.request.POST.get('select_all'))
            return form_query_string
        else:
            return self.request.POST.getlist('xform_ids')
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/data_interfaces/views.py/XFormManagementView.get_form_ids_or_query_string/original