From f535507ff9ca55f652a5f9f4f51b08ddea336c28 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 5 Apr 2011 13:17:52 +0200 Subject: debug --- src/meetingtools/ac/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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': -- cgit v1.1