Ejemplo n.º 1
0
def migrate():
    print "connecting..."
    remote = FrappeClient("https://frappe.io", "Administrator",
                          frappe.conf.frappe_admin_password)
    remote.migrate_doctype("User",
                           exclude=["Guest", "Administrator"],
                           preprocess=remove_undesired_roles)
Ejemplo n.º 2
0
def migrate():
    print "connecting..."
    frappe.flags.mute_emails = True
    remote = FrappeClient("https://erpnext.com", "Administrator",
                          frappe.conf.erpnext_admin_password)
    remote.migrate_doctype("Help Category")
    remote.migrate_doctype("Help Article")
    remote.migrate_single("Knowledge Base Settings")
    frappe.flags.mute_emails = False
Ejemplo n.º 3
0
def migrate():
	print "connecting..."
	frappe.flags.mute_emails = True
	remote = FrappeClient("https://frappe.io", "Administrator", frappe.conf.frappe_admin_password, verify=False)
	remote.migrate_doctype("Frappe Partner")
	remote.migrate_doctype("Frappe Publisher")
	remote.migrate_doctype("Frappe Job")
	remote.migrate_doctype("Frappe Job Bid")
	frappe.flags.mute_emails = False

	frappe.db.sql("update `tabFrappe Job` set parent_website_route='jobs'")
	frappe.db.sql("update `tabFrappe Partner` set parent_website_route='service-providers'")
Ejemplo n.º 4
0
def migrate():
    print "connecting..."
    frappe.flags.mute_emails = True
    remote = FrappeClient("https://frappe.io", "Administrator", frappe.conf.frappe_admin_password, verify=False)
    remote.migrate_doctype("Frappe Partner")
    remote.migrate_doctype("Frappe Publisher")
    remote.migrate_doctype("Frappe Job")
    remote.migrate_doctype("Frappe Job Bid")
    frappe.flags.mute_emails = False

    frappe.db.sql("update `tabFrappe Job` set parent_website_route='jobs'")
    frappe.db.sql("update `tabFrappe Partner` set parent_website_route='service-providers'")
Ejemplo n.º 5
0
def migrate():
    print "connecting..."
    frappe.flags.mute_emails = True
    remote = FrappeClient("https://frappe.io", "Administrator",
                          frappe.conf.frappe_admin_password)
    remote.migrate_doctype("Blog Category")
    remote.migrate_doctype("Blogger")
    remote.migrate_doctype("Blog Post")
    frappe.flags.mute_emails = False
Ejemplo n.º 6
0
def migrate():
	print("connecting...")
	remote = FrappeClient("https://frappe.io", "Administrator", frappe.conf.frappe_admin_password)
	remote.migrate_doctype("User", exclude=["Guest", "Administrator"], preprocess=remove_undesired_roles)