Merge pull request #1674 from anandpdoshi/hotfix

Hook: setup_wizard_success
This commit is contained in:
Anand Doshi 2014-05-21 15:25:11 +05:30
commit 18144da755

View File

@ -76,6 +76,7 @@ def setup_account(args=None):
frappe.clear_cache()
frappe.db.commit()
except:
traceback = frappe.get_traceback()
for hook in frappe.get_hooks("setup_wizard_exception"):
@ -83,6 +84,11 @@ def setup_account(args=None):
raise
else:
for hook in frappe.get_hooks("setup_wizard_success"):
frappe.get_attr(hook)(args)
def update_user_name(args):
if args.get("email"):
args['name'] = args.get("email")