Skip to content

Commit

Permalink
feat: Initialize App
Browse files Browse the repository at this point in the history
  • Loading branch information
frappe committed Apr 26, 2022
1 parent c59abc5 commit 5f231f5
Show file tree
Hide file tree
Showing 7 changed files with 188 additions and 13 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@
*.egg-info
*.swp
tags
madrasatech/docs/current
<<<<<<< HEAD
madrasatech/hooks.py
=======
madrasatech/hooks.py
>>>>>>> b89a70f5660fa31b9b02b05edd3450a51996b897
madrasatech/docs/current
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## MadrasaTech
## madrasatech

An ERPNext app for managing schools

Expand Down
4 changes: 2 additions & 2 deletions madrasatech/config/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
def get_data():
return [
{
"module_name": "MadrasaTech",
"module_name": "madrasatech",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("MadrasaTech")
"label": _("madrasatech")
}
]
2 changes: 1 addition & 1 deletion madrasatech/config/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
# sub_heading = "Yes, you got that right the first time, everything"

def get_context(context):
context.brand_html = "MadrasaTech"
context.brand_html = "madrasatech"
181 changes: 181 additions & 0 deletions madrasatech/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
from . import __version__ as app_version

app_name = "madrasatech"
app_title = "madrasatech"
app_publisher = "MadrasaTech TEAM"
app_description = "An ERPNext app for managing schools"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app_email = "[email protected]"
app_license = "MIT"

# Includes in <head>
# ------------------

# include js, css files in header of desk.html
# app_include_css = "/assets/madrasatech/css/madrasatech.css"
# app_include_js = "/assets/madrasatech/js/madrasatech.js"

# include js, css files in header of web template
# web_include_css = "/assets/madrasatech/css/madrasatech.css"
# web_include_js = "/assets/madrasatech/js/madrasatech.js"

# include custom scss in every website theme (without file extension ".scss")
# website_theme_scss = "madrasatech/public/scss/website"

# include js, css files in header of web form
# webform_include_js = {"doctype": "public/js/doctype.js"}
# webform_include_css = {"doctype": "public/css/doctype.css"}

# include js in page
# page_js = {"page" : "public/js/file.js"}

# include js in doctype views
# doctype_js = {"doctype" : "public/js/doctype.js"}
# doctype_list_js = {"doctype" : "public/js/doctype_list.js"}
# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"}
# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.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 = "madrasatech.install.before_install"
# after_install = "madrasatech.install.after_install"

# Uninstallation
# ------------

# before_uninstall = "madrasatech.uninstall.before_uninstall"
# after_uninstall = "madrasatech.uninstall.after_uninstall"

# Desk Notifications
# ------------------
# See frappe.core.notifications.get_notification_config

# notification_config = "madrasatech.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",
# }

# DocType Class
# ---------------
# Override standard doctype classes

# override_doctype_class = {
# "ToDo": "custom_app.overrides.CustomToDo"
# }

# Document Events
# ---------------
# Hook on document methods and events

# doc_events = {
# "*": {
# "on_update": "method",
# "on_cancel": "method",
# "on_trash": "method"
# }
# }

# Scheduled Tasks
# ---------------

# scheduler_events = {
# "all": [
# "madrasatech.tasks.all"
# ],
# "daily": [
# "madrasatech.tasks.daily"
# ],
# "hourly": [
# "madrasatech.tasks.hourly"
# ],
# "weekly": [
# "madrasatech.tasks.weekly"
# ]
# "monthly": [
# "madrasatech.tasks.monthly"
# ]
# }

# Testing
# -------

# before_tests = "madrasatech.install.before_tests"

# Overriding Methods
# ------------------------------
#
# override_whitelisted_methods = {
# "frappe.desk.doctype.event.event.get_events": "madrasatech.event.get_events"
# }
#
# each overriding function accepts a `data` argument;
# generated from the base implementation of the doctype dashboard,
# along with any modifications made in other Frappe apps
# override_doctype_dashboards = {
# "Task": "madrasatech.task.get_dashboard_data"
# }

# exempt linked doctypes from being automatically cancelled
#
# auto_cancel_exempted_doctypes = ["Auto Repeat"]


# User Data Protection
# --------------------

user_data_fields = [
{
"doctype": "{doctype_1}",
"filter_by": "{filter_by}",
"redact_fields": ["{field_1}", "{field_2}"],
"partial": 1,
},
{
"doctype": "{doctype_2}",
"filter_by": "{filter_by}",
"partial": 1,
},
{
"doctype": "{doctype_3}",
"strict": False,
},
{
"doctype": "{doctype_4}"
}
]

# Authentication and authorization
# --------------------------------

# auth_hooks = [
# "madrasatech.auth.validate"
# ]

2 changes: 1 addition & 1 deletion madrasatech/modules.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
MadrasaTech
madrasatech
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# frappe -- https://github.com/frappe/frappe is installed via 'bench init'
erpnext
# frappe -- https://github.com/frappe/frappe is installed via 'bench init'

0 comments on commit 5f231f5

Please sign in to comment.