horizon/openstack_dashboard
Tihomir Trifonov a4e583cffb Improvements in csv export for usage data
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
2013-05-22 11:09:49 +03:00
..
api Use ugettext_lazy instead of ugettext. 2013-05-18 15:13:54 +08:00
dashboards Improvements in csv export for usage data 2013-05-22 11:09:49 +03:00
local Enable parsing of Identity Service V3 catalog. 2013-05-09 21:39:09 -07:00
locale Correct a wonky translation from commit b7e3624 2013-05-13 22:22:44 -07:00
static Adds d3.js library and reworked quota infographics 2013-05-09 10:44:19 -07:00
templates Update Horizon for Django 1.5 compatibility 2013-04-30 20:54:39 -07:00
test Improvements in csv export for usage data 2013-05-22 11:09:49 +03:00
usage Improvements in csv export for usage data 2013-05-22 11:09:49 +03:00
wsgi Updated the django.wsgi file for devstack. 2012-02-29 01:37:37 -08:00
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
context_processors.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
exceptions.py Switch to using cinderclient. 2012-08-14 14:50:15 -07:00
settings.py Remove deprecated features 2013-04-24 13:08:43 +02:00
urls.py Don't inherit from base.html in 500 error page 2012-11-21 12:13:17 +11:00
views.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00