Changeset 577 for trunk/packages/sipb-xen-www/code/main.py
- Timestamp:
- Jun 2, 2008, 11:58:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/main.py
r576 r577 145 145 def parseCreate(username, state, fields): 146 146 kws = dict([(kw, fields.getfirst(kw)) for kw in 'name owner memory disksize vmtype cdrom clone_from'.split()]) 147 validate = validation.Validate(username, state, **kws)147 validate = validation.Validate(username, state, strict=True, **kws) 148 148 return dict(contact=username, name=validate.name, memory=validate.memory, 149 149 disksize=validate.disksize, owner=validate.owner, machine_type=validate.vmtype, … … 155 155 try: 156 156 parsed_fields = parseCreate(username, state, fields) 157 machine = controls.createVm(username, **parsed_fields)157 machine = controls.createVm(username, state, **parsed_fields) 158 158 except InvalidInput, err: 159 159 pass
Note: See TracChangeset
for help on using the changeset viewer.