Ignore:
Timestamp:
Oct 29, 2009, 1:36:35 AM (14 years ago)
Author:
price
Message:

small style fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/controls.py

    r2418 r2520  
    209209    machine = validation.Validate(username, state, machine_id=machine_id).machine
    210210    action = command_name
    211     cdrom = fields.get('cdrom')
    212     if not cdrom:
    213         cdrom = None
     211    cdrom = fields.get('cdrom') or None
    214212    if cdrom is not None and not CDROM.query().filter_by(cdrom_id=cdrom).one():
    215213        raise CodeError("Invalid cdrom type '%s'" % cdrom)   
Note: See TracChangeset for help on using the changeset viewer.