Beispiel #1
0
def migrate_to(context, frappe_provider):
    "Migrates site to the specified provider"
    from frappe.integrations.frappe_providers import migrate_to
    for site in context.sites:
        frappe.init(site=site)
        frappe.connect()
        migrate_to(site, frappe_provider)
        frappe.destroy()
    if not context.sites:
        raise SiteNotSpecifiedError
Beispiel #2
0
def migrate_to(context, frappe_provider):
    "Migrates site to the specified provider"
    from frappe.integrations.frappe_providers import migrate_to
    for site in context.sites:
        migrate_to(site, frappe_provider)