summaryrefslogtreecommitdiff
path: root/src/meetingtools
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-04-05 13:24:54 +0200
committerLeif Johansson <leifj@sunet.se>2011-04-05 13:24:54 +0200
commit50d26f3ad429b30e7bf3c8ea70ba4539149059fc (patch)
tree26195f1c6ddb822fea2fe774793a67e583384106 /src/meetingtools
parent659762be85395f6aa58cd6627a41e49a2efa001b (diff)
find the principal
Diffstat (limited to 'src/meetingtools')
-rw-r--r--src/meetingtools/ac/api.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index bebfa00..22470a2 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -39,7 +39,11 @@ class ACPResult():
def get_principal(self):
logger.debug(lxml.etree.tostring(self.et))
- return self.et.xpath('principal')[0]
+ pl = self.et.xpath('//principal')
+ if pl:
+ return pl[0]
+ else:
+ return None
def _enc(v):
ev = v