Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
itminedu
synnefo
Commits
99280222
Commit
99280222
authored
Apr 25, 2013
by
Kostas Papadimitriou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
astakos: Avoid using dicts as default arguments
parent
44a40b77
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
6 deletions
+24
-6
snf-astakos-app/astakos/im/target/__init__.py
snf-astakos-app/astakos/im/target/__init__.py
+12
-3
snf-astakos-app/astakos/im/target/google.py
snf-astakos-app/astakos/im/target/google.py
+4
-1
snf-astakos-app/astakos/im/target/linkedin.py
snf-astakos-app/astakos/im/target/linkedin.py
+4
-1
snf-astakos-app/astakos/im/target/twitter.py
snf-astakos-app/astakos/im/target/twitter.py
+4
-1
No files found.
snf-astakos-app/astakos/im/target/__init__.py
View file @
99280222
...
...
@@ -87,10 +87,19 @@ def get_pending_key(request):
def
handle_third_party_signup
(
request
,
userid
,
provider_module
,
third_party_key
,
provider_info
=
{}
,
pending_user_params
=
{}
,
provider_info
=
None
,
pending_user_params
=
None
,
template
=
"im/third_party_check_local.html"
,
extra_context
=
{}):
extra_context
=
None
):
if
provider_info
is
None
:
provider_info
=
{}
if
pending_user_params
is
None
:
pending_user_params
=
{}
if
extra_context
is
None
:
extra_context
=
{}
# build provider module object
provider_data
=
{
...
...
snf-astakos-app/astakos/im/target/google.py
View file @
99280222
...
...
@@ -114,9 +114,12 @@ def login(request):
def
authenticated
(
request
,
template
=
'im/third_party_check_local.html'
,
extra_context
=
{}
extra_context
=
None
):
if
extra_context
is
None
:
extra_context
=
{}
if
request
.
GET
.
get
(
'error'
,
None
):
return
HttpResponseRedirect
(
reverse
(
'edit_profile'
))
...
...
snf-astakos-app/astakos/im/target/linkedin.py
View file @
99280222
...
...
@@ -100,9 +100,12 @@ def login(request):
def
authenticated
(
request
,
template
=
'im/third_party_check_local.html'
,
extra_context
=
{}
extra_context
=
None
):
if
extra_context
is
None
:
extra_context
=
{}
consumer
=
oauth
.
Consumer
(
settings
.
LINKEDIN_TOKEN
,
settings
.
LINKEDIN_SECRET
)
client
=
oauth
.
Client
(
consumer
)
...
...
snf-astakos-app/astakos/im/target/twitter.py
View file @
99280222
...
...
@@ -107,7 +107,10 @@ def login(request):
def
authenticated
(
request
,
template
=
'im/third_party_check_local.html'
,
extra_context
=
{}):
extra_context
=
None
):
if
extra_context
is
None
:
extra_context
=
{}
consumer
=
oauth
.
Consumer
(
settings
.
TWITTER_TOKEN
,
settings
.
TWITTER_SECRET
)
...
...
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