profile: form is now my settings page, removed (Page, profile-settings)

This commit is contained in:
Rushabh Mehta
2012-11-28 15:19:51 +05:30
parent d5bf5153fa
commit bd919caa9b
14 changed files with 22 additions and 426 deletions

View File

@@ -0,0 +1,13 @@
import webnotes
def execute():
webnotes.clear_perms("Profile")
webnotes.reload_doc("core", "doctype", "profile")
for name in webnotes.conn.sql("""select name from tabProfile"""):
theme = webnotes.conn.get_default("theme", name[0])
if theme:
webnotes.conn.set_value("Profile", name[0], "theme", theme)
webnotes.conn.sql("""delete from `tabDefaultValue` where defkey='theme'""")
webnotes.delete_doc("Page", "profile-settings")

View File

@@ -691,4 +691,8 @@ patch_list = [
'patch_module': 'patches.november_2012',
'patch_file': 'communication_sender_and_recipient',
},
{
'patch_module': 'patches.november_2012',
'patch_file': 'add_theme_to_profile',
},
]