Skip to content

Commit

Permalink
added a fix for problem described at http://askbot.org/en/question/65…
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenyfadeev committed Oct 1, 2011
1 parent b208c56 commit baa0236
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .tx/config
@@ -0,0 +1,8 @@
[main]
host = https://www.transifex.net

[askbot.txo]
file_filter = askbot/locale/<lang>/LC_MESSAGES/django.po
source_file = askbot/locale/en/LC_MESSAGES/django.po
source_lang = en

24 changes: 17 additions & 7 deletions askbot/deps/django_authopenid/views.py
Expand Up @@ -550,13 +550,23 @@ def show_signin_view(
for login_method in existing_login_methods:
if login_method.provider_name == 'facebook':
continue#it is disabled
provider_data = providers[login_method.provider_name]
if provider_data['type'] == 'password':
#only external password logins will not be deletable
#this is because users with those can lose access to their accounts permanently
login_method.is_deletable = provider_data.get('password_changeable', False)
else:
login_method.is_deletable = True
try:
provider_data = providers[login_method.provider_name]
if provider_data['type'] == 'password':
#only external password logins will not be deletable
#this is because users with those can lose access to their accounts permanently
login_method.is_deletable = provider_data.get('password_changeable', False)
else:
login_method.is_deletable = True
except KeyError:
logging.critical(
'login method %s is no longer available '
'please delete records for this login method '
'from the UserAssociation table',
login_method.provider_name
)
continue



if view_subtype == 'default':
Expand Down

0 comments on commit baa0236

Please sign in to comment.