# HG changeset patch # User Laure Bourgois # Date 1228209791 -3600 # Node ID 031b97433e84fce1ba18e956f1dce88aea49adfe # Parent 451a3e35dbcb0a8980bf87f6ae62d6044cdbd5e2 cleaning code diff -r 451a3e35dbcb -r 031b97433e84 common/uilib.py --- 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 based on , removing any html tags from given text if cut is necessary.