projects
/
invirt/packages/invirt-web.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60e6df8
)
Only allow lowercase machine names
author
Eric Price
<ecprice@mit.edu>
Tue, 24 Jun 2008 01:13:53 +0000
(21:13 -0400)
committer
Eric Price
<ecprice@mit.edu>
Tue, 24 Jun 2008 01:13:53 +0000
(21:13 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=647
code/validation.py
patch
|
blob
|
history
diff --git
a/code/validation.py
b/code/validation.py
index
d291d61
..
9b703ad
100644
(file)
--- a/
code/validation.py
+++ b/
code/validation.py
@@
-264,6
+264,7
@@
def testDisk(user, disksize, machine=None):
def testName(user, name, machine=None):
if name is None:
return None
+ name = name.lower()
if machine is not None and name == machine.name:
return None
if not Machine.select_by(name=name):