summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-04-05 13:17:52 +0200
committerLeif Johansson <leifj@sunet.se>2011-04-05 13:17:52 +0200
commitf535507ff9ca55f652a5f9f4f51b08ddea336c28 (patch)
treeded7ff61b47c67acb23a3ee31a3215bd83306afd /src
parent2434dc71ae779541de6a84adfc4cbe62fb5f846e (diff)
debug
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/ac/api.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index 13b8cfe..7603af2 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -36,7 +36,7 @@ class ACPResult():
raise ACPException,self.status
def get_principal(self):
- return self.et.find('principal')
+ return self.et.xpath('principal')[0]
def _enc(v):
ev = v
@@ -93,7 +93,6 @@ class ACPClient():
def find_or_create_principal(self,key,value,type,dict):
result = self.request('principal-list',{'filter-%s' % key: value,'filter-type': type}, True)
- logging.debug(result)
principal = result.get_principal()
if result.is_error():
if result.status_code() != 'no_data':