This repository has been archived by the owner on Sep 13, 2021. It is now read-only.
/
hooks.py
114 lines (90 loc) · 2.45 KB
/
hooks.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
app_name = "schools"
app_title = "ERPNext Schools"
app_publisher = "Frappe"
app_description = "ERP for Schools, Colleges and Other Acedemic Institutions"
app_icon = "octicon octicon-mortar-board"
app_color = "blue"
app_email = "hello@frappe.io"
app_version = "0.0.1"
app_license = "GNU General Public License v3"
# setup wizard
setup_wizard_requires = "assets/schools/js/setup_wizard.js"
setup_wizard_complete = "schools.setup_wizard.setup_complete"
# Includes in <head>
# ------------------
# include js, css files in header of desk.html
# app_include_css = "/assets/schools/css/schools.css"
# app_include_js = "/assets/schools/js/schools.js"
# include js, css files in header of web template
# web_include_css = "/assets/schools/css/schools.css"
# web_include_js = "/assets/schools/js/schools.js"
# Home Pages
# ----------
# application home page (will override Website Settings)
# home_page = "login"
# website user home page (by Role)
# role_home_page = {
# "Role": "home_page"
# }
# Generators
# ----------
# automatically create page for each record of this doctype
# website_generators = ["Web Page"]
# Installation
# ------------
# before_install = "schools.install.before_install"
# after_install = "schools.install.after_install"
# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config
# notification_config = "schools.notifications.get_notification_config"
# Permissions
# -----------
# Permissions evaluated in scripted ways
# permission_query_conditions = {
# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions",
# }
#
# has_permission = {
# "Event": "frappe.desk.doctype.event.event.has_permission",
# }
# Document Events
# ---------------
# Hook on document methods and events
# doc_events = {
# "*": {
# "on_update": "method",
# "on_cancel": "method",
# "on_trash": "method"
# }
# }
# Scheduled Tasks
# ---------------
# scheduler_events = {
# "all": [
# "schools.tasks.all"
# ],
# "daily": [
# "schools.tasks.daily"
# ],
# "hourly": [
# "schools.tasks.hourly"
# ],
# "weekly": [
# "schools.tasks.weekly"
# ]
# "monthly": [
# "schools.tasks.monthly"
# ]
# }
# Testing
# -------
# before_tests = "schools.install.before_tests"
# Overriding Whitelisted Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "schools.event.get_events"
# }