Splits OpenStack Dashboard bits from framework app code.

Moves everything OpenStack-specific (dashboards, apis, etc.)
into the openstack_dashboard project, achieving a much
cleaner separation between the project-specific code and
the generic Horizon framework code.

Change-Id: I7235b41d449b26c980668fc3eb4360b24508717b
This commit is contained in:
Gabriel Hurley
2012-10-04 15:43:40 -07:00
parent ef1e1d9b7a
commit cb8e7c1f8f
569 changed files with 51653 additions and 53160 deletions

View File

@@ -15,6 +15,7 @@
# under the License.
import copy
import json
from django import http
from django import shortcuts
@@ -23,7 +24,6 @@ from django.views import generic
from horizon import exceptions
from horizon import messages
from horizon.forms.views import ADD_TO_FIELD_HEADER
from horizon.openstack.common import jsonutils
class WorkflowView(generic.TemplateView):
@@ -149,7 +149,7 @@ class WorkflowView(generic.TemplateView):
field_id = self.request.META["HTTP_X_HORIZON_ADD_TO_FIELD"]
data = [self.get_object_id(workflow.object),
self.get_object_display(workflow.object)]
response = http.HttpResponse(jsonutils.dumps(data))
response = http.HttpResponse(json.dumps(data))
response["X-Horizon-Add-To-Field"] = field_id
return response
else: