Un nom de machine ne peut finir par '-'
darcs-hash:20080913104819-ffbb2-6b2eda9d0cd8b7db4788e5eb48025c2ce5a2fc3a.gz
This commit is contained in:
parent
0fec01de74
commit
12e024dc63
1 changed files with 3 additions and 0 deletions
|
@ -2663,6 +2663,9 @@ class Machine(BaseClasseCrans):
|
|||
if not new[0].isalpha():
|
||||
raise ValueError(u"Le premier caractère du champ %s doit être alphabétique" % champ)
|
||||
|
||||
if new.endswith('-'):
|
||||
raise ValueError(u"Le dernier caractère du champ %s ne peut être un tiret" % champ)
|
||||
|
||||
# Ajout du domaine si necessaire
|
||||
if new.find('.') == -1:
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue