diff options
author | Leif Johansson <leifj@sunet.se> | 2011-04-05 14:10:09 +0200 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-04-05 14:10:09 +0200 |
commit | 304cead27c78c3eb41572643980c7e586c9fdc8c (patch) | |
tree | dfdaeaf15aecc632e9390c3db45e163a8d79f1bf /src/meetingtools/apps/auth | |
parent | 48585bed72645117836290d0e5fb6a11bfa7e80a (diff) |
epe groups test
Diffstat (limited to 'src/meetingtools/apps/auth')
-rw-r--r-- | src/meetingtools/apps/auth/views.py | 8 |
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: |