commit | a933b632ad268da97c7dc45ab503c7fbb60d6f49 | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Tue May 08 16:06:44 2012 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Tue May 08 16:06:44 2012 +0530 |
tree | a0d537cf508cf8200612bbb13771edd4859eecac | |
parent | 5ab81631400bf6b8f473c65681291ad07d127e12 [diff] [blame] |
templates cleaner and generation for all pages
diff --git a/erpnext/patches/may_2012/cms.py b/erpnext/patches/may_2012/cms.py new file mode 100644 index 0000000..d486fa7 --- /dev/null +++ b/erpnext/patches/may_2012/cms.py
@@ -0,0 +1,9 @@ +import webnotes + +def execute(): + from webnotes.model.doclist import DocList + import os + + for name in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""): + print name + DocList('Web Page', name[0]).save() \ No newline at end of file