From 857635150f8afdc2472c700d515300b94e0d3fdf Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 23 Apr 2010 21:49:20 +0000 Subject: [PATCH] Monotone-Parent: a8ca9bda3722c5b1cef6119bd959875e067508b1 Monotone-Revision: bc2e0b73706c7db4bb3e9fe93a30a9000e7861df Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-04-23T21:49:20 Monotone-Branch: ca.inverse.sogo --- Tests/Integration/webdavlib.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Tests/Integration/webdavlib.py b/Tests/Integration/webdavlib.py index 135910ab1..2db6aadc1 100644 --- a/Tests/Integration/webdavlib.py +++ b/Tests/Integration/webdavlib.py @@ -284,16 +284,16 @@ class WebDAVPrincipalPropertySearch(WebDAVREPORT): self._initProperties(properties) def _initMatches(self, matches): - psearch = _WD_XMLTreeElement("property-search") - self.top_node.append(psearch) - for matchKey in matches.keys(): + for match in matches: + psearch = _WD_XMLTreeElement("property-search") + self.top_node.append(psearch) prop = _WD_XMLTreeElement("prop") psearch.append(prop) - match_tag = self.render_tag(matchKey) + match_tag = self.render_tag(match[0]) prop.append(_WD_XMLTreeElement(match_tag)) - match = _WD_XMLTreeElement("match") - psearch.append(match) - match.appendSubtree(self, matches[matchKey]) + match_tag = _WD_XMLTreeElement("match") + psearch.append(match_tag) + match_tag.appendSubtree(self, match[1]) class WebDAVSyncQuery(WebDAVREPORT): def __init__(self, url, token, properties):