Edgewall Software

Changes between Version 9 and Version 10 of GenshiRecipes/FormFilling


Ignore:
Timestamp:
Oct 2, 2006, 12:02:41 PM (18 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiRecipes/FormFilling

    v9 v10  
    1515  <input py:match="form//input[@type='radio']" py:attrs="select('@*')"
    1616         py:with="value = form.get(str(select('@name')))"
    17          selected="${value and (value == str(select('@value'))) or None}" />
     17         checked="${value and (value == str(select('@value'))) or None}" />
    1818  <textarea py:match="form//textarea" py:attrs="select('@*')"
    1919            py:content="form.get(str(select('@name')))"></textarea>
     
    130130That would result in the same output as above.
    131131
     132'''Note''': the `HTMLFormFiller` class has been added to the `genshi.filters` module in [340] and will be included in the upcoming [milestone:0.4] release.
     133
    132134----
    133135See also: GenshiRecipes, [wiki:Documentation/xml-templates.html Genshi XML Template Language]