Fixed issues with templates
This commit is contained in:
@@ -109,22 +109,22 @@ class WizardFormIISConfiguration(forms.Form):
|
|||||||
iis_domain = forms.ChoiceField(label=_('Member of the Domain'),
|
iis_domain = forms.ChoiceField(label=_('Member of the Domain'),
|
||||||
required=False)
|
required=False)
|
||||||
|
|
||||||
def __init__(self, request, *args, **kwargs):
|
# def __init__(self, request, *args, **kwargs):
|
||||||
|
#
|
||||||
super(WizardFormIISConfiguration, self).__init__(request,
|
# super(WizardFormIISConfiguration, self).__init__(request,
|
||||||
*args,
|
# *args,
|
||||||
**kwargs)
|
# **kwargs)
|
||||||
|
#
|
||||||
link = self.request.__dict__['META']['HTTP_REFERER']
|
# link = self.request.__dict__['META']['HTTP_REFERER']
|
||||||
datacenter_id = re.search('windc/(\S+)', link).group(0)[6:-1]
|
# datacenter_id = re.search('windc/(\S+)', link).group(0)[6:-1]
|
||||||
|
#
|
||||||
domains = api.services_list(request, datacenter_id)
|
# domains = api.services_list(request, datacenter_id)
|
||||||
|
#
|
||||||
LOG.critical('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$')
|
# LOG.critical('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$')
|
||||||
LOG.critical(domains)
|
# LOG.critical(domains)
|
||||||
LOG.critical('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
|
# LOG.critical('&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&')
|
||||||
|
#
|
||||||
self.fields['iis_domain'].choices = [("", "")] + \
|
# self.fields['iis_domain'].choices = [("", "")] + \
|
||||||
[(domain.name, domain.name)
|
# [(domain.name, domain.name)
|
||||||
for domain in domains]
|
# for domain in domains]
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ class ConfigureDCAction(workflows.Action):
|
|||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
name = _("Data Center")
|
name = _("Data Center")
|
||||||
help_text_template = ("api_data_center_help.html")
|
help_text_template = "_data_center_help.html"
|
||||||
|
|
||||||
|
|
||||||
class ConfigureDC(workflows.Step):
|
class ConfigureDC(workflows.Step):
|
||||||
|
|||||||
Reference in New Issue
Block a user