patch - update user_image in profile

This commit is contained in:
Rushabh Mehta 2012-03-01 12:15:54 +05:30
parent b4a2f4c98f
commit cc6398e7c7

View File

@ -37,6 +37,12 @@ def execute():
reload_doc('home', 'page', 'activity')
reload_doc('core', 'doctype', 'profile')
# update user_image in profile
for p in webnotes.conn.sql("""select name, file_list from tabProfile
where ifnull(file_list,'')!=''"""):
fid = p[1].split('\n')[0].split(',')[1]
webnotes.conn.set_value('Profile', p[0], 'user_image', fid)
webnotes.conn.set_value('Control Panel', 'Control Panel', 'home_page',
'desktop')