templates cleaner and generation for all pages

This commit is contained in:
Rushabh Mehta
2012-05-08 16:06:44 +05:30
parent 5ab8163140
commit a933b632ad
8 changed files with 22 additions and 7 deletions

View File

@@ -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()