예제 #1
0
파일: utils.py 프로젝트: yered1/frappe
def export_fixtures(context, app=None):
	"Export fixtures"
	from frappe.utils.fixtures import export_fixtures
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			export_fixtures(app=app)
		finally:
			frappe.destroy()
def export_fixtures(context):
	"export fixtures"
	from frappe.utils.fixtures import export_fixtures
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			export_fixtures()
		finally:
			frappe.destroy()
예제 #3
0
def export_fixtures():
    from frappe.utils.fixtures import export_fixtures
    frappe.connect()
    export_fixtures()
    frappe.destroy()
예제 #4
0
파일: cli.py 프로젝트: 81552433qqcom/frappe
def export_fixtures():
	from frappe.utils.fixtures import export_fixtures
	frappe.connect()
	export_fixtures()
	frappe.destroy()