summaryrefslogtreecommitdiff
path: root/src/meetingtools/ac
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
committerLeif Johansson <leifj@sunet.se>2012-10-02 22:23:54 +0200
commitec839d583fff6b279c7cdec2fdf87762f81f9aa5 (patch)
tree912507bfc3353ba076ae225a8d40ba14f57d2972 /src/meetingtools/ac
parent2346efdb58afff79fcfc1d581b0091f32ee6fac1 (diff)
- bootstrap
- cleanup - bugfixes
Diffstat (limited to 'src/meetingtools/ac')
-rw-r--r--src/meetingtools/ac/api.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index f2a7fb2..5fbcfbf 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -3,6 +3,7 @@ Created on Jan 31, 2011
@author: leifj
'''
+from StringIO import StringIO
import httplib2
from urllib import quote_plus
@@ -148,7 +149,7 @@ class ACPClient():
p = self._find_or_create_principal(key,value,t,d)
cache[key] = etree.tostring(p)
else:
- p = etree.parse(cache[key])
+ p = etree.parse(StringIO(cache[key]))
return p
def find_principal(self,key,value,t):