brotherton-erpnext/erpnext/patches/may_2012/cms.py

9 lines
228 B
Python
Raw Normal View History

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