common/uilib.py
changeset 164 031b97433e84
parent 159 ff7b0f8dcb3c
child 165 c5ff97312b8a
--- a/common/uilib.py	Tue Dec 02 10:12:53 2008 +0100
+++ b/common/uilib.py	Tue Dec 02 10:23:11 2008 +0100
@@ -16,6 +16,8 @@
 from urllib import quote as urlquote
 from cStringIO import StringIO
 from xml.parsers.expat import ExpatError
+from lxml import etree
+from copy import deepcopy
 
 import simplejson
 
@@ -168,9 +170,6 @@
         params.append('true')
     return "javascript: replacePageChunk(%s);" % ', '.join(params)
 
-from lxml import etree
-from copy import deepcopy
-
 def safe_cut(text, length):
     """returns a string of length <length> based on <text>, removing any html
     tags from given text if cut is necessary.