summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Hostbase/hostbase/views.py
diff options
context:
space:
mode:
authorKen Raffenetti <raffenet@mcs.anl.gov>2006-11-13 19:47:03 +0000
committerKen Raffenetti <raffenet@mcs.anl.gov>2006-11-13 19:47:03 +0000
commit96588b2fa6a602e020403a9452dcb4b56b7d48c5 (patch)
tree1ebdb14428ef1550dc0bc2c0f6d1b02cdaa9568e /src/lib/Server/Hostbase/hostbase/views.py
parent93f661a2c3cd3282419c5496a0086b7553aceaee (diff)
downloadbcfg2-96588b2fa6a602e020403a9452dcb4b56b7d48c5.tar.gz
bcfg2-96588b2fa6a602e020403a9452dcb4b56b7d48c5.tar.bz2
bcfg2-96588b2fa6a602e020403a9452dcb4b56b7d48c5.zip
made form checking more generic for basic install
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2495 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Hostbase/hostbase/views.py')
-rw-r--r--src/lib/Server/Hostbase/hostbase/views.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/Server/Hostbase/hostbase/views.py b/src/lib/Server/Hostbase/hostbase/views.py
index abb3adf6f..0d15fe106 100644
--- a/src/lib/Server/Hostbase/hostbase/views.py
+++ b/src/lib/Server/Hostbase/hostbase/views.py
@@ -682,20 +682,6 @@ def validate(request, new=False, host_id=None):
and regex.host.match(request.POST['hostname'])):
failures.append('hostname')
- if not regex.printq.match(request.POST['printq']) and request.POST['printq']:
- failures.append('printq')
-
- if not regex.user.match(request.POST['primary_user']):
- failures.append('primary_user')
-
- if (not regex.user.match(request.POST['administrator'])
- and request.POST['administrator']):
- failures.append('administrator')
-
- if not (request.POST['location']
- and regex.location.match(request.POST['location'])):
- failures.append('location')
-
if new:
if (not regex.macaddr.match(request.POST['mac_addr_new'])
and request.POST['mac_addr_new']):