git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f9c9ed6
)
- allow digits in login_base
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 31 Jan 2007 15:00:25 +0000
(15:00 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 31 Jan 2007 15:00:25 +0000
(15:00 +0000)
PLC/Sites.py
patch
|
blob
|
history
diff --git
a/PLC/Sites.py
b/PLC/Sites.py
index
c0dd170
..
19b15d6
100644
(file)
--- a/
PLC/Sites.py
+++ b/
PLC/Sites.py
@@
-67,8
+67,8
@@
class Site(Row):
if not len(login_base):
raise PLCInvalidArgument, "Login base must be specified"
if not len(login_base):
raise PLCInvalidArgument, "Login base must be specified"
- if not set(login_base).issubset(string.
ascii_letters.lower()
):
- raise PLCInvalidArgument, "Login base must consist only of lowercase ASCII letters"
+ if not set(login_base).issubset(string.
lowercase + string.digits
):
+ raise PLCInvalidArgument, "Login base must consist only of lowercase ASCII letters
or numbers
"
conflicts = Sites(self.api, [login_base])
for site in conflicts:
conflicts = Sites(self.api, [login_base])
for site in conflicts: