svn path=/trunk/packages/sipb-xen-www/; revision=429
def parseCreate(user, fields):
name = fields.getfirst('name')
if not validation.validMachineName(name):
def parseCreate(user, fields):
name = fields.getfirst('name')
if not validation.validMachineName(name):
- raise InvalidInput('name', name, 'You must provide a machine name.')
+ raise InvalidInput('name', name, 'You must provide a machine name. Max 22 chars, alnum plus \'-\' and \'_\'.')
name = name.lower()
if Machine.get_by(name=name):
name = name.lower()
if Machine.get_by(name=name):