changeset 4279 | e6b9fd79a247 |
parent 4252 | 6c4f109c2b03 |
parent 4254 | 966f62e97c72 |
child 4594 | 7b9824d1b734 |
--- a/web/views/basetemplates.py Wed Jan 20 10:06:53 2010 +0100 +++ b/web/views/basetemplates.py Wed Jan 20 10:10:17 2010 +0100 @@ -266,7 +266,10 @@ self.w(u'</tr></table>\n') if can_do_pdf_conversion(): - from xml.etree.cElementTree import ElementTree + try: + from xml.etree.cElementTree import ElementTree + except ImportError: #python2.4 + from elementtree import ElementTree from subprocess import Popen as sub from StringIO import StringIO from tempfile import NamedTemporaryFile