Changeset 115:b343b24ca15c

Show
Ignore:
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:
1 modified

Legend:

Unmodified
Added
Removed
  • relatorio/templates/opendocument.py

    r104 r115  
    326326 
    327327                # - we create a <py:xxx> node 
     328                if attr is not None: 
     329                    attribs = {attr: a_val} 
     330                else: 
     331                    attribs = {} 
    328332                genshi_node = EtreeElement('{%s}%s' % (py_namespace, 
    329333                                                       directive), 
    330                                            attrib={attr: a_val}, 
     334                                           attrib=attribs, 
    331335                                           nsmap=self.namespaces) 
    332336