a4e583cffb
Added a csv writer using the 'csv' library to format properly exported data - escaping, encoding etc. Added a HttpResponse-based class to handle csv generation Added translation for the CSV columns and template. Improved consistency for exported data - now passing project name instead of project id for csv export. Also added both project name/id in the header of a project usage export. Fix bug #1158383 Renamed few occurencies of 'tenant' to project. Also added a new 'project' in nova_data.py, which required some refactoring of few tests, that didn't consider the current project for project-based calls. Note: I've added a StreamingHttpResponse example, which is introduced in Django 1.5+ and being advised in the ticket. However, my opinion is that at the moment we don't need this - it is too complicated for the current usage. Change-Id: Ic00626b273921fa5c6c89704b3a9e08b252aaeb0 |
||
---|---|---|
.. | ||
api | ||
dashboards | ||
local | ||
locale | ||
static | ||
templates | ||
test | ||
usage | ||
wsgi | ||
__init__.py | ||
context_processors.py | ||
exceptions.py | ||
settings.py | ||
urls.py | ||
views.py |