Mercurial > hg > documentViewer
comparison documentViewer.py @ 136:a2114cd4673c
fixed broken imports (silly me)
author | casties |
---|---|
date | Fri, 18 Jun 2010 16:23:20 +0200 |
parents | 123248b3bb34 |
children | 2fa9d30f4ab0 |
comparison
equal
deleted
inserted
replaced
135:123248b3bb34 | 136:a2114cd4673c |
---|---|
41 return rc | 41 return rc |
42 | 42 |
43 def serializeNode(node, encoding='utf-8'): | 43 def serializeNode(node, encoding='utf-8'): |
44 """returns a string containing node as XML""" | 44 """returns a string containing node as XML""" |
45 buf = cStringIO.StringIO() | 45 buf = cStringIO.StringIO() |
46 Print(node, stream=buf, encoding=encoding) | 46 Ft.Xml.Domlette.Print(node, stream=buf, encoding=encoding) |
47 s = buf.getvalue() | 47 s = buf.getvalue() |
48 buf.close() | 48 buf.close() |
49 return s | 49 return s |
50 | 50 |
51 | 51 |