From cb1f1d81aab8404115e515d8332bcd813ddbd1bf Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 9 May 2012 14:10:49 +0530 Subject: [PATCH] cms patch --- erpnext/patches/may_2012/cms.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/erpnext/patches/may_2012/cms.py b/erpnext/patches/may_2012/cms.py index d486fa7d05..a77ee31b66 100644 --- a/erpnext/patches/may_2012/cms.py +++ b/erpnext/patches/may_2012/cms.py @@ -1,9 +1,7 @@ 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() \ No newline at end of file + from webnotes.model.code import get_obj + + # rewrite pages + get_obj('Website Settings').rewrite_pages() \ No newline at end of file