- Timestamp:
- Oct 9, 2007, 10:29:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/main.py
r162 r163 584 584 585 585 def testName(user, name, machine=None): 586 return name 586 if Machine.select_by(name=name) == []: 587 return name 588 raise InvalidInput('name', name, 589 "Already taken") 587 590 588 591 def testHostname(user, hostname, machine): … … 641 644 except: 642 645 transaction.rollback() 646 raise 643 647 remctl("web", "moveregister", oldname, name) 644 648 for disk in machine.disks:
Note: See TracChangeset
for help on using the changeset viewer.