summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-04-05 14:10:09 +0200
committerLeif Johansson <leifj@sunet.se>2011-04-05 14:10:09 +0200
commit304cead27c78c3eb41572643980c7e586c9fdc8c (patch)
treedfdaeaf15aecc632e9390c3db45e163a8d79f1bf /src
parent48585bed72645117836290d0e5fb6a11bfa7e80a (diff)
epe groups test
Diffstat (limited to 'src')
-rw-r--r--src/meetingtools/apps/auth/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/meetingtools/apps/auth/views.py b/src/meetingtools/apps/auth/views.py
index bbeb4be..f49315f 100644
--- a/src/meetingtools/apps/auth/views.py
+++ b/src/meetingtools/apps/auth/views.py
@@ -121,10 +121,10 @@ def accounts_login_federated(request):
member = affiliation in affiliations
connect_api.add_remove_member(principal.get('principal-id'),group.get('principal-id'),member)
- #for e in epe:
- # group = connect_api.find_or_create_principal('name',e,'group',{'type': 'group','has-children':'1','name': e})
- # if group:
- # connect_api.add_remove_member(principal.get('principal-id'),group.get('principal-id'),True)
+ for e in epe:
+ group = connect_api.find_or_create_principal('name',e,'group',{'type': 'group','has-children':'1','name': e})
+ if group:
+ connect_api.add_remove_member(principal.get('principal-id'),group.get('principal-id'),True)
next = request.session.get("after_login_redirect", None)
if next is not None: