Skip to content

Commit

Permalink
[#1429] PEP8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Jan 22, 2014
1 parent 4936c7c commit cd648de
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ckan/controllers/user.py
Expand Up @@ -224,13 +224,13 @@ def _save_new(self, context):
# We need to pass the logged in URL as came_from parameter
# otherwise we lose the language setting
came_from = h.url_for(controller='user', action='logged_in',
__ckan_no_root=True)
redirect_url = '{login_url}?login={name}&password={pwd}&came_from={came_from}'
__ckan_no_root=True)
redirect_url = '{0}?login={1}&password={2}&came_from={3}'
h.redirect_to(redirect_url.format(
login_url=login_url,
name=str(data_dict['name']),
pwd=quote(data_dict['password1'].encode('utf-8')),
came_from=came_from))
login_url,
str(data_dict['name']),
quote(data_dict['password1'].encode('utf-8')),
came_from))
else:
# #1799 User has managed to register whilst logged in - warn user
# they are not re-logged in as new user.
Expand Down

0 comments on commit cd648de

Please sign in to comment.