2015-02-24 06:54:53 +00:00
|
|
|
from __future__ import unicode_literals
|
2014-08-25 09:47:20 +00:00
|
|
|
import frappe
|
|
|
|
from frappe.templates.pages.style_settings import default_properties
|
|
|
|
|
|
|
|
def execute():
|
2014-10-09 05:52:12 +00:00
|
|
|
frappe.reload_doc('website', 'doctype', 'style_settings')
|
2014-08-25 09:47:20 +00:00
|
|
|
style_settings = frappe.get_doc("Style Settings", "Style Settings")
|
|
|
|
if not style_settings.apply_style:
|
|
|
|
style_settings.update(default_properties)
|
|
|
|
style_settings.apply_style = 1
|
|
|
|
style_settings.save()
|