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
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 01f4a0e..b4d882b 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -332,5 +332,10 @@
'patch_file': 'renamedt_in_custom_search_criteria',
'description': 'raname dt in custom search criteria'
},
+ {
+ 'patch_module': 'patches.may_2012',
+ 'patch_file': 'cms',
+ 'description': 'generate html pages'
+ },
]