Changeset 115:b343b24ca15c
- Timestamp:
- 02/02/09 04:51:31 (13 months ago)
- Author:
- Ga?tan de Menten <ged@…>
- Branch:
- default
- Message:
-
fix all usage of tags without attribute (choose and otherwise)
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r104
|
r115
|
|
| 326 | 326 | |
| 327 | 327 | # - we create a <py:xxx> node |
| | 328 | if attr is not None: |
| | 329 | attribs = {attr: a_val} |
| | 330 | else: |
| | 331 | attribs = {} |
| 328 | 332 | genshi_node = EtreeElement('{%s}%s' % (py_namespace, |
| 329 | 333 | directive), |
| 330 | | attrib={attr: a_val}, |
| | 334 | attrib=attribs, |
| 331 | 335 | nsmap=self.namespaces) |
| 332 | 336 | |