Rushabh Mehta | a933b63 | 2012-05-08 16:06:44 +0530 | [diff] [blame] | 1 | import webnotes |
| 2 | |
| 3 | def execute(): |
Rushabh Mehta | cb1f1d8 | 2012-05-09 14:10:49 +0530 | [diff] [blame] | 4 | from webnotes.model.code import get_obj |
| 5 | |
| 6 | # rewrite pages |
Rushabh Mehta | 81dba76 | 2012-05-09 15:37:54 +0530 | [diff] [blame] | 7 | get_obj('Website Settings').rewrite_pages() |
| 8 | |
| 9 | ss = get_obj('Style Settings') |
| 10 | ss.validate() |
Anand Doshi | 6033d96 | 2012-05-22 17:21:24 +0530 | [diff] [blame] | 11 | ss.doc.save() |
Rushabh Mehta | 81dba76 | 2012-05-09 15:37:54 +0530 | [diff] [blame] | 12 | ss.on_update() |