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:
ab42a9c
)
- allow digits in login_base
author
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 31 Jan 2007 17:04:21 +0000
(17:04 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Wed, 31 Jan 2007 17:04:21 +0000
(17:04 +0000)
PLC/Slices.py
patch
|
blob
|
history
diff --git
a/PLC/Slices.py
b/PLC/Slices.py
index
601ec67
..
a41e88d
100644
(file)
--- a/
PLC/Slices.py
+++ b/
PLC/Slices.py
@@
-58,10
+58,10
@@
class Slice(Row):
# desired.
# 1. Lowercase.
- # 2. Begins with login_base (
only lett
ers).
+ # 2. Begins with login_base (
letters or numb
ers).
# 3. Then single underscore after login_base.
# 4. Then letters, numbers, or underscores.
- good_name = r'^[a-z]+_[a-z0-9_]+$'
+ good_name = r'^[a-z
0-9
]+_[a-z0-9_]+$'
if not name or \
not re.match(good_name, name):
raise PLCInvalidArgument, "Invalid slice name"