Monotone-Parent: 8d68561f51adcd8910568babcba5d38587755f06

Monotone-Revision: 340a8fe3e4c8019fbd49b456058706ca807b68b5

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-04-22T14:46:04
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-04-22 14:46:04 +00:00
parent 7c4a7d491f
commit 4d119c5365
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2010-04-22 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Tests/Integration/webdavlib.py
(_WD_XMLTreeElement.appendSubtree): added handling of unicode
subtrees
2010-04-21 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* Main/SOGo+DAV.m: commented out incomplete code for handling
+4
View File
@@ -441,6 +441,7 @@ class _WD_XMLNS_MGR:
class _WD_XMLTreeElement:
typeNum = type(0)
typeStr = type("")
typeUnicode = type(u"")
typeList = type([])
typeDict = type({})
@@ -457,6 +458,9 @@ class _WD_XMLTreeElement:
strValue = "%d" % subtree
textNode = _WD_XMLTreeTextNode(strValue)
self.append(textNode)
elif type(subtree) == self.typeUnicode:
textNode = _WD_XMLTreeTextNode(subtree.encode("utf-8"))
self.append(textNode)
elif type(subtree) == self.typeStr:
textNode = _WD_XMLTreeTextNode(subtree)
self.append(textNode)