コード例 #1
0
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()
コード例 #2
0
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()
コード例 #3
0
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")
コード例 #4
0
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"
コード例 #5
0
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"