diff --git a/patches/1311/p04_update_comments.py b/patches/1311/p04_update_comments.py new file mode 100644 index 00000000000..aefb7e7b245 --- /dev/null +++ b/patches/1311/p04_update_comments.py @@ -0,0 +1,8 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +def execute(): + import webnotes + for name in webnotes.conn.sql_list("""select name from tabComment"""): + webnotes.get_obj("Comment", name).update_comment_in_doc() + \ No newline at end of file diff --git a/patches/1311/p05_website_brand_html.py b/patches/1311/p05_website_brand_html.py new file mode 100644 index 00000000000..04d2f83aaf2 --- /dev/null +++ b/patches/1311/p05_website_brand_html.py @@ -0,0 +1,16 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import webnotes + +def execute(): + bean = webnotes.bean("Website Settings") + for company in webnotes.conn.sql_list("select name from `tabCompany`"): + if bean.doc.banner_html == ("""