From 6c671c034725c2e9cfeb548ae18715c72b6d9ae1 Mon Sep 17 00:00:00 2001 From: Anand Chitipothu Date: Mon, 8 Mar 2021 11:11:28 +0000 Subject: [PATCH] Added LMS Section doctype --- community/lms/doctype/lms_section/__init__.py | 0 .../lms/doctype/lms_section/lms_section.json | 54 +++++++++++++++++++ .../lms/doctype/lms_section/lms_section.py | 10 ++++ 3 files changed, 64 insertions(+) create mode 100644 community/lms/doctype/lms_section/__init__.py create mode 100644 community/lms/doctype/lms_section/lms_section.json create mode 100644 community/lms/doctype/lms_section/lms_section.py diff --git a/community/lms/doctype/lms_section/__init__.py b/community/lms/doctype/lms_section/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/community/lms/doctype/lms_section/lms_section.json b/community/lms/doctype/lms_section/lms_section.json new file mode 100644 index 00000000..9af77471 --- /dev/null +++ b/community/lms/doctype/lms_section/lms_section.json @@ -0,0 +1,54 @@ +{ + "actions": [], + "creation": "2021-03-05 15:10:53.906006", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "label", + "type", + "contents", + "code", + "attrs" + ], + "fields": [ + { + "fieldname": "label", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Label" + }, + { + "fieldname": "type", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Type" + }, + { + "fieldname": "contents", + "fieldtype": "Markdown Editor", + "label": "Contents" + }, + { + "fieldname": "code", + "fieldtype": "Code", + "label": "Code" + }, + { + "fieldname": "attrs", + "fieldtype": "Long Text", + "label": "attrs" + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2021-03-05 17:12:57.997046", + "modified_by": "Administrator", + "module": "LMS", + "name": "LMS Section", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "track_changes": 1 +} \ No newline at end of file diff --git a/community/lms/doctype/lms_section/lms_section.py b/community/lms/doctype/lms_section/lms_section.py new file mode 100644 index 00000000..a0eaa105 --- /dev/null +++ b/community/lms/doctype/lms_section/lms_section.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2021, FOSS United and contributors +# For license information, please see license.txt + +from __future__ import unicode_literals +# import frappe +from frappe.model.document import Document + +class LMSSection(Document): + pass