summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-12-19 16:56:46 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-12-19 16:56:46 +0000
commitebeaec309a6440d1d4880873f8f65b1df94ac099 (patch)
tree493f46f066cc08badf824bc083993f4aaa748500
parente8c25ccfae3748adc471f0bf1cd2fc5a4dbab028 (diff)
downloadbcfg2-ebeaec309a6440d1d4880873f8f65b1df94ac099.tar.gz
bcfg2-ebeaec309a6440d1d4880873f8f65b1df94ac099.tar.bz2
bcfg2-ebeaec309a6440d1d4880873f8f65b1df94ac099.zip
bugs in web stuff
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2599 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Hostbase/hostbase/__init__.pyobin149 -> 0 bytes
-rw-r--r--src/lib/Server/Hostbase/hostbase/models.pyobin206 -> 0 bytes
-rw-r--r--src/lib/Server/Hostbase/hostbase/views.py6
-rw-r--r--src/lib/Server/Hostbase/hostbase/views.pyobin146 -> 0 bytes
-rw-r--r--src/lib/Server/Hostbase/hostbase/webtemplates/edit.html2
5 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/__init__.pyo b/src/lib/Server/Hostbase/hostbase/__init__.pyo
deleted file mode 100644
index 13344544e..000000000
--- a/src/lib/Server/Hostbase/hostbase/__init__.pyo
+++ /dev/null
Binary files differ
diff --git a/src/lib/Server/Hostbase/hostbase/models.pyo b/src/lib/Server/Hostbase/hostbase/models.pyo
deleted file mode 100644
index 02c6a5e3d..000000000
--- a/src/lib/Server/Hostbase/hostbase/models.pyo
+++ /dev/null
Binary files differ
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py
index dd82f7337..f248f3189 100644
--- a/src/lib/Server/Hostbase/hostbase/views.py
+++ b/src/lib/Server/Hostbase/hostbase/views.py
@@ -533,10 +533,10 @@ def new(request):
if request.POST['ip_addr_new'] and not request.POST['mac_addr_new']:
new_inter = Interface(host=host,
mac_addr="",
- hdwr_type=request.POST['hdwr_type_new1'],
+ hdwr_type=request.POST['hdwr_type_new'],
dhcp=False)
new_inter.save()
- new_ip = IP(interface=new_inter, ip_addr=request.POST['ip_addr_new1'])
+ new_ip = IP(interface=new_inter, ip_addr=request.POST['ip_addr_new'])
new_ip.save()
mx, created = MX.objects.get_or_create(priority=settings.PRIORITY, mx=settings.DEFAULT_MX)
if created:
@@ -771,7 +771,7 @@ def zonenew(request):
return render_to_response('errors.html', {'failures': errors})
else:
do_zone_add(manipulator, new_data)
- return HttpResponseRedirect('/hostbase/zones/%s' % new_zone.id)
+ return HttpResponseRedirect('/hostbase/zones/')
else:
errors = new_data = {}
diff --git a/src/lib/Server/Hostbase/hostbase/views.pyo b/src/lib/Server/Hostbase/hostbase/views.pyo
deleted file mode 100644
index 04623e621..000000000
--- a/src/lib/Server/Hostbase/hostbase/views.pyo
+++ /dev/null
Binary files differ
diff --git a/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html
index 297a3860b..d95c62f68 100644
--- a/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html
+++ b/src/lib/Server/Hostbase/hostbase/webtemplates/edit.html
@@ -148,7 +148,7 @@ div#interface{
<!-- By default, section is hidden -->
<div id=interface>
<label for="id_interface">Interface:</label>
- <select name="hdwr_type{{ interface.0.id }}">
+ <select name="hdwr_type_new">
{% for choice in TYPE_CHOICES %}
<option value="{{ choice.0 }}">{{ choice.1 }}
{% endfor %}