Revision 7beef200
b/snf-astakos-app/astakos/im/target/__init__.py | ||
---|---|---|
87 | 87 |
|
88 | 88 |
def handle_third_party_signup(request, userid, provider_module, |
89 | 89 |
third_party_key, |
90 |
provider_info={},
|
|
91 |
pending_user_params={},
|
|
90 |
provider_info=None,
|
|
91 |
pending_user_params=None,
|
|
92 | 92 |
template="im/third_party_check_local.html", |
93 |
extra_context={}): |
|
93 |
extra_context=None): |
|
94 |
|
|
95 |
if provider_info is None: |
|
96 |
provider_info = {} |
|
97 |
|
|
98 |
if pending_user_params is None: |
|
99 |
pending_user_params = {} |
|
100 |
|
|
101 |
if extra_context is None: |
|
102 |
extra_context = {} |
|
94 | 103 |
|
95 | 104 |
# build provider module object |
96 | 105 |
provider_data = { |
b/snf-astakos-app/astakos/im/target/google.py | ||
---|---|---|
114 | 114 |
def authenticated( |
115 | 115 |
request, |
116 | 116 |
template='im/third_party_check_local.html', |
117 |
extra_context={}
|
|
117 |
extra_context=None
|
|
118 | 118 |
): |
119 | 119 |
|
120 |
if extra_context is None: |
|
121 |
extra_context = {} |
|
122 |
|
|
120 | 123 |
if request.GET.get('error', None): |
121 | 124 |
return HttpResponseRedirect(reverse('edit_profile')) |
122 | 125 |
|
b/snf-astakos-app/astakos/im/target/linkedin.py | ||
---|---|---|
100 | 100 |
def authenticated( |
101 | 101 |
request, |
102 | 102 |
template='im/third_party_check_local.html', |
103 |
extra_context={}
|
|
103 |
extra_context=None
|
|
104 | 104 |
): |
105 | 105 |
|
106 |
if extra_context is None: |
|
107 |
extra_context = {} |
|
108 |
|
|
106 | 109 |
consumer = oauth.Consumer(settings.LINKEDIN_TOKEN, |
107 | 110 |
settings.LINKEDIN_SECRET) |
108 | 111 |
client = oauth.Client(consumer) |
b/snf-astakos-app/astakos/im/target/twitter.py | ||
---|---|---|
107 | 107 |
def authenticated( |
108 | 108 |
request, |
109 | 109 |
template='im/third_party_check_local.html', |
110 |
extra_context={}): |
|
110 |
extra_context=None): |
|
111 |
|
|
112 |
if extra_context is None: |
|
113 |
extra_context = {} |
|
111 | 114 |
|
112 | 115 |
consumer = oauth.Consumer(settings.TWITTER_TOKEN, |
113 | 116 |
settings.TWITTER_SECRET) |
Also available in: Unified diff