web/views/csvexport.py
changeset 10663 54b8a1f249fb
parent 10609 e2d8e81bfe68
child 10666 7f6b5f023884
equal deleted inserted replaced
10662:10942ed172de 10663:54b8a1f249fb
    98                 rows_by_type[entity.e_schema] = [[display_name(req, rschema.type)
    98                 rows_by_type[entity.e_schema] = [[display_name(req, rschema.type)
    99                                                   for rschema in rowdef_by_type[entity.e_schema]]]
    99                                                   for rschema in rowdef_by_type[entity.e_schema]]]
   100             rows = rows_by_type[entity.e_schema]
   100             rows = rows_by_type[entity.e_schema]
   101             rows.append([entity.printable_value(rs.type, format='text/plain')
   101             rows.append([entity.printable_value(rs.type, format='text/plain')
   102                          for rs in rowdef_by_type[entity.e_schema]])
   102                          for rs in rowdef_by_type[entity.e_schema]])
   103         for rows in rows_by_type.itervalues():
   103         for rows in rows_by_type.values():
   104             writer.writerows(rows)
   104             writer.writerows(rows)
   105             # use two empty lines as separator
   105             # use two empty lines as separator
   106             writer.writerows([[], []])
   106             writer.writerows([[], []])
   107 
   107