<?PY WEEKDAYS = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] ?>
<select name="weekday">
<?py selected = { str(params.get('weekday')): ' selected="selected"' } ?>
  <option>-</option>
<?PY i = 0 ?>
<?PY for wday in WEEKDAYS: ?>
<?PY     i += 1?>
  <option value="#{{i}}"#{selected.get('#{{i}}')}>#{{wday}}</option>
<?PY #end ?>
</select>
