From 98c4b5bb004e9297bffa8e1c3572572741fda933 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Fri, 8 Jul 2005 16:41:35 +0000 Subject: - skins are now loaded first and applied later - this allows use skin information to build special eWidgets, depending on skin - add "applet"-feature: code which is executed from skin - example: centering of messagebox --- lib/python/Tools/XMLTools.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/python/Tools') diff --git a/lib/python/Tools/XMLTools.py b/lib/python/Tools/XMLTools.py index aaab4677..05513622 100644 --- a/lib/python/Tools/XMLTools.py +++ b/lib/python/Tools/XMLTools.py @@ -15,3 +15,11 @@ def elementsWithTag(el, tag): continue if tag(x.tagName): yield x + +def mergeText(nodelist): + rc = "" + for node in nodelist: + if node.nodeType == node.TEXT_NODE: + rc = rc + node.data + return rc + -- cgit v1.2.3