mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user