fnp
/
django-cas-provider.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b906f
)
Guess we should unpack the iterables.
author
deyk
<deyk@crossway.org>
Wed, 18 Apr 2012 18:05:17 +0000
(11:05 -0700)
committer
deyk
<deyk@crossway.org>
Wed, 18 Apr 2012 18:05:17 +0000
(11:05 -0700)
cas_provider/views.py
patch
|
blob
|
history
diff --git
a/cas_provider/views.py
b/cas_provider/views.py
index
be6c4d4
..
3572303
100644
(file)
--- a/
cas_provider/views.py
+++ b/
cas_provider/views.py
@@
-341,7
+341,10
@@
def auth_success_response(user, pgt, proxies):
if custom:
attrs.update(custom)
- attrs['identifiers'] = [i for r, i in signals.on_cas_collect_histories.send(sender=validate, for_user=user)]
+ identifiers = [i for sr, rr in signals.on_cas_collect_histories.send(sender=validate, for_user=user)
+ for i in rr]
+ if identifiers:
+ attrs['identifiers'] = identifiers
if attrs:
formatter = get_callable(settings.CAS_CUSTOM_ATTRIBUTES_FORMATER)