summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-10-11 23:41:13 +0200
committerLeif Johansson <leifj@sunet.se>2011-10-11 23:41:13 +0200
commit091daf065ddff524e635730da56ab261fd09233d (patch)
treefb7633d5c110251b3e994fb856a2cfa8e5a7cd5e
parent8a731e46293ea760b856462b9e82968451e8f36d (diff)
support jsonp
-rw-r--r--src/meetingtools/ac/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/meetingtools/ac/api.py b/src/meetingtools/ac/api.py
index ed17260..863aadc 100644
--- a/src/meetingtools/ac/api.py
+++ b/src/meetingtools/ac/api.py
@@ -160,6 +160,8 @@ class ACPClient():
return result.get_principal()
def find_user(self,login):
+ if not login:
+ return None
return self.find_principal("login", login, "user")
def add_remove_member(self,principal_id,group_id,is_member):