Changes between Version 9 and Version 10 of GenshiRecipes/FormFilling
- Timestamp:
- Oct 2, 2006, 12:02:41 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiRecipes/FormFilling
v9 v10 15 15 <input py:match="form//input[@type='radio']" py:attrs="select('@*')" 16 16 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}" /> 18 18 <textarea py:match="form//textarea" py:attrs="select('@*')" 19 19 py:content="form.get(str(select('@name')))"></textarea> … … 130 130 That would result in the same output as above. 131 131 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 132 134 ---- 133 135 See also: GenshiRecipes, [wiki:Documentation/xml-templates.html Genshi XML Template Language]