Changeset 2520 for package_branches/invirt-web/cherrypy/code
- Timestamp:
- Oct 29, 2009, 1:36:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/controls.py
r2418 r2520 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.