- Timestamp:
- Oct 9, 2007, 10:50:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r163 r164 35 35 """ 36 36 def __init__(self, err_field, err_value, expl=None): 37 super(InvalidInput, self).__init__(expl)37 MyException.__init__(self, expl) 38 38 self.err_field = err_field 39 39 self.err_value = err_value … … 586 586 if Machine.select_by(name=name) == []: 587 587 return name 588 if name == machine.name: 589 return name 588 590 raise InvalidInput('name', name, 589 591 "Already taken") … … 611 613 hostname = testHostname(owner, fields.getfirst('hostname'), 612 614 machine) 613 name = testName(user, fields.getfirst('name') )615 name = testName(user, fields.getfirst('name'), machine) 614 616 oldname = machine.name 615 617 olddisk = {} … … 618 620 if memory is not None: 619 621 memory = validMemory(user, memory, machine) 622 else: 623 memory = machine.memory 620 624 if memory != machine.memory: 621 625 machine.memory = memory … … 624 628 if disksize is not None: 625 629 disksize = validDisk(user, disksize, machine) 626 627 630 for disk in machine.disks: 628 631 disk.size = disksize
Note: See TracChangeset
for help on using the changeset viewer.