<s> import csv <EOL> from django . http import HttpResponse <EOL> from lfs . export . utils import register <EOL> from lfs . export . models import Export <EOL> def export ( request , export ) : <EOL> """<STR_LIT>""" <EOL> response = HttpResponse ( content_type = "<STR_LIT>" ) <EOL> response [ "<STR_LIT>" ] = "<STR_LIT>" % export . name <EOL> writer = csv . writer ( response , delimiter = "<STR_LIT:;>" , quotechar = '<STR_LIT:">' , quoting = csv . QUOTE_ALL ) <EOL> for product in export . get_products ( ) : <EOL> writer . writerow ( ( <EOL> product . get_name ( ) . encode ( "<STR_LIT:utf-8>" ) , <EOL> ) ) <EOL> return response </s>
