コード例 #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()
コード例 #2
0
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()