コード例 #1
0
def uninstall(context, app, dry_run=False):
    from frappe.installer import remove_app
    for site in context.sites:
        try:
            frappe.init(site=site)
            frappe.connect()
            remove_app(app, dry_run)
        finally:
            frappe.destroy()
コード例 #2
0
def uninstall(context, app, dry_run=False):
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app, dry_run)
		finally:
			frappe.destroy()
コード例 #3
0
ファイル: site.py プロジェクト: JiShangShiDai/frappe
def uninstall(context, app, dry_run=False, yes=False):
	"Remove app and linked modules from site"
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app, dry_run, yes)
		finally:
			frappe.destroy()
コード例 #4
0
ファイル: site.py プロジェクト: indictranstech/indic_frappe
def uninstall(context, app, dry_run=False, yes=False):
    "Remove app and linked modules from site"
    from frappe.installer import remove_app
    for site in context.sites:
        try:
            frappe.init(site=site)
            frappe.connect()
            remove_app(app, dry_run, yes)
        finally:
            frappe.destroy()
コード例 #5
0
def uninstall(context, app, dry_run, yes, no_backup, force):
	"Remove app and linked modules from site"
	from frappe.installer import remove_app
	for site in context.sites:
		try:
			frappe.init(site=site)
			frappe.connect()
			remove_app(app_name=app, dry_run=dry_run, yes=yes, no_backup=no_backup, force=force)
		finally:
			frappe.destroy()
	if not context.sites:
		raise SiteNotSpecifiedError
コード例 #6
0
ファイル: test_commands.py プロジェクト: erpnext-tm/frappe
    def test_dry_run(self):
        """Check if dry run in not destructive."""

        # nothing to assert, if this fails rest of the test suite will crumble.
        remove_app("frappe", dry_run=True, yes=True, no_backup=True)