Changeset 2701
- Timestamp:
- Dec 20, 2009, 9:46:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy-rebased/code/controls.py
r2684 r2701 209 209 machine = validation.Validate(username, state, machine_id=machine_id).machine 210 210 action = command_name 211 cdrom = fields.get('cdrom') 212 if not cdrom: 213 cdrom = None 211 cdrom = fields.get('cdrom') or None 214 212 if cdrom is not None and not CDROM.query().filter_by(cdrom_id=cdrom).one(): 215 213 raise CodeError("Invalid cdrom type '%s'" % cdrom)
Note: See TracChangeset
for help on using the changeset viewer.