|
|
@@ -10,9 +10,16 @@ be used to build database driven apps. |
|
|
|
|
|
|
|
Read the documentation: https://frappeframework.com/docs |
|
|
|
""" |
|
|
|
import os, warnings |
|
|
|
|
|
|
|
_dev_server = os.environ.get('DEV_SERVER', False) |
|
|
|
|
|
|
|
if _dev_server: |
|
|
|
warnings.simplefilter('always', DeprecationWarning) |
|
|
|
warnings.simplefilter('always', PendingDeprecationWarning) |
|
|
|
|
|
|
|
from werkzeug.local import Local, release_local |
|
|
|
import os, sys, importlib, inspect, json, warnings |
|
|
|
import sys, importlib, inspect, json |
|
|
|
import typing |
|
|
|
from past.builtins import cmp |
|
|
|
import click |
|
|
@@ -31,8 +38,6 @@ __title__ = "Frappe Framework" |
|
|
|
|
|
|
|
local = Local() |
|
|
|
controllers = {} |
|
|
|
warnings.simplefilter('always', DeprecationWarning) |
|
|
|
warnings.simplefilter('always', PendingDeprecationWarning) |
|
|
|
|
|
|
|
class _dict(dict): |
|
|
|
"""dict like object that exposes keys as attributes""" |
|
|
@@ -197,7 +202,7 @@ def init(site, sites_path=None, new_site=False): |
|
|
|
local.meta_cache = {} |
|
|
|
local.form_dict = _dict() |
|
|
|
local.session = _dict() |
|
|
|
local.dev_server = os.environ.get('DEV_SERVER', False) |
|
|
|
local.dev_server = _dev_server |
|
|
|
|
|
|
|
setup_module_map() |
|
|
|
|
|
|
|