From 304cead27c78c3eb41572643980c7e586c9fdc8c Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Tue, 5 Apr 2011 14:10:09 +0200 Subject: epe groups test --- src/meetingtools/apps/auth/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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: -- cgit v1.1