summaryrefslogtreecommitdiff
path: root/src/meetingtools/ac/api.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/meetingtools/ac/api.py')
-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':