+
+
+@generated_file_view('reports/katalog.csv', 'application/csv',
+ send_name=lambda: 'wolnelektury_%s.csv' % date.today(),
+ signals=[Book.published])
+def catalogue_csv(path):
+ books_by_author, orphans, books_by_parent = Book.book_list()
+ render_to_csv(path, 'reporting/catalogue.csv', locals())