Merge "Fixed issue with length of new name."

This commit is contained in:
Timur Nurlygayanov 2013-04-08 15:03:47 +04:00 committed by Gerrit Code Review
commit c194bff3be
3 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ class WizardFormIISConfiguration(forms.Form):
super(WizardFormIISConfiguration, self).__init__(*args, **kwargs)
link = request.__dict__['META']['HTTP_REFERER']
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
domains = api.get_active_directories(request, environment_id)

View File

@ -79,7 +79,7 @@ class DeleteService(tables.BatchAction):
def action(self, request, service_id):
link = request.__dict__['META']['HTTP_REFERER']
datacenter_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
datacenter_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
try:
api.service_delete(request, datacenter_id, service_id)
@ -125,7 +125,7 @@ class UpdateServiceRow(tables.Row):
def get_data(self, request, service_id):
link = request.__dict__['META']['HTTP_REFERER']
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
environment_id = re.search('tabula/(\S+)', link).group(0)[77:-1]
service = api.service_get(request, environment_id, service_id)

View File

@ -46,7 +46,7 @@ class Wizard(ModalFormMixin, SessionWizardView, generic.FormView):
def done(self, form_list, **kwargs):
link = self.request.__dict__['META']['HTTP_REFERER']
environment_id = re.search('tabula/(\S+)', link).group(0)[6:-1]
environment_id = re.search('tabula/(\S+)', link).group(0)[7:-1]
url = "/project/tabula/%s/" % environment_id