Преглед изворни кода

removed shopping cart app via frappe patch

version-14
Nabin Hait пре 10 година
родитељ
комит
bdef3c5ec7
3 измењених фајлова са 10 додато и 1 уклоњено
  1. +2
    -1
      frappe/installer.py
  2. +1
    -0
      frappe/patches.txt
  3. +7
    -0
      frappe/patches/v5_0/remove_shopping_cart_app.py

+ 2
- 1
frappe/installer.py Прегледај датотеку

@@ -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:


+ 1
- 0
frappe/patches.txt Прегледај датотеку

@@ -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


+ 7
- 0
frappe/patches/v5_0/remove_shopping_cart_app.py Прегледај датотеку

@@ -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")

Loading…
Откажи
Сачувај