Changeset 649


Ignore:
Timestamp:
Jun 23, 2008, 9:40:25 PM (16 years ago)
Author:
ecprice
Message:

More accurate error message for new machine naming guidelines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-www/code/validation.py

    r648 r649  
    270270    if not Machine.select_by(name=name):
    271271        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 \'-\'.')
    273273        return name
    274274    raise InvalidInput('name', name, "Name is already taken.")
Note: See TracChangeset for help on using the changeset viewer.