comparison browser_side/tools.py @ 332:6abd099c7007

browser side: sat_frontends.tools.xml is now called xmltools
author Goffi <goffi@goffi.org>
date Tue, 04 Feb 2014 16:49:20 +0100
parents 52b1afd7ac3f
children 2067d6241927
comparison
equal deleted inserted replaced
331:06a48d805547 332:6abd099c7007
21 21
22 from pyjamas.ui.DragWidget import DragWidget 22 from pyjamas.ui.DragWidget import DragWidget
23 from pyjamas.ui.FileUpload import FileUpload 23 from pyjamas.ui.FileUpload import FileUpload
24 from pyjamas import Window 24 from pyjamas import Window
25 from nativedom import NativeDOM 25 from nativedom import NativeDOM
26 from sat_frontends.tools import xml 26 from sat_frontends.tools import xmltools
27 27
28 dom = NativeDOM() 28 dom = NativeDOM()
29 29
30 30
31 def html_sanitize(html): 31 def html_sanitize(html):
34 34
35 35
36 def inlineRoot(xhtml): 36 def inlineRoot(xhtml):
37 """ make root element inline """ 37 """ make root element inline """
38 doc = dom.parseString(xhtml) 38 doc = dom.parseString(xhtml)
39 return xml.inlineRoot(doc) 39 return xmltools.inlineRoot(doc)
40 40
41 41
42 def setPresenceStyle(item, state, base_style="contact"): 42 def setPresenceStyle(item, state, base_style="contact"):
43 """ 43 """
44 @item: any UI element 44 @item: any UI element