mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
cms patch
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
from webnotes.model.doclist import DocList
|
from webnotes.model.code import get_obj
|
||||||
import os
|
|
||||||
|
# rewrite pages
|
||||||
for name in webnotes.conn.sql("""select name from `tabWeb Page` where docstatus=0"""):
|
get_obj('Website Settings').rewrite_pages()
|
||||||
print name
|
|
||||||
DocList('Web Page', name[0]).save()
|
|
||||||
Reference in New Issue
Block a user