Ignore:
Timestamp:
Feb 26, 2009, 3:22:24 AM (16 years ago)
Author:
iannucci
Message:

Fixed bug pointed out by Broder with vmtype default and XHTML.

Location:
trunk/packages/invirt-web/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-web/code/main.py

    r2186 r2189  
    152152    validate = validation.Validate(username, state, strict=True, **kws)
    153153    return dict(contact=username, name=validate.name, description=validate.description, memory=validate.memory,
    154                 disksize=validate.disksize, owner=validate.owner, machine_type=validate.vmtype,
     154                disksize=validate.disksize, owner=validate.owner, machine_type=getattr(validate, 'vmtype', Defaults.type),
    155155                cdrom=getattr(validate, 'cdrom', None),
    156156                autoinstall=getattr(validate, 'autoinstall', None))
  • trunk/packages/invirt-web/code/templates/functions.tmpl

    r1693 r2189  
    3737<label>
    3838   <input #slurp
    39 #if $default == $vmtype[0] then 'checked' else ''
     39#if $default == $vmtype[0] then 'checked="checked"' else ''
    4040 type="radio" name="vmtype" id="vmtype-${vmtype[0]}" value="${vmtype[0]}">${vmtype[1]}</input>
    4141</label>
Note: See TracChangeset for help on using the changeset viewer.