Rushabh Mehta | a933b63 | 2012-05-08 16:06:44 +0530 | [diff] [blame^] | 1 | import webnotes |
2 | |||||
3 | def execute(): | ||||
4 | from webnotes.model.doclist import DocList | ||||
5 | import os | ||||
6 | |||||
7 | for name in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""): | ||||
8 | print name | ||||
9 | DocList('Web Page', name[0]).save() |