brotherton-erpnext/erpnext/patches/may_2012/cms.py
2012-05-08 16:06:44 +05:30

9 lines
228 B
Python

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