diff options
| author | Xavier Morel <xmo@tinyerp.com> | 2009-11-28 12:58:09 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@tinyerp.com> | 2009-11-28 12:58:09 +0100 |
| commit | 70ab8c460759f70e738f795bb2d1954af1a8f1ec (patch) | |
| tree | b1de2619687a06075e92e624006e8eab60184421 /bin/report/render/html2html | |
| parent | 44a11226fe23c693c65036f8a94ba70bad154bcf (diff) | |
[IMP] removal of usages of the deprecated node.getchildren call, better usage of the attributes & tostring ET APIs, style fixes
bzr revid: xmo@tinyerp.com-20091128115809-pk5zqrc3zp8h6pir
Diffstat (limited to 'bin/report/render/html2html')
| -rw-r--r-- | bin/report/render/html2html/html2html.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/report/render/html2html/html2html.py b/bin/report/render/html2html/html2html.py index fa07e9b4726..9f81e26d4f2 100644 --- a/bin/report/render/html2html/html2html.py +++ b/bin/report/render/html2html/html2html.py @@ -75,7 +75,7 @@ class html2html(object): return self._node def url_modify(self,root): - for n in root.getchildren(): + for n in root: if (n.text.find('<a ')>=0 or n.text.find('<a')>=0) and n.text.find('href')>=0 and n.text.find('style')<=0 : node = (n.tag=='span' and n.getparent().tag=='u') and n.getparent().getparent() or ((n.tag=='span') and n.getparent()) or n style = node.get('color') and "style='color:%s; text-decoration: none;'"%node.get('color') or '' |
