Example #1
0
 def columns(self):
     """
     Returns the list of selected column names.
     """
     fields = [f.label for f in self.form_fields
               if self.cleaned_data["field_%s_export" % f.id]]
     if self.cleaned_data["field_0_export"]:
         fields.append(self.entry_time_name)
     return fields
Example #2
0
    def ordered_fields(self):

        fields = []

        for field in self.field_order:
            rfield = self.fields[field]
            if rfield.category in ("internal", "multi_field", "field"):
                fields.append(rfield)
        return fields
Example #3
0
 def columns(self):
     """
     Returns the list of selected column names.
     """
     fields = [f.label.encode("utf-8") for f in self.questionnaire_fields
               if self.posted_data("field_%s_export" % f.id)]
     if self.posted_data("field_0_export"):
         fields.append(self.entry_time_name)
     return fields