Changeset 2189 for trunk/packages
- Timestamp:
- Feb 26, 2009, 3:22:24 AM (16 years ago)
- Location:
- trunk/packages/invirt-web/code
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-web/code/main.py
r2186 r2189 152 152 validate = validation.Validate(username, state, strict=True, **kws) 153 153 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), 155 155 cdrom=getattr(validate, 'cdrom', None), 156 156 autoinstall=getattr(validate, 'autoinstall', None)) -
trunk/packages/invirt-web/code/templates/functions.tmpl
r1693 r2189 37 37 <label> 38 38 <input #slurp 39 #if $default == $vmtype[0] then 'checked ' else ''39 #if $default == $vmtype[0] then 'checked="checked"' else '' 40 40 type="radio" name="vmtype" id="vmtype-${vmtype[0]}" value="${vmtype[0]}">${vmtype[1]}</input> 41 41 </label>
Note: See TracChangeset
for help on using the changeset viewer.