diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 500e2aa2..c39e0b2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,15 +57,15 @@ jobs: mkdir -p ~/bench-cache (cd && tar czf ~/bench-cache/bench.tgz frappe-bench) fi - - name: add school app to bench + - name: add lms app to bench working-directory: /home/runner/frappe-bench - run: bench get-app school $GITHUB_WORKSPACE + run: bench get-app lms $GITHUB_WORKSPACE - name: create bench site working-directory: /home/runner/frappe-bench run: bench new-site --mariadb-root-password root --admin-password admin frappe.local - - name: install school app + - name: install lms app working-directory: /home/runner/frappe-bench - run: bench --verbose --site frappe.local install-app school + run: bench --verbose --site frappe.local install-app lms - name: setup requirements working-directory: /home/runner/frappe-bench run: bench setup requirements --dev @@ -77,5 +77,5 @@ jobs: run: bench --site frappe.local build - name: run tests working-directory: /home/runner/frappe-bench - run: bench --site frappe.local run-tests --app school + run: bench --site frappe.local run-tests --app lms diff --git a/.gitignore b/.gitignore index 6b0bb2e7..ba820a93 100644 --- a/.gitignore +++ b/.gitignore @@ -3,8 +3,8 @@ *.egg-info *.swp tags -school/docs/current -school/public/dist +lms/docs/current +lms/public/dist __pycache__/ *.py[cod] *$py.class diff --git a/Contribution.md b/Contribution.md index ce403717..d61d1978 100644 --- a/Contribution.md +++ b/Contribution.md @@ -1,5 +1,5 @@ -1. Go to the apps/school directory of your installation and execute git pull --unshallow to ensure that you have the full git repository. Also fork the frappe/school repository on GitHub. +1. Go to the apps/lms directory of your installation and execute git pull --unshallow to ensure that you have the full git repository. Also fork the frappe/lms repository on GitHub. 1. Check out a working branch in git (e.g. git checkout -b my-new-branch). 1. Make your proposed changes to the source 1. Run your local version (e.g. bench start in your bench installation). Make sure that your changes work the way you want them to. diff --git a/MANIFEST.in b/MANIFEST.in index 75d82839..b85174db 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,15 +4,15 @@ include *.json include *.md include *.py include *.txt -recursive-include school *.css -recursive-include school *.csv -recursive-include school *.html -recursive-include school *.ico -recursive-include school *.js -recursive-include school *.json -recursive-include school *.md -recursive-include school *.png -recursive-include school *.py -recursive-include school *.svg -recursive-include school *.txt -recursive-exclude school *.pyc \ No newline at end of file +recursive-include lms *.css +recursive-include lms *.csv +recursive-include lms *.html +recursive-include lms *.ico +recursive-include lms *.js +recursive-include lms *.json +recursive-include lms *.md +recursive-include lms *.png +recursive-include lms *.py +recursive-include lms *.svg +recursive-include lms *.txt +recursive-exclude lms *.pyc diff --git a/README.md b/README.md index 12718f16..37c39ac8 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -## School +## LMS Create online courses without much hassle. -![Course Home](/school/public/images/course-home.png) +![Course Home](/lms/public/images/course-home.png) ## Features diff --git a/bench-installation.md b/bench-installation.md index 25685c35..963b26d2 100644 --- a/bench-installation.md +++ b/bench-installation.md @@ -2,9 +2,9 @@ To setup the repository locally follow the steps mentioned below: 1. Install bench and setup a frappe-bench directory by following the [Installation Steps](https://frappeframework.com/docs/user/en/installation). 1. Start the server by running bench start. -1. In a separate terminal window, create a new site by running bench new-site school.test. -1. Fork the school app +1. In a separate terminal window, create a new site by running bench new-site lms.test. +1. Fork the lms app 1. Run bench get-app . -1. Run bench --site school.test install-app school. -1. Map your site to localhost with the command ```bench --site school.test add-to-hosts``` -1. Now open the URL http://school.test:8000/ in your browser, you should see the app running. +1. Run bench --site lms.test install-app lms. +1. Map your site to localhost with the command ```bench --site lms.test add-to-hosts``` +1. Now open the URL http://lms.test:8000/ in your browser, you should see the app running. diff --git a/docker-compose.yml b/docker-compose.yml index c2525759..90e9e0d3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,9 +11,9 @@ services: bench: image: anandology/frappe-bench:2021.10 volumes: - - .:/opt/frappe-bench/apps/school + - .:/opt/frappe-bench/apps/lms environment: - - FRAPPE_APPS=school + - FRAPPE_APPS=lms - FRAPPE_ALLOW_TESTS=true - FRAPPE_SITE_NAME=frappe.localhost depends_on: diff --git a/docker-installation.md b/docker-installation.md index f26d34ce..99a272f1 100644 --- a/docker-installation.md +++ b/docker-installation.md @@ -1,9 +1,9 @@ **Step 1:** Clone the repo ``` -$ git clone https://github.com/frappe/school.git +$ git clone https://github.com/frappe/lms.git -$ cd school +$ cd lms ``` **Step 2:** Run docker-compose diff --git a/school/__init__.py b/lms/__init__.py similarity index 100% rename from school/__init__.py rename to lms/__init__.py diff --git a/school/community/__init__.py b/lms/config/__init__.py similarity index 100% rename from school/community/__init__.py rename to lms/config/__init__.py diff --git a/school/config/desktop.py b/lms/config/desktop.py similarity index 100% rename from school/config/desktop.py rename to lms/config/desktop.py diff --git a/school/config/docs.py b/lms/config/docs.py similarity index 100% rename from school/config/docs.py rename to lms/config/docs.py diff --git a/school/fixtures/custom_field.json b/lms/fixtures/custom_field.json similarity index 100% rename from school/fixtures/custom_field.json rename to lms/fixtures/custom_field.json diff --git a/school/hooks.py b/lms/hooks.py similarity index 75% rename from school/hooks.py rename to lms/hooks.py index 78f9c751..c1839c11 100644 --- a/school/hooks.py +++ b/lms/hooks.py @@ -2,10 +2,10 @@ from __future__ import unicode_literals from . import __version__ as app_version -app_name = "school" -app_title = "School" +app_name = "lms" +app_title = "LMS" app_publisher = "Frappe" -app_description = "School" +app_description = "LMS" app_icon = "octicon octicon-file-directory" app_color = "grey" app_email = "school@frappe.io" @@ -15,16 +15,16 @@ app_license = "AGPL" # ------------------ # include js, css files in header of desk.html -# app_include_css = "/assets/school/css/school.css" -# app_include_js = "/assets/school/js/school.js" +# app_include_css = "/assets/lms/css/lms.css" +# app_include_js = "/assets/lms/js/lms.js" # include js, css files in header of web template -web_include_css = "/assets/css/school.css" -# web_include_css = "/assets/school/css/school.css" +web_include_css = "/assets/css/lms.css" +# web_include_css = "/assets/lms/css/lms.css" #web_include_js = "website.bundle.js" # include custom scss in every website theme (without file extension ".scss") -# website_theme_scss = "school/public/scss/website" +# website_theme_scss = "lms/public/scss/website" # include js, css files in header of web form # webform_include_js = {"doctype": "public/js/doctype.js"} @@ -59,14 +59,14 @@ web_include_css = "/assets/css/school.css" # Installation # ------------ -# before_install = "school.install.before_install" -# after_install = "school.install.after_install" +# before_install = "lms.install.before_install" +# after_install = "lms.install.after_install" # Desk Notifications # ------------------ # See frappe.core.notifications.get_notification_config -# notification_config = "school.notifications.get_notification_config" +# notification_config = "lms.notifications.get_notification_config" # Permissions # ----------- @@ -85,8 +85,8 @@ web_include_css = "/assets/css/school.css" # Override standard doctype classes override_doctype_class = { - "User": "school.overrides.user.CustomUser", - "Web Template": "school.overrides.web_template.CustomWebTemplate" + "User": "lms.overrides.user.CustomUser", + "Web Template": "lms.overrides.web_template.CustomWebTemplate" } # Document Events @@ -110,20 +110,20 @@ fixtures = ["Custom Field"] # Testing # ------- -# before_tests = "school.install.before_tests" +# before_tests = "lms.install.before_tests" # Overriding Methods # ------------------------------ # # override_whitelisted_methods = { -# "frappe.desk.doctype.event.event.get_events": "school.event.get_events" +# "frappe.desk.doctype.event.event.get_events": "lms.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": "school.task.get_dashboard_data" +# "Task": "lms.task.get_dashboard_data" # } # exempt linked doctypes from being automatically cancelled @@ -149,28 +149,28 @@ website_redirects = [ ] update_website_context = [ - 'school.widgets.update_website_context', + 'lms.widgets.update_website_context', ] ## Specify the additional tabs to be included in the user profile page. -## Each entry must be a subclass of school.school.plugins.ProfileTab +## Each entry must be a subclass of lms.lms.plugins.ProfileTab # profile_tabs = [] ## Specify the extension to be used to control what scripts and stylesheets ## to be included in lesson pages. The specified value must be be a -## subclass of school.plugins.PageExtension -# school_lesson_page_extension = None +## subclass of lms.plugins.PageExtension +# lms = None -#school_lesson_page_extensions = [ -# "school.plugins.LiveCodeExtension" +#lms_lesson_page_extensions = [ +# "lms.plugins.LiveCodeExtension" #] ## Markdown Macros for Lessons -school_markdown_macro_renderers = { - "Exercise": "school.plugins.exercise_renderer", - "Quiz": "school.plugins.quiz_renderer", - "YouTubeVideo": "school.plugins.youtube_video_renderer", - "Video": "school.plugins.video_renderer" +lms_markdown_macro_renderers = { + "Exercise": "lms.plugins.exercise_renderer", + "Quiz": "lms.plugins.quiz_renderer", + "YouTubeVideo": "lms.plugins.youtube_video_renderer", + "Video": "lms.plugins.video_renderer" } # set this to "/" to have profiles on the top-level diff --git a/school/community/doctype/__init__.py b/lms/lms/__init__.py similarity index 100% rename from school/community/doctype/__init__.py rename to lms/lms/__init__.py diff --git a/school/lms/api.py b/lms/lms/api.py similarity index 100% rename from school/lms/api.py rename to lms/lms/api.py diff --git a/school/lms/dashboard_chart/course_enrollments/course_enrollments.json b/lms/lms/dashboard_chart/course_enrollments/course_enrollments.json similarity index 100% rename from school/lms/dashboard_chart/course_enrollments/course_enrollments.json rename to lms/lms/dashboard_chart/course_enrollments/course_enrollments.json diff --git a/school/community/doctype/community_event/__init__.py b/lms/lms/doctype/__init__.py similarity index 100% rename from school/community/doctype/community_event/__init__.py rename to lms/lms/doctype/__init__.py diff --git a/school/community/doctype/community_event_volunteer/__init__.py b/lms/lms/doctype/chapter_reference/__init__.py similarity index 100% rename from school/community/doctype/community_event_volunteer/__init__.py rename to lms/lms/doctype/chapter_reference/__init__.py diff --git a/school/lms/doctype/chapter_reference/chapter_reference.json b/lms/lms/doctype/chapter_reference/chapter_reference.json similarity index 100% rename from school/lms/doctype/chapter_reference/chapter_reference.json rename to lms/lms/doctype/chapter_reference/chapter_reference.json diff --git a/school/lms/doctype/chapter_reference/chapter_reference.py b/lms/lms/doctype/chapter_reference/chapter_reference.py similarity index 100% rename from school/lms/doctype/chapter_reference/chapter_reference.py rename to lms/lms/doctype/chapter_reference/chapter_reference.py diff --git a/school/community/doctype/community_participant/__init__.py b/lms/lms/doctype/course_chapter/__init__.py similarity index 100% rename from school/community/doctype/community_participant/__init__.py rename to lms/lms/doctype/course_chapter/__init__.py diff --git a/school/lms/doctype/course_chapter/course_chapter.js b/lms/lms/doctype/course_chapter/course_chapter.js similarity index 100% rename from school/lms/doctype/course_chapter/course_chapter.js rename to lms/lms/doctype/course_chapter/course_chapter.js diff --git a/school/lms/doctype/course_chapter/course_chapter.json b/lms/lms/doctype/course_chapter/course_chapter.json similarity index 100% rename from school/lms/doctype/course_chapter/course_chapter.json rename to lms/lms/doctype/course_chapter/course_chapter.json diff --git a/school/lms/doctype/course_chapter/course_chapter.py b/lms/lms/doctype/course_chapter/course_chapter.py similarity index 100% rename from school/lms/doctype/course_chapter/course_chapter.py rename to lms/lms/doctype/course_chapter/course_chapter.py diff --git a/school/lms/doctype/course_chapter/test_course_chapter.py b/lms/lms/doctype/course_chapter/test_course_chapter.py similarity index 100% rename from school/lms/doctype/course_chapter/test_course_chapter.py rename to lms/lms/doctype/course_chapter/test_course_chapter.py diff --git a/school/community/doctype/community_speaker/__init__.py b/lms/lms/doctype/course_lesson/__init__.py similarity index 100% rename from school/community/doctype/community_speaker/__init__.py rename to lms/lms/doctype/course_lesson/__init__.py diff --git a/school/lms/doctype/course_lesson/course_lesson.js b/lms/lms/doctype/course_lesson/course_lesson.js similarity index 100% rename from school/lms/doctype/course_lesson/course_lesson.js rename to lms/lms/doctype/course_lesson/course_lesson.js diff --git a/school/lms/doctype/course_lesson/course_lesson.json b/lms/lms/doctype/course_lesson/course_lesson.json similarity index 100% rename from school/lms/doctype/course_lesson/course_lesson.json rename to lms/lms/doctype/course_lesson/course_lesson.json diff --git a/school/lms/doctype/course_lesson/course_lesson.py b/lms/lms/doctype/course_lesson/course_lesson.py similarity index 100% rename from school/lms/doctype/course_lesson/course_lesson.py rename to lms/lms/doctype/course_lesson/course_lesson.py diff --git a/school/lms/doctype/course_lesson/test_course_lesson.py b/lms/lms/doctype/course_lesson/test_course_lesson.py similarity index 100% rename from school/lms/doctype/course_lesson/test_course_lesson.py rename to lms/lms/doctype/course_lesson/test_course_lesson.py diff --git a/school/community/doctype/community_sponsor/__init__.py b/lms/lms/doctype/exercise/__init__.py similarity index 100% rename from school/community/doctype/community_sponsor/__init__.py rename to lms/lms/doctype/exercise/__init__.py diff --git a/school/lms/doctype/exercise/exercise.js b/lms/lms/doctype/exercise/exercise.js similarity index 100% rename from school/lms/doctype/exercise/exercise.js rename to lms/lms/doctype/exercise/exercise.js diff --git a/school/lms/doctype/exercise/exercise.json b/lms/lms/doctype/exercise/exercise.json similarity index 100% rename from school/lms/doctype/exercise/exercise.json rename to lms/lms/doctype/exercise/exercise.json diff --git a/school/lms/doctype/exercise/exercise.py b/lms/lms/doctype/exercise/exercise.py similarity index 100% rename from school/lms/doctype/exercise/exercise.py rename to lms/lms/doctype/exercise/exercise.py diff --git a/school/lms/doctype/exercise/test_exercise.py b/lms/lms/doctype/exercise/test_exercise.py similarity index 100% rename from school/lms/doctype/exercise/test_exercise.py rename to lms/lms/doctype/exercise/test_exercise.py diff --git a/school/community/doctype/community_talk/__init__.py b/lms/lms/doctype/exercise_submission/__init__.py similarity index 100% rename from school/community/doctype/community_talk/__init__.py rename to lms/lms/doctype/exercise_submission/__init__.py diff --git a/school/lms/doctype/exercise_submission/exercise_submission.js b/lms/lms/doctype/exercise_submission/exercise_submission.js similarity index 100% rename from school/lms/doctype/exercise_submission/exercise_submission.js rename to lms/lms/doctype/exercise_submission/exercise_submission.js diff --git a/school/lms/doctype/exercise_submission/exercise_submission.json b/lms/lms/doctype/exercise_submission/exercise_submission.json similarity index 100% rename from school/lms/doctype/exercise_submission/exercise_submission.json rename to lms/lms/doctype/exercise_submission/exercise_submission.json diff --git a/school/lms/doctype/exercise_submission/exercise_submission.py b/lms/lms/doctype/exercise_submission/exercise_submission.py similarity index 100% rename from school/lms/doctype/exercise_submission/exercise_submission.py rename to lms/lms/doctype/exercise_submission/exercise_submission.py diff --git a/school/lms/doctype/exercise_submission/test_exercise_submission.py b/lms/lms/doctype/exercise_submission/test_exercise_submission.py similarity index 100% rename from school/lms/doctype/exercise_submission/test_exercise_submission.py rename to lms/lms/doctype/exercise_submission/test_exercise_submission.py diff --git a/school/community/doctype/tshirt_sizes/__init__.py b/lms/lms/doctype/invite_request/__init__.py similarity index 100% rename from school/community/doctype/tshirt_sizes/__init__.py rename to lms/lms/doctype/invite_request/__init__.py diff --git a/school/lms/doctype/invite_request/invite_request.js b/lms/lms/doctype/invite_request/invite_request.js similarity index 100% rename from school/lms/doctype/invite_request/invite_request.js rename to lms/lms/doctype/invite_request/invite_request.js diff --git a/school/lms/doctype/invite_request/invite_request.json b/lms/lms/doctype/invite_request/invite_request.json similarity index 100% rename from school/lms/doctype/invite_request/invite_request.json rename to lms/lms/doctype/invite_request/invite_request.json diff --git a/school/lms/doctype/invite_request/invite_request.py b/lms/lms/doctype/invite_request/invite_request.py similarity index 100% rename from school/lms/doctype/invite_request/invite_request.py rename to lms/lms/doctype/invite_request/invite_request.py diff --git a/school/lms/doctype/invite_request/test_invite_request.py b/lms/lms/doctype/invite_request/test_invite_request.py similarity index 96% rename from school/lms/doctype/invite_request/test_invite_request.py rename to lms/lms/doctype/invite_request/test_invite_request.py index 16888eee..491bac17 100644 --- a/school/lms/doctype/invite_request/test_invite_request.py +++ b/lms/lms/doctype/invite_request/test_invite_request.py @@ -2,7 +2,7 @@ # Copyright (c) 2021, FOSS United and Contributors # See license.txt from __future__ import unicode_literals -from school.lms.doctype.invite_request.invite_request import create_invite_request, update_invite +from lms.lms.doctype.invite_request.invite_request import create_invite_request, update_invite import frappe import unittest diff --git a/school/community/web_form/__init__.py b/lms/lms/doctype/lesson_reference/__init__.py similarity index 100% rename from school/community/web_form/__init__.py rename to lms/lms/doctype/lesson_reference/__init__.py diff --git a/school/lms/doctype/lesson_reference/lesson_reference.json b/lms/lms/doctype/lesson_reference/lesson_reference.json similarity index 100% rename from school/lms/doctype/lesson_reference/lesson_reference.json rename to lms/lms/doctype/lesson_reference/lesson_reference.json diff --git a/school/lms/doctype/lesson_reference/lesson_reference.py b/lms/lms/doctype/lesson_reference/lesson_reference.py similarity index 100% rename from school/lms/doctype/lesson_reference/lesson_reference.py rename to lms/lms/doctype/lesson_reference/lesson_reference.py diff --git a/school/community/web_form/join_request/__init__.py b/lms/lms/doctype/lms_batch/__init__.py similarity index 100% rename from school/community/web_form/join_request/__init__.py rename to lms/lms/doctype/lms_batch/__init__.py diff --git a/school/lms/doctype/lms_batch/lms_batch.js b/lms/lms/doctype/lms_batch/lms_batch.js similarity index 100% rename from school/lms/doctype/lms_batch/lms_batch.js rename to lms/lms/doctype/lms_batch/lms_batch.js diff --git a/school/lms/doctype/lms_batch/lms_batch.json b/lms/lms/doctype/lms_batch/lms_batch.json similarity index 100% rename from school/lms/doctype/lms_batch/lms_batch.json rename to lms/lms/doctype/lms_batch/lms_batch.json diff --git a/school/lms/doctype/lms_batch/lms_batch.py b/lms/lms/doctype/lms_batch/lms_batch.py similarity index 95% rename from school/lms/doctype/lms_batch/lms_batch.py rename to lms/lms/doctype/lms_batch/lms_batch.py index a7fbcb68..85b4b6a4 100644 --- a/school/lms/doctype/lms_batch/lms_batch.py +++ b/lms/lms/doctype/lms_batch/lms_batch.py @@ -6,8 +6,8 @@ from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import _ -from school.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership -from school.query import find, find_all +from lms.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership +from lms.query import find, find_all class LMSBatch(Document): def validate(self): diff --git a/school/lms/doctype/lms_batch/test_lms_batch.py b/lms/lms/doctype/lms_batch/test_lms_batch.py similarity index 100% rename from school/lms/doctype/lms_batch/test_lms_batch.py rename to lms/lms/doctype/lms_batch/test_lms_batch.py diff --git a/school/community/web_form/project_update/__init__.py b/lms/lms/doctype/lms_batch_membership/__init__.py similarity index 100% rename from school/community/web_form/project_update/__init__.py rename to lms/lms/doctype/lms_batch_membership/__init__.py diff --git a/school/lms/doctype/lms_batch_membership/lms_batch_membership.js b/lms/lms/doctype/lms_batch_membership/lms_batch_membership.js similarity index 100% rename from school/lms/doctype/lms_batch_membership/lms_batch_membership.js rename to lms/lms/doctype/lms_batch_membership/lms_batch_membership.js diff --git a/school/lms/doctype/lms_batch_membership/lms_batch_membership.json b/lms/lms/doctype/lms_batch_membership/lms_batch_membership.json similarity index 100% rename from school/lms/doctype/lms_batch_membership/lms_batch_membership.json rename to lms/lms/doctype/lms_batch_membership/lms_batch_membership.json diff --git a/school/lms/doctype/lms_batch_membership/lms_batch_membership.py b/lms/lms/doctype/lms_batch_membership/lms_batch_membership.py similarity index 100% rename from school/lms/doctype/lms_batch_membership/lms_batch_membership.py rename to lms/lms/doctype/lms_batch_membership/lms_batch_membership.py diff --git a/school/lms/doctype/lms_batch_membership/test_lms_batch_membership.py b/lms/lms/doctype/lms_batch_membership/test_lms_batch_membership.py similarity index 100% rename from school/lms/doctype/lms_batch_membership/test_lms_batch_membership.py rename to lms/lms/doctype/lms_batch_membership/test_lms_batch_membership.py diff --git a/school/community/web_template/__init__.py b/lms/lms/doctype/lms_certification/__init__.py similarity index 100% rename from school/community/web_template/__init__.py rename to lms/lms/doctype/lms_certification/__init__.py diff --git a/school/lms/doctype/lms_certification/lms_certification.js b/lms/lms/doctype/lms_certification/lms_certification.js similarity index 100% rename from school/lms/doctype/lms_certification/lms_certification.js rename to lms/lms/doctype/lms_certification/lms_certification.js diff --git a/school/lms/doctype/lms_certification/lms_certification.json b/lms/lms/doctype/lms_certification/lms_certification.json similarity index 100% rename from school/lms/doctype/lms_certification/lms_certification.json rename to lms/lms/doctype/lms_certification/lms_certification.json diff --git a/school/lms/doctype/lms_certification/lms_certification.py b/lms/lms/doctype/lms_certification/lms_certification.py similarity index 100% rename from school/lms/doctype/lms_certification/lms_certification.py rename to lms/lms/doctype/lms_certification/lms_certification.py diff --git a/school/lms/doctype/lms_certification/test_lms_certification.py b/lms/lms/doctype/lms_certification/test_lms_certification.py similarity index 100% rename from school/lms/doctype/lms_certification/test_lms_certification.py rename to lms/lms/doctype/lms_certification/test_lms_certification.py diff --git a/school/community/web_template/multiple_testimonials/__init__.py b/lms/lms/doctype/lms_course/__init__.py similarity index 100% rename from school/community/web_template/multiple_testimonials/__init__.py rename to lms/lms/doctype/lms_course/__init__.py diff --git a/school/lms/doctype/lms_course/lms_course.js b/lms/lms/doctype/lms_course/lms_course.js similarity index 100% rename from school/lms/doctype/lms_course/lms_course.js rename to lms/lms/doctype/lms_course/lms_course.js diff --git a/school/lms/doctype/lms_course/lms_course.json b/lms/lms/doctype/lms_course/lms_course.json similarity index 98% rename from school/lms/doctype/lms_course/lms_course.json rename to lms/lms/doctype/lms_course/lms_course.json index 86b7e5d1..7e8e5426 100644 --- a/school/lms/doctype/lms_course/lms_course.json +++ b/lms/lms/doctype/lms_course/lms_course.json @@ -1,7 +1,7 @@ { "actions": [ { - "action": "school.lms.doctype.lms_course.lms_course.reindex_exercises", + "action": "lms.lms.doctype.lms_course.lms_course.reindex_exercises", "action_type": "Server Action", "group": "Reindex", "label": "Reindex Exercises" @@ -192,4 +192,4 @@ "sort_order": "DESC", "title_field": "title", "track_changes": 1 -} \ No newline at end of file +} diff --git a/school/lms/doctype/lms_course/lms_course.py b/lms/lms/doctype/lms_course/lms_course.py similarity index 99% rename from school/lms/doctype/lms_course/lms_course.py rename to lms/lms/doctype/lms_course/lms_course.py index b9993cbe..128f4aee 100644 --- a/school/lms/doctype/lms_course/lms_course.py +++ b/lms/lms/doctype/lms_course/lms_course.py @@ -7,7 +7,7 @@ import frappe from frappe.model.document import Document import json from ...utils import slugify -from school.query import find, find_all +from lms.query import find, find_all from frappe.utils import flt, cint from ...utils import slugify @@ -380,7 +380,7 @@ def search_course(text): """ for course in courses: search_courses.append(frappe.get_doc("LMS Course", course)) """ - """ template = frappe.render_template("school/templates/course_list.html", { + """ template = frappe.render_template("lms/templates/course_list.html", { "title": _("Search Results"), "courses": search_courses, "widgets": Widgets() diff --git a/school/lms/doctype/lms_course/test_lms_course.py b/lms/lms/doctype/lms_course/test_lms_course.py similarity index 100% rename from school/lms/doctype/lms_course/test_lms_course.py rename to lms/lms/doctype/lms_course/test_lms_course.py diff --git a/school/conference/__init__.py b/lms/lms/doctype/lms_course_enrollment/__init__.py similarity index 100% rename from school/conference/__init__.py rename to lms/lms/doctype/lms_course_enrollment/__init__.py diff --git a/school/lms/doctype/lms_course_enrollment/lms_course_enrollment.js b/lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.js similarity index 100% rename from school/lms/doctype/lms_course_enrollment/lms_course_enrollment.js rename to lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.js diff --git a/school/lms/doctype/lms_course_enrollment/lms_course_enrollment.json b/lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.json similarity index 100% rename from school/lms/doctype/lms_course_enrollment/lms_course_enrollment.json rename to lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.json diff --git a/school/lms/doctype/lms_course_enrollment/lms_course_enrollment.py b/lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.py similarity index 100% rename from school/lms/doctype/lms_course_enrollment/lms_course_enrollment.py rename to lms/lms/doctype/lms_course_enrollment/lms_course_enrollment.py diff --git a/school/lms/doctype/lms_course_enrollment/test_lms_course_enrollment.py b/lms/lms/doctype/lms_course_enrollment/test_lms_course_enrollment.py similarity index 100% rename from school/lms/doctype/lms_course_enrollment/test_lms_course_enrollment.py rename to lms/lms/doctype/lms_course_enrollment/test_lms_course_enrollment.py diff --git a/school/conference/doctype/__init__.py b/lms/lms/doctype/lms_course_interest/__init__.py similarity index 100% rename from school/conference/doctype/__init__.py rename to lms/lms/doctype/lms_course_interest/__init__.py diff --git a/school/lms/doctype/lms_course_interest/lms_course_interest.js b/lms/lms/doctype/lms_course_interest/lms_course_interest.js similarity index 100% rename from school/lms/doctype/lms_course_interest/lms_course_interest.js rename to lms/lms/doctype/lms_course_interest/lms_course_interest.js diff --git a/school/lms/doctype/lms_course_interest/lms_course_interest.json b/lms/lms/doctype/lms_course_interest/lms_course_interest.json similarity index 100% rename from school/lms/doctype/lms_course_interest/lms_course_interest.json rename to lms/lms/doctype/lms_course_interest/lms_course_interest.json diff --git a/school/lms/doctype/lms_course_interest/lms_course_interest.py b/lms/lms/doctype/lms_course_interest/lms_course_interest.py similarity index 100% rename from school/lms/doctype/lms_course_interest/lms_course_interest.py rename to lms/lms/doctype/lms_course_interest/lms_course_interest.py diff --git a/school/lms/doctype/lms_course_interest/test_lms_course_interest.py b/lms/lms/doctype/lms_course_interest/test_lms_course_interest.py similarity index 100% rename from school/lms/doctype/lms_course_interest/test_lms_course_interest.py rename to lms/lms/doctype/lms_course_interest/test_lms_course_interest.py diff --git a/school/conference/doctype/community_conference/__init__.py b/lms/lms/doctype/lms_course_mentor_mapping/__init__.py similarity index 100% rename from school/conference/doctype/community_conference/__init__.py rename to lms/lms/doctype/lms_course_mentor_mapping/__init__.py diff --git a/school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.js b/lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.js similarity index 100% rename from school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.js rename to lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.js diff --git a/school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.json b/lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.json similarity index 100% rename from school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.json rename to lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.json diff --git a/school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.py b/lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.py similarity index 100% rename from school/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.py rename to lms/lms/doctype/lms_course_mentor_mapping/lms_course_mentor_mapping.py diff --git a/school/lms/doctype/lms_course_mentor_mapping/test_lms_course_mentor_mapping.py b/lms/lms/doctype/lms_course_mentor_mapping/test_lms_course_mentor_mapping.py similarity index 100% rename from school/lms/doctype/lms_course_mentor_mapping/test_lms_course_mentor_mapping.py rename to lms/lms/doctype/lms_course_mentor_mapping/test_lms_course_mentor_mapping.py diff --git a/school/conference/doctype/community_conference_participant/__init__.py b/lms/lms/doctype/lms_course_progress/__init__.py similarity index 100% rename from school/conference/doctype/community_conference_participant/__init__.py rename to lms/lms/doctype/lms_course_progress/__init__.py diff --git a/school/lms/doctype/lms_course_progress/lms_course_progress.js b/lms/lms/doctype/lms_course_progress/lms_course_progress.js similarity index 100% rename from school/lms/doctype/lms_course_progress/lms_course_progress.js rename to lms/lms/doctype/lms_course_progress/lms_course_progress.js diff --git a/school/lms/doctype/lms_course_progress/lms_course_progress.json b/lms/lms/doctype/lms_course_progress/lms_course_progress.json similarity index 100% rename from school/lms/doctype/lms_course_progress/lms_course_progress.json rename to lms/lms/doctype/lms_course_progress/lms_course_progress.json diff --git a/school/lms/doctype/lms_course_progress/lms_course_progress.py b/lms/lms/doctype/lms_course_progress/lms_course_progress.py similarity index 100% rename from school/lms/doctype/lms_course_progress/lms_course_progress.py rename to lms/lms/doctype/lms_course_progress/lms_course_progress.py diff --git a/school/lms/doctype/lms_course_progress/test_lms_course_progress.py b/lms/lms/doctype/lms_course_progress/test_lms_course_progress.py similarity index 100% rename from school/lms/doctype/lms_course_progress/test_lms_course_progress.py rename to lms/lms/doctype/lms_course_progress/test_lms_course_progress.py diff --git a/school/conference/doctype/community_conference_request/__init__.py b/lms/lms/doctype/lms_course_review/__init__.py similarity index 100% rename from school/conference/doctype/community_conference_request/__init__.py rename to lms/lms/doctype/lms_course_review/__init__.py diff --git a/school/lms/doctype/lms_course_review/lms_course_review.js b/lms/lms/doctype/lms_course_review/lms_course_review.js similarity index 100% rename from school/lms/doctype/lms_course_review/lms_course_review.js rename to lms/lms/doctype/lms_course_review/lms_course_review.js diff --git a/school/lms/doctype/lms_course_review/lms_course_review.json b/lms/lms/doctype/lms_course_review/lms_course_review.json similarity index 100% rename from school/lms/doctype/lms_course_review/lms_course_review.json rename to lms/lms/doctype/lms_course_review/lms_course_review.json diff --git a/school/lms/doctype/lms_course_review/lms_course_review.py b/lms/lms/doctype/lms_course_review/lms_course_review.py similarity index 100% rename from school/lms/doctype/lms_course_review/lms_course_review.py rename to lms/lms/doctype/lms_course_review/lms_course_review.py diff --git a/school/lms/doctype/lms_course_review/test_lms_course_review.py b/lms/lms/doctype/lms_course_review/test_lms_course_review.py similarity index 100% rename from school/lms/doctype/lms_course_review/test_lms_course_review.py rename to lms/lms/doctype/lms_course_review/test_lms_course_review.py diff --git a/school/config/__init__.py b/lms/lms/doctype/lms_mentor_request/__init__.py similarity index 100% rename from school/config/__init__.py rename to lms/lms/doctype/lms_mentor_request/__init__.py diff --git a/school/lms/doctype/lms_mentor_request/lms_mentor_request.js b/lms/lms/doctype/lms_mentor_request/lms_mentor_request.js similarity index 100% rename from school/lms/doctype/lms_mentor_request/lms_mentor_request.js rename to lms/lms/doctype/lms_mentor_request/lms_mentor_request.js diff --git a/school/lms/doctype/lms_mentor_request/lms_mentor_request.json b/lms/lms/doctype/lms_mentor_request/lms_mentor_request.json similarity index 100% rename from school/lms/doctype/lms_mentor_request/lms_mentor_request.json rename to lms/lms/doctype/lms_mentor_request/lms_mentor_request.json diff --git a/school/lms/doctype/lms_mentor_request/lms_mentor_request.py b/lms/lms/doctype/lms_mentor_request/lms_mentor_request.py similarity index 100% rename from school/lms/doctype/lms_mentor_request/lms_mentor_request.py rename to lms/lms/doctype/lms_mentor_request/lms_mentor_request.py diff --git a/school/lms/doctype/lms_mentor_request/test_lms_mentor_request.py b/lms/lms/doctype/lms_mentor_request/test_lms_mentor_request.py similarity index 100% rename from school/lms/doctype/lms_mentor_request/test_lms_mentor_request.py rename to lms/lms/doctype/lms_mentor_request/test_lms_mentor_request.py diff --git a/school/event_management/__init__.py b/lms/lms/doctype/lms_option/__init__.py similarity index 100% rename from school/event_management/__init__.py rename to lms/lms/doctype/lms_option/__init__.py diff --git a/school/lms/doctype/lms_option/lms_option.json b/lms/lms/doctype/lms_option/lms_option.json similarity index 100% rename from school/lms/doctype/lms_option/lms_option.json rename to lms/lms/doctype/lms_option/lms_option.json diff --git a/school/lms/doctype/lms_option/lms_option.py b/lms/lms/doctype/lms_option/lms_option.py similarity index 100% rename from school/lms/doctype/lms_option/lms_option.py rename to lms/lms/doctype/lms_option/lms_option.py diff --git a/school/event_management/doctype/__init__.py b/lms/lms/doctype/lms_quiz/__init__.py similarity index 100% rename from school/event_management/doctype/__init__.py rename to lms/lms/doctype/lms_quiz/__init__.py diff --git a/school/lms/doctype/lms_quiz/lms_quiz.js b/lms/lms/doctype/lms_quiz/lms_quiz.js similarity index 100% rename from school/lms/doctype/lms_quiz/lms_quiz.js rename to lms/lms/doctype/lms_quiz/lms_quiz.js diff --git a/school/lms/doctype/lms_quiz/lms_quiz.json b/lms/lms/doctype/lms_quiz/lms_quiz.json similarity index 100% rename from school/lms/doctype/lms_quiz/lms_quiz.json rename to lms/lms/doctype/lms_quiz/lms_quiz.json diff --git a/school/lms/doctype/lms_quiz/lms_quiz.py b/lms/lms/doctype/lms_quiz/lms_quiz.py similarity index 100% rename from school/lms/doctype/lms_quiz/lms_quiz.py rename to lms/lms/doctype/lms_quiz/lms_quiz.py diff --git a/school/lms/doctype/lms_quiz/test_lms_quiz.py b/lms/lms/doctype/lms_quiz/test_lms_quiz.py similarity index 100% rename from school/lms/doctype/lms_quiz/test_lms_quiz.py rename to lms/lms/doctype/lms_quiz/test_lms_quiz.py diff --git a/school/event_management/doctype/attendee/__init__.py b/lms/lms/doctype/lms_quiz_question/__init__.py similarity index 100% rename from school/event_management/doctype/attendee/__init__.py rename to lms/lms/doctype/lms_quiz_question/__init__.py diff --git a/school/lms/doctype/lms_quiz_question/lms_quiz_question.json b/lms/lms/doctype/lms_quiz_question/lms_quiz_question.json similarity index 100% rename from school/lms/doctype/lms_quiz_question/lms_quiz_question.json rename to lms/lms/doctype/lms_quiz_question/lms_quiz_question.json diff --git a/school/lms/doctype/lms_quiz_question/lms_quiz_question.py b/lms/lms/doctype/lms_quiz_question/lms_quiz_question.py similarity index 100% rename from school/lms/doctype/lms_quiz_question/lms_quiz_question.py rename to lms/lms/doctype/lms_quiz_question/lms_quiz_question.py diff --git a/school/event_management/doctype/event_details/__init__.py b/lms/lms/doctype/lms_quiz_result/__init__.py similarity index 100% rename from school/event_management/doctype/event_details/__init__.py rename to lms/lms/doctype/lms_quiz_result/__init__.py diff --git a/school/lms/doctype/lms_quiz_result/lms_quiz_result.json b/lms/lms/doctype/lms_quiz_result/lms_quiz_result.json similarity index 100% rename from school/lms/doctype/lms_quiz_result/lms_quiz_result.json rename to lms/lms/doctype/lms_quiz_result/lms_quiz_result.json diff --git a/school/lms/doctype/lms_quiz_result/lms_quiz_result.py b/lms/lms/doctype/lms_quiz_result/lms_quiz_result.py similarity index 100% rename from school/lms/doctype/lms_quiz_result/lms_quiz_result.py rename to lms/lms/doctype/lms_quiz_result/lms_quiz_result.py diff --git a/school/event_management/doctype/event_ticket/__init__.py b/lms/lms/doctype/lms_quiz_submission/__init__.py similarity index 100% rename from school/event_management/doctype/event_ticket/__init__.py rename to lms/lms/doctype/lms_quiz_submission/__init__.py diff --git a/school/lms/doctype/lms_quiz_submission/lms_quiz_submission.js b/lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.js similarity index 100% rename from school/lms/doctype/lms_quiz_submission/lms_quiz_submission.js rename to lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.js diff --git a/school/lms/doctype/lms_quiz_submission/lms_quiz_submission.json b/lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.json similarity index 100% rename from school/lms/doctype/lms_quiz_submission/lms_quiz_submission.json rename to lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.json diff --git a/school/lms/doctype/lms_quiz_submission/lms_quiz_submission.py b/lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.py similarity index 100% rename from school/lms/doctype/lms_quiz_submission/lms_quiz_submission.py rename to lms/lms/doctype/lms_quiz_submission/lms_quiz_submission.py diff --git a/school/lms/doctype/lms_quiz_submission/test_lms_quiz_submission.py b/lms/lms/doctype/lms_quiz_submission/test_lms_quiz_submission.py similarity index 100% rename from school/lms/doctype/lms_quiz_submission/test_lms_quiz_submission.py rename to lms/lms/doctype/lms_quiz_submission/test_lms_quiz_submission.py diff --git a/school/lms/doctype/lms_section/lms_section.py b/lms/lms/doctype/lms_section/lms_section.py similarity index 100% rename from school/lms/doctype/lms_section/lms_section.py rename to lms/lms/doctype/lms_section/lms_section.py diff --git a/school/event_management/doctype/exhibitor/__init__.py b/lms/lms/doctype/lms_settings/__init__.py similarity index 100% rename from school/event_management/doctype/exhibitor/__init__.py rename to lms/lms/doctype/lms_settings/__init__.py diff --git a/school/lms/doctype/lms_settings/lms_settings.js b/lms/lms/doctype/lms_settings/lms_settings.js similarity index 100% rename from school/lms/doctype/lms_settings/lms_settings.js rename to lms/lms/doctype/lms_settings/lms_settings.js diff --git a/school/lms/doctype/lms_settings/lms_settings.json b/lms/lms/doctype/lms_settings/lms_settings.json similarity index 100% rename from school/lms/doctype/lms_settings/lms_settings.json rename to lms/lms/doctype/lms_settings/lms_settings.json diff --git a/school/lms/doctype/lms_settings/lms_settings.py b/lms/lms/doctype/lms_settings/lms_settings.py similarity index 100% rename from school/lms/doctype/lms_settings/lms_settings.py rename to lms/lms/doctype/lms_settings/lms_settings.py diff --git a/school/lms/doctype/lms_settings/test_lms_settings.py b/lms/lms/doctype/lms_settings/test_lms_settings.py similarity index 100% rename from school/lms/doctype/lms_settings/test_lms_settings.py rename to lms/lms/doctype/lms_settings/test_lms_settings.py diff --git a/school/lms/md.py b/lms/lms/md.py similarity index 96% rename from school/lms/md.py rename to lms/lms/md.py index 5acb6322..0ab3ce7e 100644 --- a/school/lms/md.py +++ b/lms/lms/md.py @@ -7,7 +7,7 @@ Macros can be added to the markdown text in the following format. These macros will be rendered using a pluggable mechanism. -Apps can provide a hook school_markdown_macro_renderers, a +Apps can provide a hook lms_markdown_macro_renderers, a dictionary mapping the macro name to the function that to render that macro. The function will get the argument passed to the macro as argument. @@ -59,7 +59,7 @@ def _remove_quotes(value): def get_macro_registry(): - d = frappe.get_hooks("school_markdown_macro_renderers") or {} + d = frappe.get_hooks("lms_markdown_macro_renderers") or {} return {name: frappe.get_attr(klass[0]) for name, klass in d.items()} def render_macro(macro_name, macro_argument): diff --git a/school/lms/models.py b/lms/lms/models.py similarity index 100% rename from school/lms/models.py rename to lms/lms/models.py diff --git a/school/event_management/doctype/host/__init__.py b/lms/lms/report/__init__.py similarity index 100% rename from school/event_management/doctype/host/__init__.py rename to lms/lms/report/__init__.py diff --git a/school/event_management/doctype/speaker/__init__.py b/lms/lms/report/course_progress_summary/__init__.py similarity index 100% rename from school/event_management/doctype/speaker/__init__.py rename to lms/lms/report/course_progress_summary/__init__.py diff --git a/school/lms/report/course_progress_summary/course_progress_summary.js b/lms/lms/report/course_progress_summary/course_progress_summary.js similarity index 100% rename from school/lms/report/course_progress_summary/course_progress_summary.js rename to lms/lms/report/course_progress_summary/course_progress_summary.js diff --git a/school/lms/report/course_progress_summary/course_progress_summary.json b/lms/lms/report/course_progress_summary/course_progress_summary.json similarity index 100% rename from school/lms/report/course_progress_summary/course_progress_summary.json rename to lms/lms/report/course_progress_summary/course_progress_summary.json diff --git a/school/lms/report/course_progress_summary/course_progress_summary.py b/lms/lms/report/course_progress_summary/course_progress_summary.py similarity index 100% rename from school/lms/report/course_progress_summary/course_progress_summary.py rename to lms/lms/report/course_progress_summary/course_progress_summary.py diff --git a/school/lms/test_utils.py b/lms/lms/test_utils.py similarity index 100% rename from school/lms/test_utils.py rename to lms/lms/test_utils.py diff --git a/school/lms/utils.py b/lms/lms/utils.py similarity index 100% rename from school/lms/utils.py rename to lms/lms/utils.py diff --git a/school/event_management/doctype/talk/__init__.py b/lms/lms/web_form/__init__.py similarity index 100% rename from school/event_management/doctype/talk/__init__.py rename to lms/lms/web_form/__init__.py diff --git a/school/event_management/web_form/__init__.py b/lms/lms/web_form/add_a_new_batch/__init__.py similarity index 100% rename from school/event_management/web_form/__init__.py rename to lms/lms/web_form/add_a_new_batch/__init__.py diff --git a/school/lms/web_form/add_a_new_batch/add_a_new_batch.js b/lms/lms/web_form/add_a_new_batch/add_a_new_batch.js similarity index 100% rename from school/lms/web_form/add_a_new_batch/add_a_new_batch.js rename to lms/lms/web_form/add_a_new_batch/add_a_new_batch.js diff --git a/school/lms/web_form/add_a_new_batch/add_a_new_batch.json b/lms/lms/web_form/add_a_new_batch/add_a_new_batch.json similarity index 100% rename from school/lms/web_form/add_a_new_batch/add_a_new_batch.json rename to lms/lms/web_form/add_a_new_batch/add_a_new_batch.json diff --git a/school/lms/web_form/add_a_new_batch/add_a_new_batch.py b/lms/lms/web_form/add_a_new_batch/add_a_new_batch.py similarity index 100% rename from school/lms/web_form/add_a_new_batch/add_a_new_batch.py rename to lms/lms/web_form/add_a_new_batch/add_a_new_batch.py diff --git a/school/event_management/web_form/attendee_registration/__init__.py b/lms/lms/web_form/profile/__init__.py similarity index 100% rename from school/event_management/web_form/attendee_registration/__init__.py rename to lms/lms/web_form/profile/__init__.py diff --git a/school/lms/web_form/profile/profile.js b/lms/lms/web_form/profile/profile.js similarity index 100% rename from school/lms/web_form/profile/profile.js rename to lms/lms/web_form/profile/profile.js diff --git a/school/lms/web_form/profile/profile.json b/lms/lms/web_form/profile/profile.json similarity index 100% rename from school/lms/web_form/profile/profile.json rename to lms/lms/web_form/profile/profile.json diff --git a/school/lms/web_form/profile/profile.py b/lms/lms/web_form/profile/profile.py similarity index 100% rename from school/lms/web_form/profile/profile.py rename to lms/lms/web_form/profile/profile.py diff --git a/school/event_management/web_form/exhibitor_registration/__init__.py b/lms/lms/web_template/__init__.py similarity index 100% rename from school/event_management/web_form/exhibitor_registration/__init__.py rename to lms/lms/web_template/__init__.py diff --git a/school/event_management/web_form/purpose_a_talk/__init__.py b/lms/lms/web_template/course_cards/__init__.py similarity index 100% rename from school/event_management/web_form/purpose_a_talk/__init__.py rename to lms/lms/web_template/course_cards/__init__.py diff --git a/school/lms/web_template/course_cards/course_cards.html b/lms/lms/web_template/course_cards/course_cards.html similarity index 88% rename from school/lms/web_template/course_cards/course_cards.html rename to lms/lms/web_template/course_cards/course_cards.html index e65a8efb..aa329438 100644 --- a/school/lms/web_template/course_cards/course_cards.html +++ b/lms/lms/web_template/course_cards/course_cards.html @@ -10,6 +10,6 @@
Explore More
- + diff --git a/school/lms/web_template/course_cards/course_cards.json b/lms/lms/web_template/course_cards/course_cards.json similarity index 100% rename from school/lms/web_template/course_cards/course_cards.json rename to lms/lms/web_template/course_cards/course_cards.json diff --git a/school/event_management/web_form/speaker_registration/__init__.py b/lms/lms/web_template/courses_enrolled/__init__.py similarity index 100% rename from school/event_management/web_form/speaker_registration/__init__.py rename to lms/lms/web_template/courses_enrolled/__init__.py diff --git a/school/lms/web_template/courses_enrolled/courses_enrolled.html b/lms/lms/web_template/courses_enrolled/courses_enrolled.html similarity index 100% rename from school/lms/web_template/courses_enrolled/courses_enrolled.html rename to lms/lms/web_template/courses_enrolled/courses_enrolled.html diff --git a/school/lms/web_template/courses_enrolled/courses_enrolled.json b/lms/lms/web_template/courses_enrolled/courses_enrolled.json similarity index 100% rename from school/lms/web_template/courses_enrolled/courses_enrolled.json rename to lms/lms/web_template/courses_enrolled/courses_enrolled.json diff --git a/school/event_management/web_template/__init__.py b/lms/lms/web_template/courses_mentored/__init__.py similarity index 100% rename from school/event_management/web_template/__init__.py rename to lms/lms/web_template/courses_mentored/__init__.py diff --git a/school/lms/web_template/courses_mentored/courses_mentored.html b/lms/lms/web_template/courses_mentored/courses_mentored.html similarity index 100% rename from school/lms/web_template/courses_mentored/courses_mentored.html rename to lms/lms/web_template/courses_mentored/courses_mentored.html diff --git a/school/lms/web_template/courses_mentored/courses_mentored.json b/lms/lms/web_template/courses_mentored/courses_mentored.json similarity index 100% rename from school/lms/web_template/courses_mentored/courses_mentored.json rename to lms/lms/web_template/courses_mentored/courses_mentored.json diff --git a/school/community/widgets/Avatar.html b/lms/lms/widgets/Avatar.html similarity index 100% rename from school/community/widgets/Avatar.html rename to lms/lms/widgets/Avatar.html diff --git a/school/lms/widgets/BreadCrumb.html b/lms/lms/widgets/BreadCrumb.html similarity index 71% rename from school/lms/widgets/BreadCrumb.html rename to lms/lms/widgets/BreadCrumb.html index e9b849b6..ca7a4747 100644 --- a/school/lms/widgets/BreadCrumb.html +++ b/lms/lms/widgets/BreadCrumb.html @@ -1,10 +1,10 @@ {% else %} -
{{ _("Completed") +
{{ _("Completed") }}
{% endif %} {% endif %} @@ -53,13 +53,13 @@ {% if course.get_students() | length %} - + {{ course.get_students() | length }} {% endif %} {% set avg_rating = course.get_average_rating() %} {% if avg_rating %} - + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} {% endif %} @@ -138,7 +138,7 @@ e.preventDefault(); course = $(e.currentTarget).attr("data-course"); frappe.call({ - method: "school.lms.doctype.lms_certification.lms_certification.create_certificate", + method: "lms.lms.doctype.lms_certification.lms_certification.create_certificate", args: { "course": course }, diff --git a/school/lms/widgets/CourseOutline.html b/lms/lms/widgets/CourseOutline.html similarity index 100% rename from school/lms/widgets/CourseOutline.html rename to lms/lms/widgets/CourseOutline.html diff --git a/school/lms/widgets/CourseTeaser.html b/lms/lms/widgets/CourseTeaser.html similarity index 100% rename from school/lms/widgets/CourseTeaser.html rename to lms/lms/widgets/CourseTeaser.html diff --git a/school/lms/widgets/Exercise.html b/lms/lms/widgets/Exercise.html similarity index 100% rename from school/lms/widgets/Exercise.html rename to lms/lms/widgets/Exercise.html diff --git a/school/lms/widgets/HelloWorld.html b/lms/lms/widgets/HelloWorld.html similarity index 100% rename from school/lms/widgets/HelloWorld.html rename to lms/lms/widgets/HelloWorld.html diff --git a/school/lms/widgets/MemberCard.html b/lms/lms/widgets/MemberCard.html similarity index 100% rename from school/lms/widgets/MemberCard.html rename to lms/lms/widgets/MemberCard.html diff --git a/school/lms/widgets/RequestInvite.html b/lms/lms/widgets/RequestInvite.html similarity index 96% rename from school/lms/widgets/RequestInvite.html rename to lms/lms/widgets/RequestInvite.html index 943dc75f..3da5c6f2 100644 --- a/school/lms/widgets/RequestInvite.html +++ b/lms/lms/widgets/RequestInvite.html @@ -14,7 +14,7 @@ $("#submit-invite-request").click(function () { var invite_email = $("#invite_email").val() frappe.call({ - method: "school.lms.doctype.invite_request.invite_request.create_invite_request", + method: "lms.lms.doctype.invite_request.invite_request.create_invite_request", args: { invite_email: invite_email }, diff --git a/school/lms/widgets/Reviews.html b/lms/lms/widgets/Reviews.html similarity index 100% rename from school/lms/widgets/Reviews.html rename to lms/lms/widgets/Reviews.html diff --git a/school/lms/workspace/school/school.json b/lms/lms/workspace/lms/lms.json similarity index 98% rename from school/lms/workspace/school/school.json rename to lms/lms/workspace/lms/lms.json index e4415c38..9efa29c6 100644 --- a/school/lms/workspace/school/school.json +++ b/lms/lms/workspace/lms/lms.json @@ -18,7 +18,7 @@ "idx": 0, "is_default": 0, "is_standard": 1, - "label": "School", + "label": "LMS", "links": [ { "hidden": 0, @@ -90,7 +90,7 @@ "modified": "2021-10-21 18:18:02.114827", "modified_by": "Administrator", "module": "LMS", - "name": "School", + "name": "LMS", "owner": "Administrator", "parent_page": "", "pin_to_bottom": 0, @@ -127,5 +127,5 @@ "type": "DocType" } ], - "title": "School" -} \ No newline at end of file + "title": "LMS" +} diff --git a/lms/modules.txt b/lms/modules.txt new file mode 100644 index 00000000..c3a3d0c4 --- /dev/null +++ b/lms/modules.txt @@ -0,0 +1 @@ +LMS diff --git a/school/overrides/test_user.py b/lms/overrides/test_user.py similarity index 96% rename from school/overrides/test_user.py rename to lms/overrides/test_user.py index 16080338..db7df985 100644 --- a/school/overrides/test_user.py +++ b/lms/overrides/test_user.py @@ -18,7 +18,7 @@ class TestCustomUser(unittest.TestCase): def test_without_username(self): """ The user in this test has the same first name as the user of the test test_with_basic_username. In such cases frappe makes the username of the second user empty. - The condition in school app should override this and save a username. """ + The condition in lms app should override this and save a username. """ new_user = frappe.get_doc({ "doctype": "User", "email": "test-without-username@example.com", diff --git a/school/overrides/user.py b/lms/overrides/user.py similarity index 100% rename from school/overrides/user.py rename to lms/overrides/user.py diff --git a/school/overrides/web_template.py b/lms/overrides/web_template.py similarity index 92% rename from school/overrides/web_template.py rename to lms/overrides/web_template.py index 0904a212..83b3cae6 100644 --- a/school/overrides/web_template.py +++ b/lms/overrides/web_template.py @@ -1,6 +1,6 @@ import frappe from frappe.website.doctype.web_template.web_template import WebTemplate -from school.widgets import Widgets +from lms.widgets import Widgets import json class CustomWebTemplate(WebTemplate): diff --git a/school/patches.txt b/lms/patches.txt similarity index 100% rename from school/patches.txt rename to lms/patches.txt diff --git a/school/patches/change_name_for_community_members.py b/lms/patches/change_name_for_community_members.py similarity index 100% rename from school/patches/change_name_for_community_members.py rename to lms/patches/change_name_for_community_members.py diff --git a/school/patches/create_mentor_request_email_templates.py b/lms/patches/create_mentor_request_email_templates.py similarity index 95% rename from school/patches/create_mentor_request_email_templates.py rename to lms/patches/create_mentor_request_email_templates.py index 1ac72715..cfdc97af 100644 --- a/school/patches/create_mentor_request_email_templates.py +++ b/lms/patches/create_mentor_request_email_templates.py @@ -4,7 +4,7 @@ from frappe import _ def execute(): frappe.reload_doc("email", "doctype", "email_template") - base_path = frappe.get_app_path("school", "templates", "emails") + base_path = frappe.get_app_path("lms", "templates", "emails") if not frappe.db.exists("Email Template", _('Mentor Request Creation Template')): response = frappe.read_file(os.path.join(base_path, "mentor_request_creation_email.html")) diff --git a/school/patches/replace_member_with_user_in_batch_membership.py b/lms/patches/replace_member_with_user_in_batch_membership.py similarity index 100% rename from school/patches/replace_member_with_user_in_batch_membership.py rename to lms/patches/replace_member_with_user_in_batch_membership.py diff --git a/school/patches/replace_member_with_user_in_course_mentor_mapping.py b/lms/patches/replace_member_with_user_in_course_mentor_mapping.py similarity index 100% rename from school/patches/replace_member_with_user_in_course_mentor_mapping.py rename to lms/patches/replace_member_with_user_in_course_mentor_mapping.py diff --git a/school/patches/replace_member_with_user_in_lms_message.py b/lms/patches/replace_member_with_user_in_lms_message.py similarity index 100% rename from school/patches/replace_member_with_user_in_lms_message.py rename to lms/patches/replace_member_with_user_in_lms_message.py diff --git a/school/patches/replace_member_with_user_in_mentor_request.py b/lms/patches/replace_member_with_user_in_mentor_request.py similarity index 100% rename from school/patches/replace_member_with_user_in_mentor_request.py rename to lms/patches/replace_member_with_user_in_mentor_request.py diff --git a/school/patches/save_abbr_for_community_members.py b/lms/patches/save_abbr_for_community_members.py similarity index 100% rename from school/patches/save_abbr_for_community_members.py rename to lms/patches/save_abbr_for_community_members.py diff --git a/school/patches/set_email_preferences.py b/lms/patches/set_email_preferences.py similarity index 100% rename from school/patches/set_email_preferences.py rename to lms/patches/set_email_preferences.py diff --git a/school/patches/v0_0/add_progress_to_membership.py b/lms/patches/v0_0/add_progress_to_membership.py similarity index 100% rename from school/patches/v0_0/add_progress_to_membership.py rename to lms/patches/v0_0/add_progress_to_membership.py diff --git a/school/patches/v0_0/chapter_lesson_index_table.py b/lms/patches/v0_0/chapter_lesson_index_table.py similarity index 100% rename from school/patches/v0_0/chapter_lesson_index_table.py rename to lms/patches/v0_0/chapter_lesson_index_table.py diff --git a/school/patches/v0_0/course_instructor_update.py b/lms/patches/v0_0/course_instructor_update.py similarity index 100% rename from school/patches/v0_0/course_instructor_update.py rename to lms/patches/v0_0/course_instructor_update.py diff --git a/school/patches/v0_0/modify_installed_apps_list.py b/lms/patches/v0_0/modify_installed_apps_list.py similarity index 100% rename from school/patches/v0_0/modify_installed_apps_list.py rename to lms/patches/v0_0/modify_installed_apps_list.py diff --git a/school/patches/v0_0/rename_chapter_and_lesson_doctype.py b/lms/patches/v0_0/rename_chapter_and_lesson_doctype.py similarity index 100% rename from school/patches/v0_0/rename_chapter_and_lesson_doctype.py rename to lms/patches/v0_0/rename_chapter_and_lesson_doctype.py diff --git a/school/patches/v0_0/rename_chapters_and_lessons_doctype.py b/lms/patches/v0_0/rename_chapters_and_lessons_doctype.py similarity index 100% rename from school/patches/v0_0/rename_chapters_and_lessons_doctype.py rename to lms/patches/v0_0/rename_chapters_and_lessons_doctype.py diff --git a/school/plugins.py b/lms/plugins.py similarity index 98% rename from school/plugins.py rename to lms/plugins.py index 5643f57c..58aab371 100644 --- a/school/plugins.py +++ b/lms/plugins.py @@ -1,6 +1,6 @@ """ The plugins module provides various plugins to change the default -behaviour some parts of the school app. +behaviour some parts of the lms app. A site specify what plugins to use using appropriate entries in the frappe hooks, written in the `hooks.py`. diff --git a/school/public/build.json b/lms/public/build.json similarity index 61% rename from school/public/build.json rename to lms/public/build.json index 32f7e04b..7a9d72d5 100644 --- a/school/public/build.json +++ b/lms/public/build.json @@ -1,5 +1,5 @@ { - "css/school.css": [ + "css/lms.css": [ "public/css/style.css" ] } diff --git a/school/public/css/style.css b/lms/public/css/style.css similarity index 98% rename from school/public/css/style.css rename to lms/public/css/style.css index edf03ef9..108f97b7 100644 --- a/school/public/css/style.css +++ b/lms/public/css/style.css @@ -298,7 +298,7 @@ input[type=checkbox] { } .custom-checkbox>label>input:checked+.empty-checkbox { - background: url(/assets/school/icons/tick.svg); + background: url(/assets/lms/icons/tick.svg); background-repeat: no-repeat; background-position: center center; } @@ -1365,14 +1365,14 @@ pre { } .interactive-arrow { - background-image: url("/assets/school/icons/arrow.svg"); + background-image: url("/assets/lms/icons/arrow.svg"); width: 1.5rem; height: 1.5rem; margin-left: 0.5rem; } .intercative-link:hover .interactive-arrow{ - background-image: url("/assets/school/icons/blue-arrow.svg"); + background-image: url("/assets/lms/icons/blue-arrow.svg"); margin-left: 1.5rem; } @@ -1430,13 +1430,13 @@ pre { } .carousel-control-prev-icon { - background-image: url("/assets/school/icons/slider-arrow-left.svg"); + background-image: url("/assets/lms/icons/slider-arrow-left.svg"); width: 40px; height: 40px; } .carousel-control-next-icon { - background-image: url("/assets/school/icons/slider-arrow-right.svg"); + background-image: url("/assets/lms/icons/slider-arrow-right.svg"); width: 40px; height: 40px; } diff --git a/school/public/dist/css-rtl/community.bundle.IJYJLJRM.css b/lms/public/dist/css-rtl/community.bundle.IJYJLJRM.css similarity index 100% rename from school/public/dist/css-rtl/community.bundle.IJYJLJRM.css rename to lms/public/dist/css-rtl/community.bundle.IJYJLJRM.css diff --git a/school/public/dist/css/community.bundle.5K2BM4R4.css b/lms/public/dist/css/community.bundle.5K2BM4R4.css similarity index 100% rename from school/public/dist/css/community.bundle.5K2BM4R4.css rename to lms/public/dist/css/community.bundle.5K2BM4R4.css diff --git a/school/public/icons/arrow.svg b/lms/public/icons/arrow.svg similarity index 100% rename from school/public/icons/arrow.svg rename to lms/public/icons/arrow.svg diff --git a/school/public/icons/blue-arrow.svg b/lms/public/icons/blue-arrow.svg similarity index 100% rename from school/public/icons/blue-arrow.svg rename to lms/public/icons/blue-arrow.svg diff --git a/school/public/icons/calendar.svg b/lms/public/icons/calendar.svg similarity index 100% rename from school/public/icons/calendar.svg rename to lms/public/icons/calendar.svg diff --git a/school/public/icons/check.svg b/lms/public/icons/check.svg similarity index 100% rename from school/public/icons/check.svg rename to lms/public/icons/check.svg diff --git a/school/public/icons/chevron-right.svg b/lms/public/icons/chevron-right.svg similarity index 100% rename from school/public/icons/chevron-right.svg rename to lms/public/icons/chevron-right.svg diff --git a/school/public/icons/chevron.svg b/lms/public/icons/chevron.svg similarity index 100% rename from school/public/icons/chevron.svg rename to lms/public/icons/chevron.svg diff --git a/school/public/icons/clock.svg b/lms/public/icons/clock.svg similarity index 100% rename from school/public/icons/clock.svg rename to lms/public/icons/clock.svg diff --git a/school/public/icons/down-arrow-white.svg b/lms/public/icons/down-arrow-white.svg similarity index 100% rename from school/public/icons/down-arrow-white.svg rename to lms/public/icons/down-arrow-white.svg diff --git a/school/public/icons/down-arrow.svg b/lms/public/icons/down-arrow.svg similarity index 100% rename from school/public/icons/down-arrow.svg rename to lms/public/icons/down-arrow.svg diff --git a/school/public/icons/github.svg b/lms/public/icons/github.svg similarity index 100% rename from school/public/icons/github.svg rename to lms/public/icons/github.svg diff --git a/school/public/icons/left-arrow.svg b/lms/public/icons/left-arrow.svg similarity index 100% rename from school/public/icons/left-arrow.svg rename to lms/public/icons/left-arrow.svg diff --git a/school/public/icons/like.svg b/lms/public/icons/like.svg similarity index 100% rename from school/public/icons/like.svg rename to lms/public/icons/like.svg diff --git a/school/public/icons/lock.svg b/lms/public/icons/lock.svg similarity index 100% rename from school/public/icons/lock.svg rename to lms/public/icons/lock.svg diff --git a/school/public/icons/medium.svg b/lms/public/icons/medium.svg similarity index 100% rename from school/public/icons/medium.svg rename to lms/public/icons/medium.svg diff --git a/school/public/icons/message.svg b/lms/public/icons/message.svg similarity index 100% rename from school/public/icons/message.svg rename to lms/public/icons/message.svg diff --git a/school/public/icons/minus-circle-green.svg b/lms/public/icons/minus-circle-green.svg similarity index 100% rename from school/public/icons/minus-circle-green.svg rename to lms/public/icons/minus-circle-green.svg diff --git a/school/public/icons/minus-circle.svg b/lms/public/icons/minus-circle.svg similarity index 100% rename from school/public/icons/minus-circle.svg rename to lms/public/icons/minus-circle.svg diff --git a/school/public/icons/play.svg b/lms/public/icons/play.svg similarity index 100% rename from school/public/icons/play.svg rename to lms/public/icons/play.svg diff --git a/school/public/icons/rating-filled.svg b/lms/public/icons/rating-filled.svg similarity index 100% rename from school/public/icons/rating-filled.svg rename to lms/public/icons/rating-filled.svg diff --git a/school/public/icons/rating.svg b/lms/public/icons/rating.svg similarity index 100% rename from school/public/icons/rating.svg rename to lms/public/icons/rating.svg diff --git a/school/public/icons/search.svg b/lms/public/icons/search.svg similarity index 100% rename from school/public/icons/search.svg rename to lms/public/icons/search.svg diff --git a/school/public/icons/side-arrow-white.svg b/lms/public/icons/side-arrow-white.svg similarity index 100% rename from school/public/icons/side-arrow-white.svg rename to lms/public/icons/side-arrow-white.svg diff --git a/school/public/icons/slash.svg b/lms/public/icons/slash.svg similarity index 100% rename from school/public/icons/slash.svg rename to lms/public/icons/slash.svg diff --git a/school/public/icons/slider-arrow-left.svg b/lms/public/icons/slider-arrow-left.svg similarity index 100% rename from school/public/icons/slider-arrow-left.svg rename to lms/public/icons/slider-arrow-left.svg diff --git a/school/public/icons/slider-arrow-right.svg b/lms/public/icons/slider-arrow-right.svg similarity index 100% rename from school/public/icons/slider-arrow-right.svg rename to lms/public/icons/slider-arrow-right.svg diff --git a/school/public/icons/small-add-black.svg b/lms/public/icons/small-add-black.svg similarity index 100% rename from school/public/icons/small-add-black.svg rename to lms/public/icons/small-add-black.svg diff --git a/school/public/icons/small-add.svg b/lms/public/icons/small-add.svg similarity index 100% rename from school/public/icons/small-add.svg rename to lms/public/icons/small-add.svg diff --git a/school/public/icons/tick.svg b/lms/public/icons/tick.svg similarity index 100% rename from school/public/icons/tick.svg rename to lms/public/icons/tick.svg diff --git a/school/public/icons/up-arrow-white.svg b/lms/public/icons/up-arrow-white.svg similarity index 100% rename from school/public/icons/up-arrow-white.svg rename to lms/public/icons/up-arrow-white.svg diff --git a/school/public/icons/user.svg b/lms/public/icons/user.svg similarity index 100% rename from school/public/icons/user.svg rename to lms/public/icons/user.svg diff --git a/school/public/icons/white-arrow.svg b/lms/public/icons/white-arrow.svg similarity index 100% rename from school/public/icons/white-arrow.svg rename to lms/public/icons/white-arrow.svg diff --git a/school/public/icons/white-tick.svg b/lms/public/icons/white-tick.svg similarity index 100% rename from school/public/icons/white-tick.svg rename to lms/public/icons/white-tick.svg diff --git a/school/public/icons/wrong.svg b/lms/public/icons/wrong.svg similarity index 100% rename from school/public/icons/wrong.svg rename to lms/public/icons/wrong.svg diff --git a/school/public/images/Vector.png b/lms/public/images/Vector.png similarity index 100% rename from school/public/images/Vector.png rename to lms/public/images/Vector.png diff --git a/school/public/images/certificate-background.png b/lms/public/images/certificate-background.png similarity index 100% rename from school/public/images/certificate-background.png rename to lms/public/images/certificate-background.png diff --git a/school/public/images/course-home.png b/lms/public/images/course-home.png similarity index 100% rename from school/public/images/course-home.png rename to lms/public/images/course-home.png diff --git a/school/public/images/linkedin.png b/lms/public/images/linkedin.png similarity index 100% rename from school/public/images/linkedin.png rename to lms/public/images/linkedin.png diff --git a/school/public/images/play.png b/lms/public/images/play.png similarity index 100% rename from school/public/images/play.png rename to lms/public/images/play.png diff --git a/school/public/images/profile-banner.png b/lms/public/images/profile-banner.png similarity index 100% rename from school/public/images/profile-banner.png rename to lms/public/images/profile-banner.png diff --git a/school/public/images/wallpaper.png b/lms/public/images/wallpaper.png similarity index 100% rename from school/public/images/wallpaper.png rename to lms/public/images/wallpaper.png diff --git a/school/public/js/html2canvas.js b/lms/public/js/html2canvas.js similarity index 100% rename from school/public/js/html2canvas.js rename to lms/public/js/html2canvas.js diff --git a/school/public/js/livecode-canvas.js b/lms/public/js/livecode-canvas.js similarity index 100% rename from school/public/js/livecode-canvas.js rename to lms/public/js/livecode-canvas.js diff --git a/school/public/js/profile.js b/lms/public/js/profile.js similarity index 100% rename from school/public/js/profile.js rename to lms/public/js/profile.js diff --git a/school/public/js/website.bundle.js b/lms/public/js/website.bundle.js similarity index 100% rename from school/public/js/website.bundle.js rename to lms/public/js/website.bundle.js diff --git a/school/query.py b/lms/query.py similarity index 100% rename from school/query.py rename to lms/query.py diff --git a/school/routing.py b/lms/routing.py similarity index 100% rename from school/routing.py rename to lms/routing.py diff --git a/school/event_management/web_template/exhibitor_section/__init__.py b/lms/templates/__init__.py similarity index 100% rename from school/event_management/web_template/exhibitor_section/__init__.py rename to lms/templates/__init__.py diff --git a/school/templates/certificate.html b/lms/templates/certificate.html similarity index 95% rename from school/templates/certificate.html rename to lms/templates/certificate.html index 86f87de5..ac9bbc7e 100644 --- a/school/templates/certificate.html +++ b/lms/templates/certificate.html @@ -46,4 +46,4 @@
- + diff --git a/school/templates/course_list.html b/lms/templates/course_list.html similarity index 100% rename from school/templates/course_list.html rename to lms/templates/course_list.html diff --git a/school/templates/emails/community_course_membership.html b/lms/templates/emails/community_course_membership.html similarity index 100% rename from school/templates/emails/community_course_membership.html rename to lms/templates/emails/community_course_membership.html diff --git a/school/templates/emails/lms_course_interest.html b/lms/templates/emails/lms_course_interest.html similarity index 100% rename from school/templates/emails/lms_course_interest.html rename to lms/templates/emails/lms_course_interest.html diff --git a/school/templates/emails/lms_daily_digest.html b/lms/templates/emails/lms_daily_digest.html similarity index 100% rename from school/templates/emails/lms_daily_digest.html rename to lms/templates/emails/lms_daily_digest.html diff --git a/school/templates/emails/lms_invite_request_approved.html b/lms/templates/emails/lms_invite_request_approved.html similarity index 100% rename from school/templates/emails/lms_invite_request_approved.html rename to lms/templates/emails/lms_invite_request_approved.html diff --git a/school/templates/emails/lms_message.html b/lms/templates/emails/lms_message.html similarity index 100% rename from school/templates/emails/lms_message.html rename to lms/templates/emails/lms_message.html diff --git a/school/templates/emails/mentor_request_creation_email.html b/lms/templates/emails/mentor_request_creation_email.html similarity index 100% rename from school/templates/emails/mentor_request_creation_email.html rename to lms/templates/emails/mentor_request_creation_email.html diff --git a/school/templates/emails/mentor_request_status_update_email.html b/lms/templates/emails/mentor_request_status_update_email.html similarity index 100% rename from school/templates/emails/mentor_request_status_update_email.html rename to lms/templates/emails/mentor_request_status_update_email.html diff --git a/school/templates/exercise.html b/lms/templates/exercise.html similarity index 100% rename from school/templates/exercise.html rename to lms/templates/exercise.html diff --git a/school/templates/livecode/extension_footer.html b/lms/templates/livecode/extension_footer.html similarity index 98% rename from school/templates/livecode/extension_footer.html rename to lms/templates/livecode/extension_footer.html index 19fbac1b..10ec0e0f 100644 --- a/school/templates/livecode/extension_footer.html +++ b/lms/templates/livecode/extension_footer.html @@ -104,7 +104,7 @@ var name = $(e).data("name"); let code = editor.codemirror.doc.getValue(); - frappe.call("school.lms.api.submit_solution", { + frappe.call("lms.lms.api.submit_solution", { "exercise": name, "code": code }).then(r => { diff --git a/school/templates/livecode/extension_header.html b/lms/templates/livecode/extension_header.html similarity index 100% rename from school/templates/livecode/extension_header.html rename to lms/templates/livecode/extension_header.html diff --git a/school/event_management/web_template/host_section/__init__.py b/lms/templates/pages/__init__.py similarity index 100% rename from school/event_management/web_template/host_section/__init__.py rename to lms/templates/pages/__init__.py diff --git a/school/templates/quiz.html b/lms/templates/quiz.html similarity index 100% rename from school/templates/quiz.html rename to lms/templates/quiz.html diff --git a/school/templates/search_course/search_course.html b/lms/templates/search_course/search_course.html similarity index 90% rename from school/templates/search_course/search_course.html rename to lms/templates/search_course/search_course.html index fd736d73..66150c4c 100644 --- a/school/templates/search_course/search_course.html +++ b/lms/templates/search_course/search_course.html @@ -11,5 +11,5 @@
{{ _("Try some other keyword or explore our list of courses.") }}
- + {% endif %} diff --git a/school/templates/search_course/search_course.js b/lms/templates/search_course/search_course.js similarity index 96% rename from school/templates/search_course/search_course.js rename to lms/templates/search_course/search_course.js index 0126f8e9..0fae9540 100644 --- a/school/templates/search_course/search_course.js +++ b/lms/templates/search_course/search_course.js @@ -25,7 +25,7 @@ const search_course = (e) => { } frappe.call({ - method: "school.lms.doctype.lms_course.lms_course.search_course", + method: "lms.lms.doctype.lms_course.lms_course.search_course", args: { "text": input }, diff --git a/school/test_widgets.py b/lms/test_widgets.py similarity index 100% rename from school/test_widgets.py rename to lms/test_widgets.py diff --git a/school/widgets.py b/lms/widgets.py similarity index 98% rename from school/widgets.py rename to lms/widgets.py index 99ed1829..fbf65e36 100644 --- a/school/widgets.py +++ b/lms/widgets.py @@ -14,8 +14,7 @@ from frappe.utils.jinja import get_jenv # When {{widgets.SomeWidget()}} is called, it looks for # widgets/SomeWidgets.html in each of these modules. MODULES = [ - "lms", - "community" + "lms" ] def update_website_context(context): diff --git a/school/event_management/web_template/speaker_section/__init__.py b/lms/www/__init__.py similarity index 100% rename from school/event_management/web_template/speaker_section/__init__.py rename to lms/www/__init__.py diff --git a/school/event_management/web_template/talk_section/__init__.py b/lms/www/__pycache__/__init__.py similarity index 100% rename from school/event_management/web_template/talk_section/__init__.py rename to lms/www/__pycache__/__init__.py diff --git a/school/hackathon/__init__.py b/lms/www/batch/__init__.py similarity index 100% rename from school/hackathon/__init__.py rename to lms/www/batch/__init__.py diff --git a/school/hackathon/doctype/__init__.py b/lms/www/batch/__pycache__/__init__.py similarity index 100% rename from school/hackathon/doctype/__init__.py rename to lms/www/batch/__pycache__/__init__.py diff --git a/school/www/batch/join.html b/lms/www/batch/join.html similarity index 95% rename from school/www/batch/join.html rename to lms/www/batch/join.html index e1c9f77d..0a839709 100644 --- a/school/www/batch/join.html +++ b/lms/www/batch/join.html @@ -49,7 +49,7 @@ frappe.ready(() => { $("#confirm").click((e) => { frappe.call({ - "method": "school.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + "method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", "args": { "batch": {{ batch.name }}, "course": {{ batch.course }} diff --git a/school/www/batch/join.py b/lms/www/batch/join.py similarity index 100% rename from school/www/batch/join.py rename to lms/www/batch/join.py diff --git a/school/www/batch/learn.html b/lms/www/batch/learn.html similarity index 97% rename from school/www/batch/learn.html rename to lms/www/batch/learn.html index 93e1a2a4..930929f0 100644 --- a/school/www/batch/learn.html +++ b/lms/www/batch/learn.html @@ -71,7 +71,7 @@
{% if prev_url %} {% endif %} @@ -99,7 +99,7 @@ {% if course.enable_certification %}
diff --git a/school/www/batch/learn.js b/lms/www/batch/learn.js similarity index 95% rename from school/www/batch/learn.js rename to lms/www/batch/learn.js index c64f8510..61b31341 100644 --- a/school/www/batch/learn.js +++ b/lms/www/batch/learn.js @@ -40,7 +40,7 @@ frappe.ready(() => { var save_current_lesson = () => { if ($(".title").hasClass("is-member")) { - frappe.call("school.lms.api.save_current_lesson", { + frappe.call("lms.lms.api.save_current_lesson", { course_name: $(".title").attr("data-course"), lesson_name: $(".title").attr("data-lesson") }) @@ -86,7 +86,7 @@ var mark_progress = (e) => { if (status != current_status) { frappe.call({ - method: "school.lms.doctype.course_lesson.course_lesson.save_progress", + method: "lms.lms.doctype.course_lesson.course_lesson.save_progress", args: { lesson: $(".title").attr("data-lesson"), course: $(".title").attr("data-course"), @@ -137,7 +137,7 @@ var quiz_summary = (e) => { var total_questions = $(".question").length; frappe.call({ - method: "school.lms.doctype.lms_quiz.lms_quiz.quiz_summary", + method: "lms.lms.doctype.lms_quiz.lms_quiz.quiz_summary", args: { "quiz": quiz_name, "results": localStorage.getItem(quiz_name) @@ -204,7 +204,7 @@ var parse_options = () => { var add_icon = (element, icon) => { var label = $(element).parent().find(".label-area p").text(); - $(element).parent().empty().html(` ${label}`); + $(element).parent().empty().html(` ${label}`); } var add_to_local_storage = (quiz_name, current_index, answer, is_correct) => { @@ -222,7 +222,7 @@ var create_certificate = (e) => { e.preventDefault(); course = $(".title").attr("data-course"); frappe.call({ - method: "school.lms.doctype.lms_certification.lms_certification.create_certificate", + method: "lms.lms.doctype.lms_certification.lms_certification.create_certificate", args: { "course": course }, diff --git a/school/www/batch/learn.py b/lms/www/batch/learn.py similarity index 92% rename from school/www/batch/learn.py rename to lms/www/batch/learn.py index c16b11ab..1a01ebc4 100644 --- a/school/www/batch/learn.py +++ b/lms/www/batch/learn.py @@ -3,7 +3,7 @@ import frappe from . import utils from frappe.utils import cstr -from school.www import batch +from lms.www import batch def get_context(context): utils.get_common_context(context) @@ -53,7 +53,7 @@ def get_lesson_index(course, batch, user): return lesson and course.get_lesson_index(lesson) def get_page_extensions(): - default_value = ["school.plugins.PageExtension"] - classnames = frappe.get_hooks("school_lesson_page_extensions") or default_value + default_value = ["lms.plugins.PageExtension"] + classnames = frappe.get_hooks("lms_lesson_page_extensions") or default_value extensions = [frappe.get_attr(name)() for name in classnames] return extensions diff --git a/school/www/batch/utils.py b/lms/www/batch/utils.py similarity index 96% rename from school/www/batch/utils.py rename to lms/www/batch/utils.py index 5e3019c6..6f31f921 100644 --- a/school/www/batch/utils.py +++ b/lms/www/batch/utils.py @@ -1,5 +1,5 @@ import frappe -from school.lms.models import Course +from lms.lms.models import Course def get_common_context(context): context.no_cache = 1 diff --git a/school/hackathon/doctype/community_hackathon/__init__.py b/lms/www/courses/__init__.py similarity index 100% rename from school/hackathon/doctype/community_hackathon/__init__.py rename to lms/www/courses/__init__.py diff --git a/school/hackathon/doctype/community_project/__init__.py b/lms/www/courses/__pycache__/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project/__init__.py rename to lms/www/courses/__pycache__/__init__.py diff --git a/school/www/courses/certificate.html b/lms/www/courses/certificate.html similarity index 86% rename from school/www/courses/certificate.html rename to lms/www/courses/certificate.html index 3d1ceba0..0013bb96 100644 --- a/school/www/courses/certificate.html +++ b/lms/www/courses/certificate.html @@ -9,7 +9,7 @@ @@ -19,7 +19,7 @@ data-certificate-name="{{ student.full_name }} - {{ course.title }}">Export
{% endif %} - {% include "school/templates/certificate.html" %} + {% include "lms/templates/certificate.html" %} {% endblock %} diff --git a/school/www/courses/certificate.js b/lms/www/courses/certificate.js similarity index 100% rename from school/www/courses/certificate.js rename to lms/www/courses/certificate.js diff --git a/school/www/courses/certificate.py b/lms/www/courses/certificate.py similarity index 100% rename from school/www/courses/certificate.py rename to lms/www/courses/certificate.py diff --git a/school/www/courses/course.html b/lms/www/courses/course.html similarity index 94% rename from school/www/courses/course.html rename to lms/www/courses/course.html index 364fdeec..6e3f7332 100644 --- a/school/www/courses/course.html +++ b/lms/www/courses/course.html @@ -46,7 +46,7 @@ {% if not course.disable_self_learning and not membership and not course.upcoming %}
Start Learning - +
{% endif %} {% if membership %} @@ -55,7 +55,7 @@ else '1.1' %} - Continue Learning + Continue Learning {% endif %} {% if course.upcoming and not is_user_interested %} @@ -67,7 +67,7 @@ {% if course.video_link %}
Watch Video Preview - +
{% endif %} @@ -171,7 +171,7 @@
View all mentors + src="/assets/lms/icons/down-arrow.svg" />
@@ -199,13 +199,13 @@
{% if course.get_students() | length %}
- + {{ course.get_students() | length }} Enrolled
{% endif %} {% if avg_rating %}
- + {{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} Rating
{% endif %} diff --git a/school/www/courses/course.js b/lms/www/courses/course.js similarity index 90% rename from school/www/courses/course.js rename to lms/www/courses/course.js index 4a5c3c81..c7d98c58 100644 --- a/school/www/courses/course.js +++ b/lms/www/courses/course.js @@ -45,7 +45,7 @@ frappe.ready(() => { var check_mentor_request = () => { frappe.call({ - 'method': 'school.lms.doctype.lms_mentor_request.lms_mentor_request.has_requested', + 'method': 'lms.lms.doctype.lms_mentor_request.lms_mentor_request.has_requested', 'args': { course: decodeURIComponent($("#course-title").attr("data-course")), }, @@ -84,7 +84,7 @@ var create_mentor_request = (e) => { return; } frappe.call({ - "method": "school.lms.doctype.lms_mentor_request.lms_mentor_request.create_request", + "method": "lms.lms.doctype.lms_mentor_request.lms_mentor_request.create_request", "args": { "course": decodeURIComponent($(e.currentTarget).attr("data-course")) }, @@ -100,7 +100,7 @@ var create_mentor_request = (e) => { var cancel_mentor_request = (e) => { e.preventDefault() frappe.call({ - "method": "school.lms.doctype.lms_mentor_request.lms_mentor_request.cancel_request", + "method": "lms.lms.doctype.lms_mentor_request.lms_mentor_request.cancel_request", "args": { "course": decodeURIComponent($(e.currentTarget).attr("data-course")) }, @@ -123,7 +123,7 @@ var join_course = (e) => { var batch = $(e.currentTarget).attr("data-batch"); batch = batch ? decodeURIComponent(batch) : ""; frappe.call({ - "method": "school.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", + "method": "lms.lms.doctype.lms_batch_membership.lms_batch_membership.create_membership", "args": { "batch": batch ? batch : "", "course": course @@ -183,7 +183,7 @@ var submit_review = (e) => { return; } frappe.call({ - method: "school.lms.doctype.lms_course_review.lms_course_review.submit_review", + method: "lms.lms.doctype.lms_course_review.lms_course_review.submit_review", args: { "rating": rating, "review": review, @@ -210,7 +210,7 @@ var notify_user = (e) => { } frappe.call({ - method: "school.lms.doctype.lms_course_interest.lms_course_interest.capture_interest", + method: "lms.lms.doctype.lms_course_interest.lms_course_interest.capture_interest", args: { "course": course }, diff --git a/school/www/courses/course.py b/lms/www/courses/course.py similarity index 100% rename from school/www/courses/course.py rename to lms/www/courses/course.py diff --git a/school/www/courses/index.html b/lms/www/courses/index.html similarity index 77% rename from school/www/courses/index.html rename to lms/www/courses/index.html index 78843b7e..9cd3a0ad 100644 --- a/school/www/courses/index.html +++ b/lms/www/courses/index.html @@ -10,18 +10,18 @@
- {% include "school/templates/search_course/search_course.html" %} + {% include "lms/templates/search_course/search_course.html" %}
{% set title = _("Live Courses") %} {% set courses = live_courses %} {% set classes = "live-courses" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %} {% set title = _("Upcoming Courses") %} {% set courses = upcoming_courses %} {% set classes = "upcoming-courses mt-10" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %}
diff --git a/school/www/courses/index.py b/lms/www/courses/index.py similarity index 100% rename from school/www/courses/index.py rename to lms/www/courses/index.py diff --git a/school/www/courses/utils.py b/lms/www/courses/utils.py similarity index 100% rename from school/www/courses/utils.py rename to lms/www/courses/utils.py diff --git a/school/hackathon/doctype/community_project_evaluation/__init__.py b/lms/www/hackathons/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/__init__.py rename to lms/www/hackathons/__init__.py diff --git a/school/hackathon/doctype/community_project_like/__init__.py b/lms/www/hackathons/__pycache__/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_like/__init__.py rename to lms/www/hackathons/__pycache__/__init__.py diff --git a/school/www/hackathons/hackathon.html b/lms/www/hackathons/hackathon.html similarity index 100% rename from school/www/hackathons/hackathon.html rename to lms/www/hackathons/hackathon.html diff --git a/school/www/hackathons/hackathon.py b/lms/www/hackathons/hackathon.py similarity index 100% rename from school/www/hackathons/hackathon.py rename to lms/www/hackathons/hackathon.py diff --git a/school/www/hackathons/index.html b/lms/www/hackathons/index.html similarity index 100% rename from school/www/hackathons/index.html rename to lms/www/hackathons/index.html diff --git a/school/www/hackathons/index.py b/lms/www/hackathons/index.py similarity index 100% rename from school/www/hackathons/index.py rename to lms/www/hackathons/index.py diff --git a/school/hackathon/doctype/community_project_member/__init__.py b/lms/www/hackathons/macros/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_member/__init__.py rename to lms/www/hackathons/macros/__init__.py diff --git a/school/www/hackathons/macros/card.html b/lms/www/hackathons/macros/card.html similarity index 100% rename from school/www/hackathons/macros/card.html rename to lms/www/hackathons/macros/card.html diff --git a/school/www/hackathons/macros/hero.html b/lms/www/hackathons/macros/hero.html similarity index 100% rename from school/www/hackathons/macros/hero.html rename to lms/www/hackathons/macros/hero.html diff --git a/school/www/hackathons/macros/navbar.html b/lms/www/hackathons/macros/navbar.html similarity index 100% rename from school/www/hackathons/macros/navbar.html rename to lms/www/hackathons/macros/navbar.html diff --git a/school/www/hackathons/macros/user.html b/lms/www/hackathons/macros/user.html similarity index 100% rename from school/www/hackathons/macros/user.html rename to lms/www/hackathons/macros/user.html diff --git a/school/www/hackathons/project.html b/lms/www/hackathons/project.html similarity index 100% rename from school/www/hackathons/project.html rename to lms/www/hackathons/project.html diff --git a/school/www/hackathons/project.js b/lms/www/hackathons/project.js similarity index 61% rename from school/www/hackathons/project.js rename to lms/www/hackathons/project.js index 82a41089..8392ddab 100644 --- a/school/www/hackathons/project.js +++ b/lms/www/hackathons/project.js @@ -13,7 +13,7 @@ var set_likes = function (liked, likes) { // set initial likes frappe.ready(() => { - frappe.call('school.www.hackathons.project.like', { project: get_url_arg().get("project"), initial: true }, (data) => { + frappe.call('lms.www.hackathons.project.like', { project: get_url_arg().get("project"), initial: true }, (data) => { set_likes(data.message.action == "Liked", data.message.likes) }) }) @@ -23,26 +23,26 @@ var get_url_arg = () => { } // like - unlike $('.btn-like').on('click', (e) => { - frappe.call('school.www.hackathons.project.like', { project: get_url_arg().get("project") }, (data) => { + frappe.call('lms.www.hackathons.project.like', { project: get_url_arg().get("project") }, (data) => { set_likes(data.message.action == "Liked", data.message.likes); }); }); // accept / reject $('.btn-accept').on('click', (e) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(e.target).attr('data-request-id'), action: 'Accept' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(e.target).attr('data-request-id'), action: 'Accept' }, (data) => { window.location.reload(); }); }); $('.btn-reject').on('click', (ev) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { window.location.reload(); }); }); $('.btn-leave').on('click', (ev) => { - frappe.call('school.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { + frappe.call('lms.www.hackathons.project.join_request', { id: $(ev.target).attr('data-request-id'), action: 'Reject' }, (data) => { window.location.reload(); }); -}); \ No newline at end of file +}); diff --git a/school/www/hackathons/project.py b/lms/www/hackathons/project.py similarity index 100% rename from school/www/hackathons/project.py rename to lms/www/hackathons/project.py diff --git a/school/hackathon/doctype/community_project_update/__init__.py b/lms/www/macros/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_update/__init__.py rename to lms/www/macros/__init__.py diff --git a/school/www/macros/common_macro.html b/lms/www/macros/common_macro.html similarity index 100% rename from school/www/macros/common_macro.html rename to lms/www/macros/common_macro.html diff --git a/school/www/macros/livecode.html b/lms/www/macros/livecode.html similarity index 96% rename from school/www/macros/livecode.html rename to lms/www/macros/livecode.html index 662a0546..5a77fcd0 100644 --- a/school/www/macros/livecode.html +++ b/lms/www/macros/livecode.html @@ -74,7 +74,7 @@ if (!frappe.sys_defaults) { - +