summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Nurlygayanov <tnurlygayanov@mirantis.com>2013-04-08 15:02:51 +0400
committerTimur Nurlygayanov <tnurlygayanov@mirantis.com>2013-04-08 15:02:51 +0400
commitb4578c2ee268cc5086d8eb4527dfb2f497b094f4 (patch)
tree626d6960a7aeae73141a5d2e285c4d30fc0c1135
parent36ac33745799375c47320ff48fb3547a433e803d (diff)
Fixed issue with length of new name.
-rw-r--r--dashboard/glazierdashboard/tabula/forms.py2
-rw-r--r--dashboard/glazierdashboard/tabula/tables.py4
-rw-r--r--dashboard/glazierdashboard/tabula/views.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/dashboard/glazierdashboard/tabula/forms.py b/dashboard/glazierdashboard/tabula/forms.py
index a9f78f0..515488d 100644
--- a/dashboard/glazierdashboard/tabula/forms.py
+++ b/dashboard/glazierdashboard/tabula/forms.py
@@ -111,7 +111,7 @@ class WizardFormIISConfiguration(forms.Form):
111 super(WizardFormIISConfiguration, self).__init__(*args, **kwargs) 111 super(WizardFormIISConfiguration, self).__init__(*args, **kwargs)
112 112
113 link = request.__dict__['META']['HTTP_REFERER'] 113 link = request.__dict__['META']['HTTP_REFERER']
114 environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1] 114 environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
115 115
116 domains = api.get_active_directories(request, environment_id) 116 domains = api.get_active_directories(request, environment_id)
117 117
diff --git a/dashboard/glazierdashboard/tabula/tables.py b/dashboard/glazierdashboard/tabula/tables.py
index a983781..94eabd3 100644
--- a/dashboard/glazierdashboard/tabula/tables.py
+++ b/dashboard/glazierdashboard/tabula/tables.py
@@ -79,7 +79,7 @@ class DeleteService(tables.BatchAction):
79 79
80 def action(self, request, service_id): 80 def action(self, request, service_id):
81 link = request.__dict__['META']['HTTP_REFERER'] 81 link = request.__dict__['META']['HTTP_REFERER']
82 datacenter_id = re.search('tabula/(\S+)', link).group(0)[6:-1] 82 datacenter_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
83 83
84 try: 84 try:
85 api.service_delete(request, datacenter_id, service_id) 85 api.service_delete(request, datacenter_id, service_id)
@@ -125,7 +125,7 @@ class UpdateServiceRow(tables.Row):
125 def get_data(self, request, service_id): 125 def get_data(self, request, service_id):
126 126
127 link = request.__dict__['META']['HTTP_REFERER'] 127 link = request.__dict__['META']['HTTP_REFERER']
128 environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1] 128 environment_id = re.search('tabula/(\S+)', link).group(0)[77:-1]
129 129
130 service = api.service_get(request, environment_id, service_id) 130 service = api.service_get(request, environment_id, service_id)
131 131
diff --git a/dashboard/glazierdashboard/tabula/views.py b/dashboard/glazierdashboard/tabula/views.py
index 158612f..9e4308e 100644
--- a/dashboard/glazierdashboard/tabula/views.py
+++ b/dashboard/glazierdashboard/tabula/views.py
@@ -46,7 +46,7 @@ class Wizard(ModalFormMixin, SessionWizardView, generic.FormView):
46 46
47 def done(self, form_list, **kwargs): 47 def done(self, form_list, **kwargs):
48 link = self.request.__dict__['META']['HTTP_REFERER'] 48 link = self.request.__dict__['META']['HTTP_REFERER']
49 environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1] 49 environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
50 50
51 url = "/project/tabula/%s/" % environment_id 51 url = "/project/tabula/%s/" % environment_id
52 52