Changeset 2701 for package_branches


Ignore:
Timestamp:
Dec 20, 2009, 9:46:22 PM (15 years ago)
Author:
broder
Message:

small style fix

File:
1 edited

Legend:

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

    r2684 r2701  
    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.