Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
1a17042c
Commit
1a17042c
authored
Dec 03, 2012
by
Kostas Papadimitriou
Browse files
auth_providers context processro fix
pass auth provider instances in templates
parent
ce9ed8c7
Changes
1
Show whitespace changes
Inline
Side-by-side
snf-astakos-app/astakos/im/context_processors.py
View file @
1a17042c
...
@@ -50,9 +50,9 @@ def im_modules(request):
...
@@ -50,9 +50,9 @@ def im_modules(request):
def
auth_providers
(
request
):
def
auth_providers
(
request
):
active_auth_providers
=
[]
active_auth_providers
=
[]
for
module
in
IM_MODULES
:
for
module
in
IM_MODULES
:
provider
=
AUTH_PROVIDERS
.
get
(
module
)
provider
=
AUTH_PROVIDERS
.
get
(
module
,
None
)
if
provider
:
if
provider
:
active_auth_providers
.
append
(
provider
)
active_auth_providers
.
append
(
provider
()
)
return
{
'auth_providers'
:
active_auth_providers
,
return
{
'auth_providers'
:
active_auth_providers
,
'master_auth_provider'
:
active_auth_providers
[
0
]}
'master_auth_provider'
:
active_auth_providers
[
0
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment