cms patch
This commit is contained in:
parent
e45042e011
commit
cb1f1d81aa
@ -1,9 +1,7 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
from webnotes.model.doclist import DocList
|
||||
import os
|
||||
from webnotes.model.code import get_obj
|
||||
|
||||
for name in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""):
|
||||
print name
|
||||
DocList('Web Page', name[0]).save()
|
||||
# rewrite pages
|
||||
get_obj('Website Settings').rewrite_pages()
|
Loading…
x
Reference in New Issue
Block a user