added patch

This commit is contained in:
Rushabh Mehta
2012-06-19 14:15:13 +05:30
parent 96bf0b7f53
commit 40182bada3
3 changed files with 45 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
def execute():
import webnotes
from webnotes.model.doclist import DocList
import webnotes.model.sync
# sync web page doctype
webnotes.model.sync.sync('website', 'web_page')
# save all web pages to create content
for p in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""):
DocList('Web Page', p[0]).save()