first app implementation
This commit is contained in:
parent
a9bcc9c1de
commit
41a6414ae5
4 changed files with 34 additions and 23 deletions
|
@ -1 +1,2 @@
|
||||||
# frappe -- https://github.com/frappe/frappe is installed via 'bench init'
|
frappe
|
||||||
|
markdownify
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
|
|
||||||
__version__ = '0.0.1'
|
__version__ = '0.0.1'
|
||||||
|
|
||||||
|
|
|
@ -151,26 +151,26 @@ app_license = "GPLv3"
|
||||||
# User Data Protection
|
# User Data Protection
|
||||||
# --------------------
|
# --------------------
|
||||||
|
|
||||||
user_data_fields = [
|
# user_data_fields = [
|
||||||
{
|
# {
|
||||||
"doctype": "{doctype_1}",
|
# "doctype": "{doctype_1}",
|
||||||
"filter_by": "{filter_by}",
|
# "filter_by": "{filter_by}",
|
||||||
"redact_fields": ["{field_1}", "{field_2}"],
|
# "redact_fields": ["{field_1}", "{field_2}"],
|
||||||
"partial": 1,
|
# "partial": 1,
|
||||||
},
|
# },
|
||||||
{
|
# {
|
||||||
"doctype": "{doctype_2}",
|
# "doctype": "{doctype_2}",
|
||||||
"filter_by": "{filter_by}",
|
# "filter_by": "{filter_by}",
|
||||||
"partial": 1,
|
# "partial": 1,
|
||||||
},
|
# },
|
||||||
{
|
# {
|
||||||
"doctype": "{doctype_3}",
|
# "doctype": "{doctype_3}",
|
||||||
"strict": False,
|
# "strict": False,
|
||||||
},
|
# },
|
||||||
{
|
# {
|
||||||
"doctype": "{doctype_4}"
|
# "doctype": "{doctype_4}"
|
||||||
}
|
# }
|
||||||
]
|
# ]
|
||||||
|
|
||||||
# Authentication and authorization
|
# Authentication and authorization
|
||||||
# --------------------------------
|
# --------------------------------
|
||||||
|
@ -186,3 +186,9 @@ user_data_fields = [
|
||||||
# Recommended only for DocTypes which have limited documents with untranslated names
|
# Recommended only for DocTypes which have limited documents with untranslated names
|
||||||
# For example: Role, Gender, etc.
|
# For example: Role, Gender, etc.
|
||||||
# translated_search_doctypes = []
|
# translated_search_doctypes = []
|
||||||
|
|
||||||
|
jenv = {
|
||||||
|
"methods": [
|
||||||
|
"html_to_markdown:u_utils.utils.html_to_markdown"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
6
u_utils/utils.py
Normal file
6
u_utils/utils.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import frappe
|
||||||
|
import markdownify
|
||||||
|
|
||||||
|
@frappe.whitelist()
|
||||||
|
def html_to_markdown(html_content):
|
||||||
|
return markdownify.markdownify(html_content, heading_style="ATX")
|
Loading…
Reference in a new issue