|
@@ -1,192 +0,0 @@
|
1
|
|
-from . import __version__ as app_version
|
2
|
|
-
|
3
|
|
-app_name = "xyz"
|
4
|
|
-app_title = "Xyz"
|
5
|
|
-app_publisher = "test"
|
6
|
|
-app_description = "test"
|
7
|
|
-app_email = "test@test.com"
|
8
|
|
-app_license = "MIT"
|
9
|
|
-
|
10
|
|
-# Includes in <head>
|
11
|
|
-# ------------------
|
12
|
|
-
|
13
|
|
-# include js, css files in header of desk.html
|
14
|
|
-app_include_css = "/assets/xyz/css/business_theme_v14.css"
|
15
|
|
-# app_include_js = "/assets/xyz/js/xyz.js"
|
16
|
|
-
|
17
|
|
-# include js, css files in header of web template
|
18
|
|
-# web_include_css = "/assets/xyz/css/xyz.css"
|
19
|
|
-# web_include_js = "/assets/xyz/js/xyz.js"
|
20
|
|
-
|
21
|
|
-# include custom scss in every website theme (without file extension ".scss")
|
22
|
|
-# website_theme_scss = "xyz/public/scss/website"
|
23
|
|
-
|
24
|
|
-# include js, css files in header of web form
|
25
|
|
-# webform_include_js = {"doctype": "public/js/doctype.js"}
|
26
|
|
-# webform_include_css = {"doctype": "public/css/doctype.css"}
|
27
|
|
-
|
28
|
|
-# include js in page
|
29
|
|
-# page_js = {"page" : "public/js/file.js"}
|
30
|
|
-
|
31
|
|
-# include js in doctype views
|
32
|
|
-# doctype_js = {"doctype" : "public/js/doctype.js"}
|
33
|
|
-# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
|
34
|
|
-# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
|
35
|
|
-# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"}
|
36
|
|
-
|
37
|
|
-# Home Pages
|
38
|
|
-# ----------
|
39
|
|
-
|
40
|
|
-# application home page (will override Website Settings)
|
41
|
|
-# home_page = "login"
|
42
|
|
-
|
43
|
|
-# website user home page (by Role)
|
44
|
|
-# role_home_page = {
|
45
|
|
-# "Role": "home_page"
|
46
|
|
-# }
|
47
|
|
-
|
48
|
|
-# Generators
|
49
|
|
-# ----------
|
50
|
|
-
|
51
|
|
-# automatically create page for each record of this doctype
|
52
|
|
-# website_generators = ["Web Page"]
|
53
|
|
-
|
54
|
|
-# Jinja
|
55
|
|
-# ----------
|
56
|
|
-
|
57
|
|
-# add methods and filters to jinja environment
|
58
|
|
-# jinja = {
|
59
|
|
-# "methods": "xyz.utils.jinja_methods",
|
60
|
|
-# "filters": "xyz.utils.jinja_filters"
|
61
|
|
-# }
|
62
|
|
-
|
63
|
|
-# Installation
|
64
|
|
-# ------------
|
65
|
|
-
|
66
|
|
-# before_install = "xyz.install.before_install"
|
67
|
|
-# after_install = "xyz.install.after_install"
|
68
|
|
-
|
69
|
|
-# Uninstallation
|
70
|
|
-# ------------
|
71
|
|
-
|
72
|
|
-# before_uninstall = "xyz.uninstall.before_uninstall"
|
73
|
|
-# after_uninstall = "xyz.uninstall.after_uninstall"
|
74
|
|
-
|
75
|
|
-# Desk Notifications
|
76
|
|
-# ------------------
|
77
|
|
-# See frappe.core.notifications.get_notification_config
|
78
|
|
-
|
79
|
|
-# notification_config = "xyz.notifications.get_notification_config"
|
80
|
|
-
|
81
|
|
-# Permissions
|
82
|
|
-# -----------
|
83
|
|
-# Permissions evaluated in scripted ways
|
84
|
|
-
|
85
|
|
-# permission_query_conditions = {
|
86
|
|
-# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
|
87
|
|
-# }
|
88
|
|
-#
|
89
|
|
-# has_permission = {
|
90
|
|
-# "Event": "frappe.desk.doctype.event.event.has_permission",
|
91
|
|
-# }
|
92
|
|
-
|
93
|
|
-# DocType Class
|
94
|
|
-# ---------------
|
95
|
|
-# Override standard doctype classes
|
96
|
|
-
|
97
|
|
-# override_doctype_class = {
|
98
|
|
-# "ToDo": "custom_app.overrides.CustomToDo"
|
99
|
|
-# }
|
100
|
|
-
|
101
|
|
-# Document Events
|
102
|
|
-# ---------------
|
103
|
|
-# Hook on document methods and events
|
104
|
|
-
|
105
|
|
-# doc_events = {
|
106
|
|
-# "*": {
|
107
|
|
-# "on_update": "method",
|
108
|
|
-# "on_cancel": "method",
|
109
|
|
-# "on_trash": "method"
|
110
|
|
-# }
|
111
|
|
-# }
|
112
|
|
-
|
113
|
|
-# Scheduled Tasks
|
114
|
|
-# ---------------
|
115
|
|
-
|
116
|
|
-# scheduler_events = {
|
117
|
|
-# "all": [
|
118
|
|
-# "xyz.tasks.all"
|
119
|
|
-# ],
|
120
|
|
-# "daily": [
|
121
|
|
-# "xyz.tasks.daily"
|
122
|
|
-# ],
|
123
|
|
-# "hourly": [
|
124
|
|
-# "xyz.tasks.hourly"
|
125
|
|
-# ],
|
126
|
|
-# "weekly": [
|
127
|
|
-# "xyz.tasks.weekly"
|
128
|
|
-# ],
|
129
|
|
-# "monthly": [
|
130
|
|
-# "xyz.tasks.monthly"
|
131
|
|
-# ],
|
132
|
|
-# }
|
133
|
|
-
|
134
|
|
-# Testing
|
135
|
|
-# -------
|
136
|
|
-
|
137
|
|
-# before_tests = "xyz.install.before_tests"
|
138
|
|
-
|
139
|
|
-# Overriding Methods
|
140
|
|
-# ------------------------------
|
141
|
|
-#
|
142
|
|
-# override_whitelisted_methods = {
|
143
|
|
-# "frappe.desk.doctype.event.event.get_events": "xyz.event.get_events"
|
144
|
|
-# }
|
145
|
|
-#
|
146
|
|
-# each overriding function accepts a `data` argument;
|
147
|
|
-# generated from the base implementation of the doctype dashboard,
|
148
|
|
-# along with any modifications made in other Frappe apps
|
149
|
|
-# override_doctype_dashboards = {
|
150
|
|
-# "Task": "xyz.task.get_dashboard_data"
|
151
|
|
-# }
|
152
|
|
-
|
153
|
|
-# exempt linked doctypes from being automatically cancelled
|
154
|
|
-#
|
155
|
|
-# auto_cancel_exempted_doctypes = ["Auto Repeat"]
|
156
|
|
-
|
157
|
|
-# Ignore links to specified DocTypes when deleting documents
|
158
|
|
-# -----------------------------------------------------------
|
159
|
|
-
|
160
|
|
-# ignore_links_on_delete = ["Communication", "ToDo"]
|
161
|
|
-
|
162
|
|
-
|
163
|
|
-# User Data Protection
|
164
|
|
-# --------------------
|
165
|
|
-
|
166
|
|
-# user_data_fields = [
|
167
|
|
-# {
|
168
|
|
-# "doctype": "{doctype_1}",
|
169
|
|
-# "filter_by": "{filter_by}",
|
170
|
|
-# "redact_fields": ["{field_1}", "{field_2}"],
|
171
|
|
-# "partial": 1,
|
172
|
|
-# },
|
173
|
|
-# {
|
174
|
|
-# "doctype": "{doctype_2}",
|
175
|
|
-# "filter_by": "{filter_by}",
|
176
|
|
-# "partial": 1,
|
177
|
|
-# },
|
178
|
|
-# {
|
179
|
|
-# "doctype": "{doctype_3}",
|
180
|
|
-# "strict": False,
|
181
|
|
-# },
|
182
|
|
-# {
|
183
|
|
-# "doctype": "{doctype_4}"
|
184
|
|
-# }
|
185
|
|
-# ]
|
186
|
|
-
|
187
|
|
-# Authentication and authorization
|
188
|
|
-# --------------------------------
|
189
|
|
-
|
190
|
|
-# auth_hooks = [
|
191
|
|
-# "xyz.auth.validate"
|
192
|
|
-# ]
|