Commit 436f60ca authored by Ozzie Isaacs's avatar Ozzie Isaacs

refactored some functions

parent e9530eda
...@@ -345,7 +345,7 @@ def edit_list_user(param): ...@@ -345,7 +345,7 @@ def edit_list_user(param):
else: else:
log.error(u"Found an existing account for this e-mail address.") log.error(u"Found an existing account for this e-mail address.")
return _(u"Found an existing account for this e-mail address."), 400 return _(u"Found an existing account for this e-mail address."), 400
elif param =='kindle_mail': elif param == 'kindle_mail':
user.kindle_mail = vals['value'] user.kindle_mail = vals['value']
elif param == 'role': elif param == 'role':
if vals['value'] == 'true': if vals['value'] == 'true':
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment