profile: form is now my settings page, removed (Page, profile-settings)
diff --git a/patches/november_2012/add_theme_to_profile.py b/patches/november_2012/add_theme_to_profile.py
new file mode 100644
index 0000000..648c1d1
--- /dev/null
+++ b/patches/november_2012/add_theme_to_profile.py
@@ -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")
\ No newline at end of file
diff --git a/patches/patch_list.py b/patches/patch_list.py
index 5cacfb2..7a60938 100644
--- a/patches/patch_list.py
+++ b/patches/patch_list.py
@@ -691,4 +691,8 @@
'patch_module': 'patches.november_2012',
'patch_file': 'communication_sender_and_recipient',
},
+ {
+ 'patch_module': 'patches.november_2012',
+ 'patch_file': 'add_theme_to_profile',
+ },
]
\ No newline at end of file