common/uilib.py
changeset 228 27b958dc72ae
parent 165 c5ff97312b8a
child 277 a11a3c231050
--- a/common/uilib.py	Thu Dec 18 15:43:39 2008 +0100
+++ b/common/uilib.py	Thu Dec 18 17:39:14 2008 +0100
@@ -108,7 +108,8 @@
 
 try:
     from lxml import etree
-except ImportError:
+    etree.HTML('<div>test</div>').iter
+except (ImportError, AttributeError):
     # gae environment: lxml not availabel
     
     def soup2xhtml(data, encoding):