Changeset 649
- Timestamp:
- Jun 23, 2008, 9:40:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/validation.py
r648 r649 270 270 if not Machine.select_by(name=name): 271 271 if not validMachineName(name): 272 raise InvalidInput('name', name, 'You must provide a machine name. Max 22 chars, alnum plus \'-\' and \'_\'.')272 raise InvalidInput('name', name, 'You must provide a machine name. Max 63 chars, alnum plus \'-\', does not begin or end with \'-\'.') 273 273 return name 274 274 raise InvalidInput('name', name, "Name is already taken.")
Note: See TracChangeset
for help on using the changeset viewer.