-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhooks.py
More file actions
109 lines (86 loc) · 2.32 KB
/
Copy pathhooks.py
File metadata and controls
109 lines (86 loc) · 2.32 KB
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
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
app_name = "api_handler"
app_title = "Api Handler"
app_publisher = "New Indictrans"
app_description = "APIs Handler "
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_version = "0.0.1"
# Includes in <head>
# ------------------
# include js, css files in header of desk.html
# app_include_css = "/assets/api_handler/css/api_handler.css"
# app_include_js = "/assets/api_handler/js/api_handler.js"
# include js, css files in header of web template
# web_include_css = "/assets/api_handler/css/api_handler.css"
# web_include_js = "/assets/api_handler/js/api_handler.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 = "api_handler.install.before_install"
# after_install = "api_handler.install.after_install"
# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config
# notification_config = "api_handler.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": [
# "api_handler.tasks.all"
# ],
# "daily": [
# "api_handler.tasks.daily"
# ],
# "hourly": [
# "api_handler.tasks.hourly"
# ],
# "weekly": [
# "api_handler.tasks.weekly"
# ]
# "monthly": [
# "api_handler.tasks.monthly"
# ]
# }
# Testing
# -------
# before_tests = "api_handler.install.before_tests"
# Overriding Whitelisted Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "api_handler.event.get_events"
# }