removed shopping cart app via frappe patch

This commit is contained in:
Nabin Hait 2015-03-25 16:02:21 +05:30
parent ac8d731ff4
commit bdef3c5ec7
3 changed files with 10 additions and 1 deletions

View file

@ -147,7 +147,8 @@ def remove_from_installed_apps(app_name):
installed_apps.remove(app_name)
frappe.db.set_global("installed_apps", json.dumps(installed_apps))
frappe.db.commit()
post_install()
if frappe.flags.in_install:
post_install()
def post_install(rebuild_website=False):
if rebuild_website:

View file

@ -13,6 +13,7 @@ execute:frappe.db.sql("delete from `tabDocField` where parent='0'")
frappe.patches.v4_0.change_varchar_length
frappe.patches.v5_0.v4_to_v5
frappe.patches.v5_0.remove_shopping_cart_app
frappe.patches.v4_0.webnotes_to_frappe
execute:frappe.permissions.reset_perms("Module Def")
execute:import frappe.installer;frappe.installer.make_site_dirs() #2014-02-19

View file

@ -0,0 +1,7 @@
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
def execute():
from frappe.installer import remove_from_installed_apps
remove_from_installed_apps("shopping_cart")