def validate(site): frappe.init(site=site, sites_path=sites_path) make_site_dirs() backup() frappe.init(site=site, sites_path=sites_path) frappe.connect() if not executed(last_3_patch): raise Exception, "site not ready to migrate to version 4" frappe.destroy()
def execute(): from frappe.modules.patch_handler import executed last_v3_patch = 'patches.1401.fix_pos_outstanding' if not executed(last_v3_patch): raise Exception("site not ready to migrate to version 4")
def execute(): from frappe.modules.patch_handler import executed last_v3_patch = 'patches.1401.fix_pos_outstanding' if not executed(last_v3_patch): raise Exception, "site not ready to migrate to version 4"
def execute(): from frappe.modules.patch_handler import executed last_v3_patch = 'patches.1401.fix_planned_qty' if not executed(last_v3_patch): raise Exception, "site not ready to migrate to version 4"