Changeset 629 for trunk/packages/sipb-xen-www/code/validation.py
- Timestamp:
- Jun 21, 2008, 9:23:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/validation.py
r609 r629 5 5 import re 6 6 import string 7 from sipb_xen_database import Machine, NIC, Type, Disk, CDROM 7 from sipb_xen_database import Machine, NIC, Type, Disk, CDROM, Autoinstall 8 8 from webcommon import InvalidInput 9 9 … … 20 20 def __init__(self, username, state, machine_id=None, name=None, description=None, owner=None, 21 21 admin=None, contact=None, memory=None, disksize=None, 22 vmtype=None, cdrom=None, clone_from=None, strict=False):22 vmtype=None, cdrom=None, autoinstall=None, strict=False): 23 23 # XXX Successive quota checks aren't a good idea, since you 24 24 # can't necessarily change the locker and disk size at the … … 66 66 raise CodeError("Invalid cdrom type '%s'" % cdrom) 67 67 self.cdrom = cdrom 68 if clone_from is not None: 69 if clone_from not in ('ice3', ): 70 raise CodeError("Invalid clone image '%s'" % clone_from) 71 self.clone_from = clone_from 68 if autoinstall is not None: 69 self.autoinstall = Autoinstall.get(autoinstall) 72 70 73 71
Note: See TracChangeset
for help on using the changeset viewer.