diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0546b5a..94e28ca5 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 --site frappe.local install-app school + run: bench --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/.github/workflows/semantic.yml b/.github/workflows/semantic.yml deleted file mode 100644 index 3978a91f..00000000 --- a/.github/workflows/semantic.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Semantic Pull Request - -on: - push: - branches: [ main ] - pull_request: {} - -jobs: - # This workflow contains a single job called "build" - semantic: - name: Validate PR title - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - - uses: zeke/semantic-pull-requests@main 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..33b85670 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/community/__init__.py similarity index 100% rename from school/community/__init__.py rename to lms/community/__init__.py diff --git a/school/community/doctype/__init__.py b/lms/community/doctype/__init__.py similarity index 100% rename from school/community/doctype/__init__.py rename to lms/community/doctype/__init__.py diff --git a/school/community/doctype/community_event/__init__.py b/lms/community/doctype/community_event/__init__.py similarity index 100% rename from school/community/doctype/community_event/__init__.py rename to lms/community/doctype/community_event/__init__.py diff --git a/school/community/doctype/community_event/community_event.js b/lms/community/doctype/community_event/community_event.js similarity index 100% rename from school/community/doctype/community_event/community_event.js rename to lms/community/doctype/community_event/community_event.js diff --git a/school/community/doctype/community_event/community_event.json b/lms/community/doctype/community_event/community_event.json similarity index 100% rename from school/community/doctype/community_event/community_event.json rename to lms/community/doctype/community_event/community_event.json diff --git a/school/community/doctype/community_event/community_event.py b/lms/community/doctype/community_event/community_event.py similarity index 100% rename from school/community/doctype/community_event/community_event.py rename to lms/community/doctype/community_event/community_event.py diff --git a/school/community/doctype/community_event/test_community_event.py b/lms/community/doctype/community_event/test_community_event.py similarity index 100% rename from school/community/doctype/community_event/test_community_event.py rename to lms/community/doctype/community_event/test_community_event.py diff --git a/school/community/doctype/community_event_volunteer/__init__.py b/lms/community/doctype/community_event_volunteer/__init__.py similarity index 100% rename from school/community/doctype/community_event_volunteer/__init__.py rename to lms/community/doctype/community_event_volunteer/__init__.py diff --git a/school/community/doctype/community_event_volunteer/community_event_volunteer.json b/lms/community/doctype/community_event_volunteer/community_event_volunteer.json similarity index 100% rename from school/community/doctype/community_event_volunteer/community_event_volunteer.json rename to lms/community/doctype/community_event_volunteer/community_event_volunteer.json diff --git a/school/community/doctype/community_event_volunteer/community_event_volunteer.py b/lms/community/doctype/community_event_volunteer/community_event_volunteer.py similarity index 100% rename from school/community/doctype/community_event_volunteer/community_event_volunteer.py rename to lms/community/doctype/community_event_volunteer/community_event_volunteer.py diff --git a/school/community/doctype/community_participant/__init__.py b/lms/community/doctype/community_participant/__init__.py similarity index 100% rename from school/community/doctype/community_participant/__init__.py rename to lms/community/doctype/community_participant/__init__.py diff --git a/school/community/doctype/community_participant/community_participant.js b/lms/community/doctype/community_participant/community_participant.js similarity index 100% rename from school/community/doctype/community_participant/community_participant.js rename to lms/community/doctype/community_participant/community_participant.js diff --git a/school/community/doctype/community_participant/community_participant.json b/lms/community/doctype/community_participant/community_participant.json similarity index 100% rename from school/community/doctype/community_participant/community_participant.json rename to lms/community/doctype/community_participant/community_participant.json diff --git a/school/community/doctype/community_participant/community_participant.py b/lms/community/doctype/community_participant/community_participant.py similarity index 100% rename from school/community/doctype/community_participant/community_participant.py rename to lms/community/doctype/community_participant/community_participant.py diff --git a/school/community/doctype/community_participant/test_community_participant.py b/lms/community/doctype/community_participant/test_community_participant.py similarity index 100% rename from school/community/doctype/community_participant/test_community_participant.py rename to lms/community/doctype/community_participant/test_community_participant.py diff --git a/school/community/doctype/community_speaker/__init__.py b/lms/community/doctype/community_speaker/__init__.py similarity index 100% rename from school/community/doctype/community_speaker/__init__.py rename to lms/community/doctype/community_speaker/__init__.py diff --git a/school/community/doctype/community_speaker/community_speaker.js b/lms/community/doctype/community_speaker/community_speaker.js similarity index 100% rename from school/community/doctype/community_speaker/community_speaker.js rename to lms/community/doctype/community_speaker/community_speaker.js diff --git a/school/community/doctype/community_speaker/community_speaker.json b/lms/community/doctype/community_speaker/community_speaker.json similarity index 100% rename from school/community/doctype/community_speaker/community_speaker.json rename to lms/community/doctype/community_speaker/community_speaker.json diff --git a/school/community/doctype/community_speaker/community_speaker.py b/lms/community/doctype/community_speaker/community_speaker.py similarity index 100% rename from school/community/doctype/community_speaker/community_speaker.py rename to lms/community/doctype/community_speaker/community_speaker.py diff --git a/school/community/doctype/community_speaker/test_community_speaker.py b/lms/community/doctype/community_speaker/test_community_speaker.py similarity index 100% rename from school/community/doctype/community_speaker/test_community_speaker.py rename to lms/community/doctype/community_speaker/test_community_speaker.py diff --git a/school/community/doctype/community_sponsor/__init__.py b/lms/community/doctype/community_sponsor/__init__.py similarity index 100% rename from school/community/doctype/community_sponsor/__init__.py rename to lms/community/doctype/community_sponsor/__init__.py diff --git a/school/community/doctype/community_sponsor/community_sponsor.js b/lms/community/doctype/community_sponsor/community_sponsor.js similarity index 100% rename from school/community/doctype/community_sponsor/community_sponsor.js rename to lms/community/doctype/community_sponsor/community_sponsor.js diff --git a/school/community/doctype/community_sponsor/community_sponsor.json b/lms/community/doctype/community_sponsor/community_sponsor.json similarity index 100% rename from school/community/doctype/community_sponsor/community_sponsor.json rename to lms/community/doctype/community_sponsor/community_sponsor.json diff --git a/school/community/doctype/community_sponsor/community_sponsor.py b/lms/community/doctype/community_sponsor/community_sponsor.py similarity index 100% rename from school/community/doctype/community_sponsor/community_sponsor.py rename to lms/community/doctype/community_sponsor/community_sponsor.py diff --git a/school/community/doctype/community_sponsor/test_community_sponsor.py b/lms/community/doctype/community_sponsor/test_community_sponsor.py similarity index 100% rename from school/community/doctype/community_sponsor/test_community_sponsor.py rename to lms/community/doctype/community_sponsor/test_community_sponsor.py diff --git a/school/community/doctype/community_talk/__init__.py b/lms/community/doctype/community_talk/__init__.py similarity index 100% rename from school/community/doctype/community_talk/__init__.py rename to lms/community/doctype/community_talk/__init__.py diff --git a/school/community/doctype/community_talk/community_talk.js b/lms/community/doctype/community_talk/community_talk.js similarity index 100% rename from school/community/doctype/community_talk/community_talk.js rename to lms/community/doctype/community_talk/community_talk.js diff --git a/school/community/doctype/community_talk/community_talk.json b/lms/community/doctype/community_talk/community_talk.json similarity index 100% rename from school/community/doctype/community_talk/community_talk.json rename to lms/community/doctype/community_talk/community_talk.json diff --git a/school/community/doctype/community_talk/community_talk.py b/lms/community/doctype/community_talk/community_talk.py similarity index 100% rename from school/community/doctype/community_talk/community_talk.py rename to lms/community/doctype/community_talk/community_talk.py diff --git a/school/community/doctype/community_talk/test_community_talk.py b/lms/community/doctype/community_talk/test_community_talk.py similarity index 100% rename from school/community/doctype/community_talk/test_community_talk.py rename to lms/community/doctype/community_talk/test_community_talk.py diff --git a/school/community/doctype/tshirt_sizes/__init__.py b/lms/community/doctype/tshirt_sizes/__init__.py similarity index 100% rename from school/community/doctype/tshirt_sizes/__init__.py rename to lms/community/doctype/tshirt_sizes/__init__.py diff --git a/school/community/doctype/tshirt_sizes/test_tshirt_sizes.py b/lms/community/doctype/tshirt_sizes/test_tshirt_sizes.py similarity index 100% rename from school/community/doctype/tshirt_sizes/test_tshirt_sizes.py rename to lms/community/doctype/tshirt_sizes/test_tshirt_sizes.py diff --git a/school/community/doctype/tshirt_sizes/tshirt_sizes.js b/lms/community/doctype/tshirt_sizes/tshirt_sizes.js similarity index 100% rename from school/community/doctype/tshirt_sizes/tshirt_sizes.js rename to lms/community/doctype/tshirt_sizes/tshirt_sizes.js diff --git a/school/community/doctype/tshirt_sizes/tshirt_sizes.json b/lms/community/doctype/tshirt_sizes/tshirt_sizes.json similarity index 100% rename from school/community/doctype/tshirt_sizes/tshirt_sizes.json rename to lms/community/doctype/tshirt_sizes/tshirt_sizes.json diff --git a/school/community/doctype/tshirt_sizes/tshirt_sizes.py b/lms/community/doctype/tshirt_sizes/tshirt_sizes.py similarity index 100% rename from school/community/doctype/tshirt_sizes/tshirt_sizes.py rename to lms/community/doctype/tshirt_sizes/tshirt_sizes.py diff --git a/school/community/utils.py b/lms/community/utils.py similarity index 100% rename from school/community/utils.py rename to lms/community/utils.py diff --git a/school/community/web_form/__init__.py b/lms/community/web_form/__init__.py similarity index 100% rename from school/community/web_form/__init__.py rename to lms/community/web_form/__init__.py diff --git a/school/community/web_form/join_request/__init__.py b/lms/community/web_form/join_request/__init__.py similarity index 100% rename from school/community/web_form/join_request/__init__.py rename to lms/community/web_form/join_request/__init__.py diff --git a/school/community/web_form/join_request/join_request.js b/lms/community/web_form/join_request/join_request.js similarity index 100% rename from school/community/web_form/join_request/join_request.js rename to lms/community/web_form/join_request/join_request.js diff --git a/school/community/web_form/join_request/join_request.json b/lms/community/web_form/join_request/join_request.json similarity index 100% rename from school/community/web_form/join_request/join_request.json rename to lms/community/web_form/join_request/join_request.json diff --git a/school/community/web_form/join_request/join_request.py b/lms/community/web_form/join_request/join_request.py similarity index 100% rename from school/community/web_form/join_request/join_request.py rename to lms/community/web_form/join_request/join_request.py diff --git a/school/community/web_form/project_update/__init__.py b/lms/community/web_form/project_update/__init__.py similarity index 100% rename from school/community/web_form/project_update/__init__.py rename to lms/community/web_form/project_update/__init__.py diff --git a/school/community/web_form/project_update/project_update.js b/lms/community/web_form/project_update/project_update.js similarity index 100% rename from school/community/web_form/project_update/project_update.js rename to lms/community/web_form/project_update/project_update.js diff --git a/school/community/web_form/project_update/project_update.json b/lms/community/web_form/project_update/project_update.json similarity index 100% rename from school/community/web_form/project_update/project_update.json rename to lms/community/web_form/project_update/project_update.json diff --git a/school/community/web_form/project_update/project_update.py b/lms/community/web_form/project_update/project_update.py similarity index 100% rename from school/community/web_form/project_update/project_update.py rename to lms/community/web_form/project_update/project_update.py diff --git a/school/community/web_template/__init__.py b/lms/community/web_template/__init__.py similarity index 100% rename from school/community/web_template/__init__.py rename to lms/community/web_template/__init__.py diff --git a/school/community/web_template/multiple_testimonials/__init__.py b/lms/community/web_template/multiple_testimonials/__init__.py similarity index 100% rename from school/community/web_template/multiple_testimonials/__init__.py rename to lms/community/web_template/multiple_testimonials/__init__.py diff --git a/school/community/web_template/multiple_testimonials/multiple_testimonials.html b/lms/community/web_template/multiple_testimonials/multiple_testimonials.html similarity index 100% rename from school/community/web_template/multiple_testimonials/multiple_testimonials.html rename to lms/community/web_template/multiple_testimonials/multiple_testimonials.html diff --git a/school/community/web_template/multiple_testimonials/multiple_testimonials.json b/lms/community/web_template/multiple_testimonials/multiple_testimonials.json similarity index 100% rename from school/community/web_template/multiple_testimonials/multiple_testimonials.json rename to lms/community/web_template/multiple_testimonials/multiple_testimonials.json diff --git a/school/community/widgets/Avatar.html b/lms/community/widgets/Avatar.html similarity index 100% rename from school/community/widgets/Avatar.html rename to lms/community/widgets/Avatar.html diff --git a/school/conference/__init__.py b/lms/conference/__init__.py similarity index 100% rename from school/conference/__init__.py rename to lms/conference/__init__.py diff --git a/school/conference/doctype/__init__.py b/lms/conference/doctype/__init__.py similarity index 100% rename from school/conference/doctype/__init__.py rename to lms/conference/doctype/__init__.py diff --git a/school/conference/doctype/community_conference/__init__.py b/lms/conference/doctype/community_conference/__init__.py similarity index 100% rename from school/conference/doctype/community_conference/__init__.py rename to lms/conference/doctype/community_conference/__init__.py diff --git a/school/conference/doctype/community_conference/community_conference.js b/lms/conference/doctype/community_conference/community_conference.js similarity index 100% rename from school/conference/doctype/community_conference/community_conference.js rename to lms/conference/doctype/community_conference/community_conference.js diff --git a/school/conference/doctype/community_conference/community_conference.json b/lms/conference/doctype/community_conference/community_conference.json similarity index 100% rename from school/conference/doctype/community_conference/community_conference.json rename to lms/conference/doctype/community_conference/community_conference.json diff --git a/school/conference/doctype/community_conference/community_conference.py b/lms/conference/doctype/community_conference/community_conference.py similarity index 100% rename from school/conference/doctype/community_conference/community_conference.py rename to lms/conference/doctype/community_conference/community_conference.py diff --git a/school/conference/doctype/community_conference/test_community_conference.py b/lms/conference/doctype/community_conference/test_community_conference.py similarity index 100% rename from school/conference/doctype/community_conference/test_community_conference.py rename to lms/conference/doctype/community_conference/test_community_conference.py diff --git a/school/conference/doctype/community_conference_participant/__init__.py b/lms/conference/doctype/community_conference_participant/__init__.py similarity index 100% rename from school/conference/doctype/community_conference_participant/__init__.py rename to lms/conference/doctype/community_conference_participant/__init__.py diff --git a/school/conference/doctype/community_conference_participant/community_conference_participant.js b/lms/conference/doctype/community_conference_participant/community_conference_participant.js similarity index 100% rename from school/conference/doctype/community_conference_participant/community_conference_participant.js rename to lms/conference/doctype/community_conference_participant/community_conference_participant.js diff --git a/school/conference/doctype/community_conference_participant/community_conference_participant.json b/lms/conference/doctype/community_conference_participant/community_conference_participant.json similarity index 100% rename from school/conference/doctype/community_conference_participant/community_conference_participant.json rename to lms/conference/doctype/community_conference_participant/community_conference_participant.json diff --git a/school/conference/doctype/community_conference_participant/community_conference_participant.py b/lms/conference/doctype/community_conference_participant/community_conference_participant.py similarity index 100% rename from school/conference/doctype/community_conference_participant/community_conference_participant.py rename to lms/conference/doctype/community_conference_participant/community_conference_participant.py diff --git a/school/conference/doctype/community_conference_participant/test_community_conference_participant.py b/lms/conference/doctype/community_conference_participant/test_community_conference_participant.py similarity index 100% rename from school/conference/doctype/community_conference_participant/test_community_conference_participant.py rename to lms/conference/doctype/community_conference_participant/test_community_conference_participant.py diff --git a/school/conference/doctype/community_conference_request/__init__.py b/lms/conference/doctype/community_conference_request/__init__.py similarity index 100% rename from school/conference/doctype/community_conference_request/__init__.py rename to lms/conference/doctype/community_conference_request/__init__.py diff --git a/school/conference/doctype/community_conference_request/community_conference_request.js b/lms/conference/doctype/community_conference_request/community_conference_request.js similarity index 100% rename from school/conference/doctype/community_conference_request/community_conference_request.js rename to lms/conference/doctype/community_conference_request/community_conference_request.js diff --git a/school/conference/doctype/community_conference_request/community_conference_request.json b/lms/conference/doctype/community_conference_request/community_conference_request.json similarity index 100% rename from school/conference/doctype/community_conference_request/community_conference_request.json rename to lms/conference/doctype/community_conference_request/community_conference_request.json diff --git a/school/conference/doctype/community_conference_request/community_conference_request.py b/lms/conference/doctype/community_conference_request/community_conference_request.py similarity index 100% rename from school/conference/doctype/community_conference_request/community_conference_request.py rename to lms/conference/doctype/community_conference_request/community_conference_request.py diff --git a/school/conference/doctype/community_conference_request/test_community_conference_request.py b/lms/conference/doctype/community_conference_request/test_community_conference_request.py similarity index 100% rename from school/conference/doctype/community_conference_request/test_community_conference_request.py rename to lms/conference/doctype/community_conference_request/test_community_conference_request.py diff --git a/school/config/__init__.py b/lms/config/__init__.py similarity index 100% rename from school/config/__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/event_management/__init__.py b/lms/event_management/__init__.py similarity index 100% rename from school/event_management/__init__.py rename to lms/event_management/__init__.py diff --git a/school/event_management/doctype/__init__.py b/lms/event_management/doctype/__init__.py similarity index 100% rename from school/event_management/doctype/__init__.py rename to lms/event_management/doctype/__init__.py diff --git a/school/event_management/doctype/attendee/__init__.py b/lms/event_management/doctype/attendee/__init__.py similarity index 100% rename from school/event_management/doctype/attendee/__init__.py rename to lms/event_management/doctype/attendee/__init__.py diff --git a/school/event_management/doctype/attendee/attendee.js b/lms/event_management/doctype/attendee/attendee.js similarity index 100% rename from school/event_management/doctype/attendee/attendee.js rename to lms/event_management/doctype/attendee/attendee.js diff --git a/school/event_management/doctype/attendee/attendee.json b/lms/event_management/doctype/attendee/attendee.json similarity index 100% rename from school/event_management/doctype/attendee/attendee.json rename to lms/event_management/doctype/attendee/attendee.json diff --git a/school/event_management/doctype/attendee/attendee.py b/lms/event_management/doctype/attendee/attendee.py similarity index 100% rename from school/event_management/doctype/attendee/attendee.py rename to lms/event_management/doctype/attendee/attendee.py diff --git a/school/event_management/doctype/attendee/test_attendee.py b/lms/event_management/doctype/attendee/test_attendee.py similarity index 100% rename from school/event_management/doctype/attendee/test_attendee.py rename to lms/event_management/doctype/attendee/test_attendee.py diff --git a/school/event_management/doctype/event_details/__init__.py b/lms/event_management/doctype/event_details/__init__.py similarity index 100% rename from school/event_management/doctype/event_details/__init__.py rename to lms/event_management/doctype/event_details/__init__.py diff --git a/school/event_management/doctype/event_details/event_details.js b/lms/event_management/doctype/event_details/event_details.js similarity index 100% rename from school/event_management/doctype/event_details/event_details.js rename to lms/event_management/doctype/event_details/event_details.js diff --git a/school/event_management/doctype/event_details/event_details.json b/lms/event_management/doctype/event_details/event_details.json similarity index 100% rename from school/event_management/doctype/event_details/event_details.json rename to lms/event_management/doctype/event_details/event_details.json diff --git a/school/event_management/doctype/event_details/event_details.py b/lms/event_management/doctype/event_details/event_details.py similarity index 100% rename from school/event_management/doctype/event_details/event_details.py rename to lms/event_management/doctype/event_details/event_details.py diff --git a/school/event_management/doctype/event_details/test_event_details.py b/lms/event_management/doctype/event_details/test_event_details.py similarity index 100% rename from school/event_management/doctype/event_details/test_event_details.py rename to lms/event_management/doctype/event_details/test_event_details.py diff --git a/school/event_management/doctype/event_ticket/__init__.py b/lms/event_management/doctype/event_ticket/__init__.py similarity index 100% rename from school/event_management/doctype/event_ticket/__init__.py rename to lms/event_management/doctype/event_ticket/__init__.py diff --git a/school/event_management/doctype/event_ticket/event_ticket.js b/lms/event_management/doctype/event_ticket/event_ticket.js similarity index 100% rename from school/event_management/doctype/event_ticket/event_ticket.js rename to lms/event_management/doctype/event_ticket/event_ticket.js diff --git a/school/event_management/doctype/event_ticket/event_ticket.json b/lms/event_management/doctype/event_ticket/event_ticket.json similarity index 100% rename from school/event_management/doctype/event_ticket/event_ticket.json rename to lms/event_management/doctype/event_ticket/event_ticket.json diff --git a/school/event_management/doctype/event_ticket/event_ticket.py b/lms/event_management/doctype/event_ticket/event_ticket.py similarity index 100% rename from school/event_management/doctype/event_ticket/event_ticket.py rename to lms/event_management/doctype/event_ticket/event_ticket.py diff --git a/school/event_management/doctype/event_ticket/test_event_ticket.py b/lms/event_management/doctype/event_ticket/test_event_ticket.py similarity index 100% rename from school/event_management/doctype/event_ticket/test_event_ticket.py rename to lms/event_management/doctype/event_ticket/test_event_ticket.py diff --git a/school/event_management/doctype/exhibitor/__init__.py b/lms/event_management/doctype/exhibitor/__init__.py similarity index 100% rename from school/event_management/doctype/exhibitor/__init__.py rename to lms/event_management/doctype/exhibitor/__init__.py diff --git a/school/event_management/doctype/exhibitor/exhibitor.js b/lms/event_management/doctype/exhibitor/exhibitor.js similarity index 100% rename from school/event_management/doctype/exhibitor/exhibitor.js rename to lms/event_management/doctype/exhibitor/exhibitor.js diff --git a/school/event_management/doctype/exhibitor/exhibitor.json b/lms/event_management/doctype/exhibitor/exhibitor.json similarity index 100% rename from school/event_management/doctype/exhibitor/exhibitor.json rename to lms/event_management/doctype/exhibitor/exhibitor.json diff --git a/school/event_management/doctype/exhibitor/exhibitor.py b/lms/event_management/doctype/exhibitor/exhibitor.py similarity index 100% rename from school/event_management/doctype/exhibitor/exhibitor.py rename to lms/event_management/doctype/exhibitor/exhibitor.py diff --git a/school/event_management/doctype/exhibitor/test_exhibitor.py b/lms/event_management/doctype/exhibitor/test_exhibitor.py similarity index 100% rename from school/event_management/doctype/exhibitor/test_exhibitor.py rename to lms/event_management/doctype/exhibitor/test_exhibitor.py diff --git a/school/event_management/doctype/host/__init__.py b/lms/event_management/doctype/host/__init__.py similarity index 100% rename from school/event_management/doctype/host/__init__.py rename to lms/event_management/doctype/host/__init__.py diff --git a/school/event_management/doctype/host/host.js b/lms/event_management/doctype/host/host.js similarity index 100% rename from school/event_management/doctype/host/host.js rename to lms/event_management/doctype/host/host.js diff --git a/school/event_management/doctype/host/host.json b/lms/event_management/doctype/host/host.json similarity index 100% rename from school/event_management/doctype/host/host.json rename to lms/event_management/doctype/host/host.json diff --git a/school/event_management/doctype/host/host.py b/lms/event_management/doctype/host/host.py similarity index 100% rename from school/event_management/doctype/host/host.py rename to lms/event_management/doctype/host/host.py diff --git a/school/event_management/doctype/host/test_host.py b/lms/event_management/doctype/host/test_host.py similarity index 100% rename from school/event_management/doctype/host/test_host.py rename to lms/event_management/doctype/host/test_host.py diff --git a/school/event_management/doctype/speaker/__init__.py b/lms/event_management/doctype/speaker/__init__.py similarity index 100% rename from school/event_management/doctype/speaker/__init__.py rename to lms/event_management/doctype/speaker/__init__.py diff --git a/school/event_management/doctype/speaker/speaker.js b/lms/event_management/doctype/speaker/speaker.js similarity index 100% rename from school/event_management/doctype/speaker/speaker.js rename to lms/event_management/doctype/speaker/speaker.js diff --git a/school/event_management/doctype/speaker/speaker.json b/lms/event_management/doctype/speaker/speaker.json similarity index 100% rename from school/event_management/doctype/speaker/speaker.json rename to lms/event_management/doctype/speaker/speaker.json diff --git a/school/event_management/doctype/speaker/speaker.py b/lms/event_management/doctype/speaker/speaker.py similarity index 100% rename from school/event_management/doctype/speaker/speaker.py rename to lms/event_management/doctype/speaker/speaker.py diff --git a/school/event_management/doctype/speaker/test_speaker.py b/lms/event_management/doctype/speaker/test_speaker.py similarity index 100% rename from school/event_management/doctype/speaker/test_speaker.py rename to lms/event_management/doctype/speaker/test_speaker.py diff --git a/school/event_management/doctype/talk/__init__.py b/lms/event_management/doctype/talk/__init__.py similarity index 100% rename from school/event_management/doctype/talk/__init__.py rename to lms/event_management/doctype/talk/__init__.py diff --git a/school/event_management/doctype/talk/talk.js b/lms/event_management/doctype/talk/talk.js similarity index 100% rename from school/event_management/doctype/talk/talk.js rename to lms/event_management/doctype/talk/talk.js diff --git a/school/event_management/doctype/talk/talk.json b/lms/event_management/doctype/talk/talk.json similarity index 100% rename from school/event_management/doctype/talk/talk.json rename to lms/event_management/doctype/talk/talk.json diff --git a/school/event_management/doctype/talk/talk.py b/lms/event_management/doctype/talk/talk.py similarity index 100% rename from school/event_management/doctype/talk/talk.py rename to lms/event_management/doctype/talk/talk.py diff --git a/school/event_management/doctype/talk/test_talk.py b/lms/event_management/doctype/talk/test_talk.py similarity index 100% rename from school/event_management/doctype/talk/test_talk.py rename to lms/event_management/doctype/talk/test_talk.py diff --git a/school/event_management/web_form/__init__.py b/lms/event_management/web_form/__init__.py similarity index 100% rename from school/event_management/web_form/__init__.py rename to lms/event_management/web_form/__init__.py diff --git a/school/event_management/web_form/attendee_registration/__init__.py b/lms/event_management/web_form/attendee_registration/__init__.py similarity index 100% rename from school/event_management/web_form/attendee_registration/__init__.py rename to lms/event_management/web_form/attendee_registration/__init__.py diff --git a/school/event_management/web_form/attendee_registration/attendee_registration.js b/lms/event_management/web_form/attendee_registration/attendee_registration.js similarity index 100% rename from school/event_management/web_form/attendee_registration/attendee_registration.js rename to lms/event_management/web_form/attendee_registration/attendee_registration.js diff --git a/school/event_management/web_form/attendee_registration/attendee_registration.json b/lms/event_management/web_form/attendee_registration/attendee_registration.json similarity index 100% rename from school/event_management/web_form/attendee_registration/attendee_registration.json rename to lms/event_management/web_form/attendee_registration/attendee_registration.json diff --git a/school/event_management/web_form/attendee_registration/attendee_registration.py b/lms/event_management/web_form/attendee_registration/attendee_registration.py similarity index 100% rename from school/event_management/web_form/attendee_registration/attendee_registration.py rename to lms/event_management/web_form/attendee_registration/attendee_registration.py diff --git a/school/event_management/web_form/exhibitor_registration/__init__.py b/lms/event_management/web_form/exhibitor_registration/__init__.py similarity index 100% rename from school/event_management/web_form/exhibitor_registration/__init__.py rename to lms/event_management/web_form/exhibitor_registration/__init__.py diff --git a/school/event_management/web_form/exhibitor_registration/exhibitor_registration.js b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.js similarity index 100% rename from school/event_management/web_form/exhibitor_registration/exhibitor_registration.js rename to lms/event_management/web_form/exhibitor_registration/exhibitor_registration.js diff --git a/school/event_management/web_form/exhibitor_registration/exhibitor_registration.json b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.json similarity index 100% rename from school/event_management/web_form/exhibitor_registration/exhibitor_registration.json rename to lms/event_management/web_form/exhibitor_registration/exhibitor_registration.json diff --git a/school/event_management/web_form/exhibitor_registration/exhibitor_registration.py b/lms/event_management/web_form/exhibitor_registration/exhibitor_registration.py similarity index 100% rename from school/event_management/web_form/exhibitor_registration/exhibitor_registration.py rename to lms/event_management/web_form/exhibitor_registration/exhibitor_registration.py diff --git a/school/event_management/web_form/purpose_a_talk/__init__.py b/lms/event_management/web_form/purpose_a_talk/__init__.py similarity index 100% rename from school/event_management/web_form/purpose_a_talk/__init__.py rename to lms/event_management/web_form/purpose_a_talk/__init__.py diff --git a/school/event_management/web_form/purpose_a_talk/purpose_a_talk.js b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.js similarity index 100% rename from school/event_management/web_form/purpose_a_talk/purpose_a_talk.js rename to lms/event_management/web_form/purpose_a_talk/purpose_a_talk.js diff --git a/school/event_management/web_form/purpose_a_talk/purpose_a_talk.json b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.json similarity index 100% rename from school/event_management/web_form/purpose_a_talk/purpose_a_talk.json rename to lms/event_management/web_form/purpose_a_talk/purpose_a_talk.json diff --git a/school/event_management/web_form/purpose_a_talk/purpose_a_talk.py b/lms/event_management/web_form/purpose_a_talk/purpose_a_talk.py similarity index 100% rename from school/event_management/web_form/purpose_a_talk/purpose_a_talk.py rename to lms/event_management/web_form/purpose_a_talk/purpose_a_talk.py diff --git a/school/event_management/web_form/speaker_registration/__init__.py b/lms/event_management/web_form/speaker_registration/__init__.py similarity index 100% rename from school/event_management/web_form/speaker_registration/__init__.py rename to lms/event_management/web_form/speaker_registration/__init__.py diff --git a/school/event_management/web_form/speaker_registration/speaker_registration.js b/lms/event_management/web_form/speaker_registration/speaker_registration.js similarity index 100% rename from school/event_management/web_form/speaker_registration/speaker_registration.js rename to lms/event_management/web_form/speaker_registration/speaker_registration.js diff --git a/school/event_management/web_form/speaker_registration/speaker_registration.json b/lms/event_management/web_form/speaker_registration/speaker_registration.json similarity index 100% rename from school/event_management/web_form/speaker_registration/speaker_registration.json rename to lms/event_management/web_form/speaker_registration/speaker_registration.json diff --git a/school/event_management/web_form/speaker_registration/speaker_registration.py b/lms/event_management/web_form/speaker_registration/speaker_registration.py similarity index 100% rename from school/event_management/web_form/speaker_registration/speaker_registration.py rename to lms/event_management/web_form/speaker_registration/speaker_registration.py diff --git a/school/event_management/web_template/__init__.py b/lms/event_management/web_template/__init__.py similarity index 100% rename from school/event_management/web_template/__init__.py rename to lms/event_management/web_template/__init__.py diff --git a/school/event_management/web_template/exhibitor_section/__init__.py b/lms/event_management/web_template/exhibitor_section/__init__.py similarity index 100% rename from school/event_management/web_template/exhibitor_section/__init__.py rename to lms/event_management/web_template/exhibitor_section/__init__.py diff --git a/school/event_management/web_template/exhibitor_section/exhibitor_section.html b/lms/event_management/web_template/exhibitor_section/exhibitor_section.html similarity index 100% rename from school/event_management/web_template/exhibitor_section/exhibitor_section.html rename to lms/event_management/web_template/exhibitor_section/exhibitor_section.html diff --git a/school/event_management/web_template/exhibitor_section/exhibitor_section.json b/lms/event_management/web_template/exhibitor_section/exhibitor_section.json similarity index 100% rename from school/event_management/web_template/exhibitor_section/exhibitor_section.json rename to lms/event_management/web_template/exhibitor_section/exhibitor_section.json diff --git a/school/event_management/web_template/host_section/__init__.py b/lms/event_management/web_template/host_section/__init__.py similarity index 100% rename from school/event_management/web_template/host_section/__init__.py rename to lms/event_management/web_template/host_section/__init__.py diff --git a/school/event_management/web_template/host_section/host_section.html b/lms/event_management/web_template/host_section/host_section.html similarity index 100% rename from school/event_management/web_template/host_section/host_section.html rename to lms/event_management/web_template/host_section/host_section.html diff --git a/school/event_management/web_template/host_section/host_section.json b/lms/event_management/web_template/host_section/host_section.json similarity index 100% rename from school/event_management/web_template/host_section/host_section.json rename to lms/event_management/web_template/host_section/host_section.json diff --git a/school/event_management/web_template/speaker_section/__init__.py b/lms/event_management/web_template/speaker_section/__init__.py similarity index 100% rename from school/event_management/web_template/speaker_section/__init__.py rename to lms/event_management/web_template/speaker_section/__init__.py diff --git a/school/event_management/web_template/speaker_section/speaker_section.html b/lms/event_management/web_template/speaker_section/speaker_section.html similarity index 100% rename from school/event_management/web_template/speaker_section/speaker_section.html rename to lms/event_management/web_template/speaker_section/speaker_section.html diff --git a/school/event_management/web_template/speaker_section/speaker_section.json b/lms/event_management/web_template/speaker_section/speaker_section.json similarity index 100% rename from school/event_management/web_template/speaker_section/speaker_section.json rename to lms/event_management/web_template/speaker_section/speaker_section.json diff --git a/school/event_management/web_template/talk_section/__init__.py b/lms/event_management/web_template/talk_section/__init__.py similarity index 100% rename from school/event_management/web_template/talk_section/__init__.py rename to lms/event_management/web_template/talk_section/__init__.py diff --git a/school/event_management/web_template/talk_section/talk_section.html b/lms/event_management/web_template/talk_section/talk_section.html similarity index 100% rename from school/event_management/web_template/talk_section/talk_section.html rename to lms/event_management/web_template/talk_section/talk_section.html diff --git a/school/event_management/web_template/talk_section/talk_section.json b/lms/event_management/web_template/talk_section/talk_section.json similarity index 100% rename from school/event_management/web_template/talk_section/talk_section.json rename to lms/event_management/web_template/talk_section/talk_section.json 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/fixtures/function.json b/lms/fixtures/function.json similarity index 100% rename from school/fixtures/function.json rename to lms/fixtures/function.json diff --git a/school/fixtures/industry.json b/lms/fixtures/industry.json similarity index 100% rename from school/fixtures/industry.json rename to lms/fixtures/industry.json diff --git a/school/hackathon/README.md b/lms/hackathon/README.md similarity index 69% rename from school/hackathon/README.md rename to lms/hackathon/README.md index fce287f4..cdd81bad 100644 --- a/school/hackathon/README.md +++ b/lms/hackathon/README.md @@ -1,6 +1,6 @@ The Hackathon module allows Community Members to organize and manage hackathons. Community Members can view these hackathons on the portal. - + ### Key Features: @@ -9,7 +9,7 @@ The Hackathon module allows Community Members to organize and manage hackathons. 1. Hackathons can be created using the **Community Hackathon** doctype. 1. Enter the hackathon name, the organizer, the year and Save. - + ##### Projects @@ -20,16 +20,16 @@ The Hackathon module allows Community Members to organize and manage hackathons. 1. Attach important links like Repository Link, Demo Link, Telegram Id. 1. The checkbox Accepting Members can be used if you are still aceepting members for your project. - - + + 1. Projects are visible on the portal as well. - - + + ##### Project Members 1. Community Members can explore the projects of hackathons and decide if they want to join any project. 1. If the project is accepting members they can apply for the project from the web form available on the portal. - + 1. Project owners can review the requests and accept/reject the members. diff --git a/school/hackathon/__init__.py b/lms/hackathon/__init__.py similarity index 100% rename from school/hackathon/__init__.py rename to lms/hackathon/__init__.py diff --git a/school/hackathon/doctype/__init__.py b/lms/hackathon/doctype/__init__.py similarity index 100% rename from school/hackathon/doctype/__init__.py rename to lms/hackathon/doctype/__init__.py diff --git a/school/hackathon/doctype/community_hackathon/__init__.py b/lms/hackathon/doctype/community_hackathon/__init__.py similarity index 100% rename from school/hackathon/doctype/community_hackathon/__init__.py rename to lms/hackathon/doctype/community_hackathon/__init__.py diff --git a/school/hackathon/doctype/community_hackathon/community_hackathon.js b/lms/hackathon/doctype/community_hackathon/community_hackathon.js similarity index 100% rename from school/hackathon/doctype/community_hackathon/community_hackathon.js rename to lms/hackathon/doctype/community_hackathon/community_hackathon.js diff --git a/school/hackathon/doctype/community_hackathon/community_hackathon.json b/lms/hackathon/doctype/community_hackathon/community_hackathon.json similarity index 100% rename from school/hackathon/doctype/community_hackathon/community_hackathon.json rename to lms/hackathon/doctype/community_hackathon/community_hackathon.json diff --git a/school/hackathon/doctype/community_hackathon/community_hackathon.py b/lms/hackathon/doctype/community_hackathon/community_hackathon.py similarity index 100% rename from school/hackathon/doctype/community_hackathon/community_hackathon.py rename to lms/hackathon/doctype/community_hackathon/community_hackathon.py diff --git a/school/hackathon/doctype/community_hackathon/test_community_hackathon.py b/lms/hackathon/doctype/community_hackathon/test_community_hackathon.py similarity index 100% rename from school/hackathon/doctype/community_hackathon/test_community_hackathon.py rename to lms/hackathon/doctype/community_hackathon/test_community_hackathon.py diff --git a/school/hackathon/doctype/community_project/__init__.py b/lms/hackathon/doctype/community_project/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project/__init__.py rename to lms/hackathon/doctype/community_project/__init__.py diff --git a/school/hackathon/doctype/community_project/community_project.js b/lms/hackathon/doctype/community_project/community_project.js similarity index 100% rename from school/hackathon/doctype/community_project/community_project.js rename to lms/hackathon/doctype/community_project/community_project.js diff --git a/school/hackathon/doctype/community_project/community_project.json b/lms/hackathon/doctype/community_project/community_project.json similarity index 100% rename from school/hackathon/doctype/community_project/community_project.json rename to lms/hackathon/doctype/community_project/community_project.json diff --git a/school/hackathon/doctype/community_project/community_project.py b/lms/hackathon/doctype/community_project/community_project.py similarity index 100% rename from school/hackathon/doctype/community_project/community_project.py rename to lms/hackathon/doctype/community_project/community_project.py diff --git a/school/hackathon/doctype/community_project/test_community_project.py b/lms/hackathon/doctype/community_project/test_community_project.py similarity index 100% rename from school/hackathon/doctype/community_project/test_community_project.py rename to lms/hackathon/doctype/community_project/test_community_project.py diff --git a/school/hackathon/doctype/community_project_evaluation/__init__.py b/lms/hackathon/doctype/community_project_evaluation/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/__init__.py rename to lms/hackathon/doctype/community_project_evaluation/__init__.py diff --git a/school/hackathon/doctype/community_project_evaluation/community_project_evaluation.js b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.js similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/community_project_evaluation.js rename to lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.js diff --git a/school/hackathon/doctype/community_project_evaluation/community_project_evaluation.json b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.json similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/community_project_evaluation.json rename to lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.json diff --git a/school/hackathon/doctype/community_project_evaluation/community_project_evaluation.py b/lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.py similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/community_project_evaluation.py rename to lms/hackathon/doctype/community_project_evaluation/community_project_evaluation.py diff --git a/school/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py b/lms/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py similarity index 100% rename from school/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py rename to lms/hackathon/doctype/community_project_evaluation/test_community_project_evaluation.py diff --git a/school/hackathon/doctype/community_project_like/__init__.py b/lms/hackathon/doctype/community_project_like/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_like/__init__.py rename to lms/hackathon/doctype/community_project_like/__init__.py diff --git a/school/hackathon/doctype/community_project_like/community_project_like.js b/lms/hackathon/doctype/community_project_like/community_project_like.js similarity index 100% rename from school/hackathon/doctype/community_project_like/community_project_like.js rename to lms/hackathon/doctype/community_project_like/community_project_like.js diff --git a/school/hackathon/doctype/community_project_like/community_project_like.json b/lms/hackathon/doctype/community_project_like/community_project_like.json similarity index 100% rename from school/hackathon/doctype/community_project_like/community_project_like.json rename to lms/hackathon/doctype/community_project_like/community_project_like.json diff --git a/school/hackathon/doctype/community_project_like/community_project_like.py b/lms/hackathon/doctype/community_project_like/community_project_like.py similarity index 100% rename from school/hackathon/doctype/community_project_like/community_project_like.py rename to lms/hackathon/doctype/community_project_like/community_project_like.py diff --git a/school/hackathon/doctype/community_project_like/test_community_project_like.py b/lms/hackathon/doctype/community_project_like/test_community_project_like.py similarity index 100% rename from school/hackathon/doctype/community_project_like/test_community_project_like.py rename to lms/hackathon/doctype/community_project_like/test_community_project_like.py diff --git a/school/hackathon/doctype/community_project_member/__init__.py b/lms/hackathon/doctype/community_project_member/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_member/__init__.py rename to lms/hackathon/doctype/community_project_member/__init__.py diff --git a/school/hackathon/doctype/community_project_member/community_project_member.js b/lms/hackathon/doctype/community_project_member/community_project_member.js similarity index 100% rename from school/hackathon/doctype/community_project_member/community_project_member.js rename to lms/hackathon/doctype/community_project_member/community_project_member.js diff --git a/school/hackathon/doctype/community_project_member/community_project_member.json b/lms/hackathon/doctype/community_project_member/community_project_member.json similarity index 100% rename from school/hackathon/doctype/community_project_member/community_project_member.json rename to lms/hackathon/doctype/community_project_member/community_project_member.json diff --git a/school/hackathon/doctype/community_project_member/community_project_member.py b/lms/hackathon/doctype/community_project_member/community_project_member.py similarity index 100% rename from school/hackathon/doctype/community_project_member/community_project_member.py rename to lms/hackathon/doctype/community_project_member/community_project_member.py diff --git a/school/hackathon/doctype/community_project_member/test_community_project_member.py b/lms/hackathon/doctype/community_project_member/test_community_project_member.py similarity index 100% rename from school/hackathon/doctype/community_project_member/test_community_project_member.py rename to lms/hackathon/doctype/community_project_member/test_community_project_member.py diff --git a/school/hackathon/doctype/community_project_update/__init__.py b/lms/hackathon/doctype/community_project_update/__init__.py similarity index 100% rename from school/hackathon/doctype/community_project_update/__init__.py rename to lms/hackathon/doctype/community_project_update/__init__.py diff --git a/school/hackathon/doctype/community_project_update/community_project_update.js b/lms/hackathon/doctype/community_project_update/community_project_update.js similarity index 100% rename from school/hackathon/doctype/community_project_update/community_project_update.js rename to lms/hackathon/doctype/community_project_update/community_project_update.js diff --git a/school/hackathon/doctype/community_project_update/community_project_update.json b/lms/hackathon/doctype/community_project_update/community_project_update.json similarity index 100% rename from school/hackathon/doctype/community_project_update/community_project_update.json rename to lms/hackathon/doctype/community_project_update/community_project_update.json diff --git a/school/hackathon/doctype/community_project_update/community_project_update.py b/lms/hackathon/doctype/community_project_update/community_project_update.py similarity index 100% rename from school/hackathon/doctype/community_project_update/community_project_update.py rename to lms/hackathon/doctype/community_project_update/community_project_update.py diff --git a/school/hackathon/doctype/community_project_update/test_community_project_update.py b/lms/hackathon/doctype/community_project_update/test_community_project_update.py similarity index 100% rename from school/hackathon/doctype/community_project_update/test_community_project_update.py rename to lms/hackathon/doctype/community_project_update/test_community_project_update.py diff --git a/school/hackathon/images/community-hackathon.png b/lms/hackathon/images/community-hackathon.png similarity index 100% rename from school/hackathon/images/community-hackathon.png rename to lms/hackathon/images/community-hackathon.png diff --git a/school/hackathon/images/hackathons-portal.png b/lms/hackathon/images/hackathons-portal.png similarity index 100% rename from school/hackathon/images/hackathons-portal.png rename to lms/hackathon/images/hackathons-portal.png diff --git a/school/hackathon/images/project-1.png b/lms/hackathon/images/project-1.png similarity index 100% rename from school/hackathon/images/project-1.png rename to lms/hackathon/images/project-1.png diff --git a/school/hackathon/images/project-2.png b/lms/hackathon/images/project-2.png similarity index 100% rename from school/hackathon/images/project-2.png rename to lms/hackathon/images/project-2.png diff --git a/school/hackathon/images/project-details.png b/lms/hackathon/images/project-details.png similarity index 100% rename from school/hackathon/images/project-details.png rename to lms/hackathon/images/project-details.png diff --git a/school/hackathon/images/project-join-request.png b/lms/hackathon/images/project-join-request.png similarity index 100% rename from school/hackathon/images/project-join-request.png rename to lms/hackathon/images/project-join-request.png diff --git a/school/hackathon/images/project-portal.png b/lms/hackathon/images/project-portal.png similarity index 100% rename from school/hackathon/images/project-portal.png rename to lms/hackathon/images/project-portal.png diff --git a/school/hackathon/web_form/__init__.py b/lms/hackathon/web_form/__init__.py similarity index 100% rename from school/hackathon/web_form/__init__.py rename to lms/hackathon/web_form/__init__.py diff --git a/school/hackathon/web_form/join_request/__init__.py b/lms/hackathon/web_form/join_request/__init__.py similarity index 100% rename from school/hackathon/web_form/join_request/__init__.py rename to lms/hackathon/web_form/join_request/__init__.py diff --git a/school/hackathon/web_form/join_request/join_request.js b/lms/hackathon/web_form/join_request/join_request.js similarity index 100% rename from school/hackathon/web_form/join_request/join_request.js rename to lms/hackathon/web_form/join_request/join_request.js diff --git a/school/hackathon/web_form/join_request/join_request.json b/lms/hackathon/web_form/join_request/join_request.json similarity index 100% rename from school/hackathon/web_form/join_request/join_request.json rename to lms/hackathon/web_form/join_request/join_request.json diff --git a/school/hackathon/web_form/join_request/join_request.py b/lms/hackathon/web_form/join_request/join_request.py similarity index 100% rename from school/hackathon/web_form/join_request/join_request.py rename to lms/hackathon/web_form/join_request/join_request.py diff --git a/school/hackathon/web_form/project/__init__.py b/lms/hackathon/web_form/project/__init__.py similarity index 100% rename from school/hackathon/web_form/project/__init__.py rename to lms/hackathon/web_form/project/__init__.py diff --git a/school/hackathon/web_form/project/project.js b/lms/hackathon/web_form/project/project.js similarity index 100% rename from school/hackathon/web_form/project/project.js rename to lms/hackathon/web_form/project/project.js diff --git a/school/hackathon/web_form/project/project.json b/lms/hackathon/web_form/project/project.json similarity index 100% rename from school/hackathon/web_form/project/project.json rename to lms/hackathon/web_form/project/project.json diff --git a/school/hackathon/web_form/project/project.py b/lms/hackathon/web_form/project/project.py similarity index 100% rename from school/hackathon/web_form/project/project.py rename to lms/hackathon/web_form/project/project.py diff --git a/school/hackathon/web_form/project_update/__init__.py b/lms/hackathon/web_form/project_update/__init__.py similarity index 100% rename from school/hackathon/web_form/project_update/__init__.py rename to lms/hackathon/web_form/project_update/__init__.py diff --git a/school/hackathon/web_form/project_update/project_update.js b/lms/hackathon/web_form/project_update/project_update.js similarity index 100% rename from school/hackathon/web_form/project_update/project_update.js rename to lms/hackathon/web_form/project_update/project_update.js diff --git a/school/hackathon/web_form/project_update/project_update.json b/lms/hackathon/web_form/project_update/project_update.json similarity index 100% rename from school/hackathon/web_form/project_update/project_update.json rename to lms/hackathon/web_form/project_update/project_update.json diff --git a/school/hackathon/web_form/project_update/project_update.py b/lms/hackathon/web_form/project_update/project_update.py similarity index 100% rename from school/hackathon/web_form/project_update/project_update.py rename to lms/hackathon/web_form/project_update/project_update.py diff --git a/school/hooks.py b/lms/hooks.py similarity index 63% rename from school/hooks.py rename to lms/hooks.py index 0a11804c..81783b67 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" 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 = "school.bundle.css" -# web_include_css = "/assets/school/css/school.css" +web_include_css = "lms.bundle.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_js = "website.bundle.js" # 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_js = "website.bundle.js" # 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", "Function", "Industry"] # 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 @@ -156,54 +156,54 @@ website_redirects = [ ] update_website_context = [ - 'school.widgets.update_website_context', + 'lms.widgets.update_website_context', ] jinja = { "methods": [ - "school.page_renderers.get_profile_url", - "school.overrides.user.get_enrolled_courses", - "school.overrides.user.get_course_membership", - "school.overrides.user.get_authored_courses", - "school.overrides.user.get_palette", - "school.lms.utils.get_membership", - "school.lms.utils.get_lessons", - "school.lms.utils.get_tags", - "school.lms.utils.get_instructors", - "school.lms.utils.get_students", - "school.lms.utils.get_average_rating", - "school.lms.utils.is_certified", - "school.lms.utils.get_lesson_index", - "school.lms.utils.get_lesson_url", - "school.lms.utils.get_chapters", - "school.lms.utils.get_slugified_chapter_title", - "school.lms.utils.get_progress", - "school.lms.utils.render_html", - "school.lms.utils.is_mentor", - "school.lms.utils.is_cohort_staff", - "school.lms.utils.get_mentors", - "school.lms.utils.get_reviews", - "school.lms.utils.is_eligible_to_review", - "school.lms.utils.get_initial_members", - "school.lms.utils.get_sorted_reviews", - "school.lms.utils.is_instructor", - "school.lms.utils.convert_number_to_character", - "school.lms.utils.get_signup_optin_checks", - "school.lms.utils.get_popular_courses" + "lms.page_renderers.get_profile_url", + "lms.overrides.user.get_enrolled_courses", + "lms.overrides.user.get_course_membership", + "lms.overrides.user.get_authored_courses", + "lms.overrides.user.get_palette", + "lms.lms.utils.get_membership", + "lms.lms.utils.get_lessons", + "lms.lms.utils.get_tags", + "lms.lms.utils.get_instructors", + "lms.lms.utils.get_students", + "lms.lms.utils.get_average_rating", + "lms.lms.utils.is_certified", + "lms.lms.utils.get_lesson_index", + "lms.lms.utils.get_lesson_url", + "lms.lms.utils.get_chapters", + "lms.lms.utils.get_slugified_chapter_title", + "lms.lms.utils.get_progress", + "lms.lms.utils.render_html", + "lms.lms.utils.is_mentor", + "lms.lms.utils.is_cohort_staff", + "lms.lms.utils.get_mentors", + "lms.lms.utils.get_reviews", + "lms.lms.utils.is_eligible_to_review", + "lms.lms.utils.get_initial_members", + "lms.lms.utils.get_sorted_reviews", + "lms.lms.utils.is_instructor", + "lms.lms.utils.convert_number_to_character", + "lms.lms.utils.get_signup_optin_checks", + "lms.lms.utils.get_popular_courses" ], "filters": [] } ## 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_lesson_page_extension = None -#school_lesson_page_extensions = [ -# "school.plugins.LiveCodeExtension" +#lms_lesson_page_extensions = [ +# "lms.plugins.LiveCodeExtension" #] profile_mandatory_fields = [ @@ -227,23 +227,23 @@ profile_mandatory_fields = [ ] ## 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", - "Assignment": "school.plugins.assignment_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", + "Assignment": "lms.plugins.assignment_renderer" } # page_renderer to manage profile pages page_renderer = [ - "school.page_renderers.ProfileRedirectPage", - "school.page_renderers.ProfilePage" + "lms.page_renderers.ProfileRedirectPage", + "lms.page_renderers.ProfilePage" ] # set this to "/" to have profiles on the top-level profile_url_prefix = "/users/" -signup_form_template = "school.plugins.show_custom_signup" +signup_form_template = "lms.plugins.show_custom_signup" -on_login = "school.overrides.user.set_country_from_ip" +on_login = "lms.overrides.user.set_country_from_ip" diff --git a/school/job/__init__.py b/lms/job/__init__.py similarity index 100% rename from school/job/__init__.py rename to lms/job/__init__.py diff --git a/school/job/doctype/__init__.py b/lms/job/doctype/__init__.py similarity index 100% rename from school/job/doctype/__init__.py rename to lms/job/doctype/__init__.py diff --git a/school/job/doctype/job_opportunity/__init__.py b/lms/job/doctype/job_opportunity/__init__.py similarity index 100% rename from school/job/doctype/job_opportunity/__init__.py rename to lms/job/doctype/job_opportunity/__init__.py diff --git a/school/job/doctype/job_opportunity/job_opportunity.js b/lms/job/doctype/job_opportunity/job_opportunity.js similarity index 100% rename from school/job/doctype/job_opportunity/job_opportunity.js rename to lms/job/doctype/job_opportunity/job_opportunity.js diff --git a/school/job/doctype/job_opportunity/job_opportunity.json b/lms/job/doctype/job_opportunity/job_opportunity.json similarity index 100% rename from school/job/doctype/job_opportunity/job_opportunity.json rename to lms/job/doctype/job_opportunity/job_opportunity.json diff --git a/school/job/doctype/job_opportunity/job_opportunity.py b/lms/job/doctype/job_opportunity/job_opportunity.py similarity index 100% rename from school/job/doctype/job_opportunity/job_opportunity.py rename to lms/job/doctype/job_opportunity/job_opportunity.py diff --git a/school/job/doctype/job_opportunity/test_job_opportunity.py b/lms/job/doctype/job_opportunity/test_job_opportunity.py similarity index 100% rename from school/job/doctype/job_opportunity/test_job_opportunity.py rename to lms/job/doctype/job_opportunity/test_job_opportunity.py diff --git a/school/job/doctype/job_settings/__init__.py b/lms/job/doctype/job_settings/__init__.py similarity index 100% rename from school/job/doctype/job_settings/__init__.py rename to lms/job/doctype/job_settings/__init__.py diff --git a/school/job/doctype/job_settings/job_settings.js b/lms/job/doctype/job_settings/job_settings.js similarity index 100% rename from school/job/doctype/job_settings/job_settings.js rename to lms/job/doctype/job_settings/job_settings.js diff --git a/school/job/doctype/job_settings/job_settings.json b/lms/job/doctype/job_settings/job_settings.json similarity index 100% rename from school/job/doctype/job_settings/job_settings.json rename to lms/job/doctype/job_settings/job_settings.json diff --git a/school/job/doctype/job_settings/job_settings.py b/lms/job/doctype/job_settings/job_settings.py similarity index 100% rename from school/job/doctype/job_settings/job_settings.py rename to lms/job/doctype/job_settings/job_settings.py diff --git a/school/job/doctype/job_settings/test_job_settings.py b/lms/job/doctype/job_settings/test_job_settings.py similarity index 100% rename from school/job/doctype/job_settings/test_job_settings.py rename to lms/job/doctype/job_settings/test_job_settings.py diff --git a/school/job/notification/__init__.py b/lms/job/notification/__init__.py similarity index 100% rename from school/job/notification/__init__.py rename to lms/job/notification/__init__.py diff --git a/school/job/notification/new_job_alert/__init__.py b/lms/job/notification/new_job_alert/__init__.py similarity index 100% rename from school/job/notification/new_job_alert/__init__.py rename to lms/job/notification/new_job_alert/__init__.py diff --git a/school/job/notification/new_job_alert/new_job_alert.json b/lms/job/notification/new_job_alert/new_job_alert.json similarity index 100% rename from school/job/notification/new_job_alert/new_job_alert.json rename to lms/job/notification/new_job_alert/new_job_alert.json diff --git a/school/job/notification/new_job_alert/new_job_alert.md b/lms/job/notification/new_job_alert/new_job_alert.md similarity index 100% rename from school/job/notification/new_job_alert/new_job_alert.md rename to lms/job/notification/new_job_alert/new_job_alert.md diff --git a/school/job/notification/new_job_alert/new_job_alert.py b/lms/job/notification/new_job_alert/new_job_alert.py similarity index 100% rename from school/job/notification/new_job_alert/new_job_alert.py rename to lms/job/notification/new_job_alert/new_job_alert.py diff --git a/school/job/web_form/__init__.py b/lms/job/web_form/__init__.py similarity index 100% rename from school/job/web_form/__init__.py rename to lms/job/web_form/__init__.py diff --git a/school/job/web_form/job_opportunity/__init__.py b/lms/job/web_form/job_opportunity/__init__.py similarity index 100% rename from school/job/web_form/job_opportunity/__init__.py rename to lms/job/web_form/job_opportunity/__init__.py diff --git a/school/job/web_form/job_opportunity/job_opportunity.js b/lms/job/web_form/job_opportunity/job_opportunity.js similarity index 100% rename from school/job/web_form/job_opportunity/job_opportunity.js rename to lms/job/web_form/job_opportunity/job_opportunity.js diff --git a/school/job/web_form/job_opportunity/job_opportunity.json b/lms/job/web_form/job_opportunity/job_opportunity.json similarity index 100% rename from school/job/web_form/job_opportunity/job_opportunity.json rename to lms/job/web_form/job_opportunity/job_opportunity.json diff --git a/school/job/web_form/job_opportunity/job_opportunity.py b/lms/job/web_form/job_opportunity/job_opportunity.py similarity index 100% rename from school/job/web_form/job_opportunity/job_opportunity.py rename to lms/job/web_form/job_opportunity/job_opportunity.py diff --git a/school/lms/__init__.py b/lms/lms/__init__.py similarity index 100% rename from school/lms/__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/lms/doctype/__init__.py b/lms/lms/doctype/__init__.py similarity index 100% rename from school/lms/doctype/__init__.py rename to lms/lms/doctype/__init__.py diff --git a/school/lms/doctype/certification/__init__.py b/lms/lms/doctype/certification/__init__.py similarity index 100% rename from school/lms/doctype/certification/__init__.py rename to lms/lms/doctype/certification/__init__.py diff --git a/school/lms/doctype/certification/certification.js b/lms/lms/doctype/certification/certification.js similarity index 100% rename from school/lms/doctype/certification/certification.js rename to lms/lms/doctype/certification/certification.js diff --git a/school/lms/doctype/certification/certification.json b/lms/lms/doctype/certification/certification.json similarity index 100% rename from school/lms/doctype/certification/certification.json rename to lms/lms/doctype/certification/certification.json diff --git a/school/lms/doctype/certification/certification.py b/lms/lms/doctype/certification/certification.py similarity index 100% rename from school/lms/doctype/certification/certification.py rename to lms/lms/doctype/certification/certification.py diff --git a/school/lms/doctype/certification/test_certification.py b/lms/lms/doctype/certification/test_certification.py similarity index 100% rename from school/lms/doctype/certification/test_certification.py rename to lms/lms/doctype/certification/test_certification.py diff --git a/school/lms/doctype/chapter_reference/__init__.py b/lms/lms/doctype/chapter_reference/__init__.py similarity index 100% rename from school/lms/doctype/chapter_reference/__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/lms/doctype/cohort/__init__.py b/lms/lms/doctype/cohort/__init__.py similarity index 100% rename from school/lms/doctype/cohort/__init__.py rename to lms/lms/doctype/cohort/__init__.py diff --git a/school/lms/doctype/cohort/cohort.js b/lms/lms/doctype/cohort/cohort.js similarity index 100% rename from school/lms/doctype/cohort/cohort.js rename to lms/lms/doctype/cohort/cohort.js diff --git a/school/lms/doctype/cohort/cohort.json b/lms/lms/doctype/cohort/cohort.json similarity index 100% rename from school/lms/doctype/cohort/cohort.json rename to lms/lms/doctype/cohort/cohort.json diff --git a/school/lms/doctype/cohort/cohort.py b/lms/lms/doctype/cohort/cohort.py similarity index 100% rename from school/lms/doctype/cohort/cohort.py rename to lms/lms/doctype/cohort/cohort.py diff --git a/school/lms/doctype/cohort/test_cohort.py b/lms/lms/doctype/cohort/test_cohort.py similarity index 100% rename from school/lms/doctype/cohort/test_cohort.py rename to lms/lms/doctype/cohort/test_cohort.py diff --git a/school/lms/doctype/cohort_join_request/__init__.py b/lms/lms/doctype/cohort_join_request/__init__.py similarity index 100% rename from school/lms/doctype/cohort_join_request/__init__.py rename to lms/lms/doctype/cohort_join_request/__init__.py diff --git a/school/lms/doctype/cohort_join_request/cohort_join_request.js b/lms/lms/doctype/cohort_join_request/cohort_join_request.js similarity index 100% rename from school/lms/doctype/cohort_join_request/cohort_join_request.js rename to lms/lms/doctype/cohort_join_request/cohort_join_request.js diff --git a/school/lms/doctype/cohort_join_request/cohort_join_request.json b/lms/lms/doctype/cohort_join_request/cohort_join_request.json similarity index 100% rename from school/lms/doctype/cohort_join_request/cohort_join_request.json rename to lms/lms/doctype/cohort_join_request/cohort_join_request.json diff --git a/school/lms/doctype/cohort_join_request/cohort_join_request.py b/lms/lms/doctype/cohort_join_request/cohort_join_request.py similarity index 100% rename from school/lms/doctype/cohort_join_request/cohort_join_request.py rename to lms/lms/doctype/cohort_join_request/cohort_join_request.py diff --git a/school/lms/doctype/cohort_join_request/test_cohort_join_request.py b/lms/lms/doctype/cohort_join_request/test_cohort_join_request.py similarity index 100% rename from school/lms/doctype/cohort_join_request/test_cohort_join_request.py rename to lms/lms/doctype/cohort_join_request/test_cohort_join_request.py diff --git a/school/lms/doctype/cohort_mentor/__init__.py b/lms/lms/doctype/cohort_mentor/__init__.py similarity index 100% rename from school/lms/doctype/cohort_mentor/__init__.py rename to lms/lms/doctype/cohort_mentor/__init__.py diff --git a/school/lms/doctype/cohort_mentor/cohort_mentor.js b/lms/lms/doctype/cohort_mentor/cohort_mentor.js similarity index 100% rename from school/lms/doctype/cohort_mentor/cohort_mentor.js rename to lms/lms/doctype/cohort_mentor/cohort_mentor.js diff --git a/school/lms/doctype/cohort_mentor/cohort_mentor.json b/lms/lms/doctype/cohort_mentor/cohort_mentor.json similarity index 100% rename from school/lms/doctype/cohort_mentor/cohort_mentor.json rename to lms/lms/doctype/cohort_mentor/cohort_mentor.json diff --git a/school/lms/doctype/cohort_mentor/cohort_mentor.py b/lms/lms/doctype/cohort_mentor/cohort_mentor.py similarity index 100% rename from school/lms/doctype/cohort_mentor/cohort_mentor.py rename to lms/lms/doctype/cohort_mentor/cohort_mentor.py diff --git a/school/lms/doctype/cohort_mentor/test_cohort_mentor.py b/lms/lms/doctype/cohort_mentor/test_cohort_mentor.py similarity index 100% rename from school/lms/doctype/cohort_mentor/test_cohort_mentor.py rename to lms/lms/doctype/cohort_mentor/test_cohort_mentor.py diff --git a/school/lms/doctype/cohort_staff/__init__.py b/lms/lms/doctype/cohort_staff/__init__.py similarity index 100% rename from school/lms/doctype/cohort_staff/__init__.py rename to lms/lms/doctype/cohort_staff/__init__.py diff --git a/school/lms/doctype/cohort_staff/cohort_staff.js b/lms/lms/doctype/cohort_staff/cohort_staff.js similarity index 100% rename from school/lms/doctype/cohort_staff/cohort_staff.js rename to lms/lms/doctype/cohort_staff/cohort_staff.js diff --git a/school/lms/doctype/cohort_staff/cohort_staff.json b/lms/lms/doctype/cohort_staff/cohort_staff.json similarity index 100% rename from school/lms/doctype/cohort_staff/cohort_staff.json rename to lms/lms/doctype/cohort_staff/cohort_staff.json diff --git a/school/lms/doctype/cohort_staff/cohort_staff.py b/lms/lms/doctype/cohort_staff/cohort_staff.py similarity index 100% rename from school/lms/doctype/cohort_staff/cohort_staff.py rename to lms/lms/doctype/cohort_staff/cohort_staff.py diff --git a/school/lms/doctype/cohort_staff/test_cohort_staff.py b/lms/lms/doctype/cohort_staff/test_cohort_staff.py similarity index 100% rename from school/lms/doctype/cohort_staff/test_cohort_staff.py rename to lms/lms/doctype/cohort_staff/test_cohort_staff.py diff --git a/school/lms/doctype/cohort_subgroup/__init__.py b/lms/lms/doctype/cohort_subgroup/__init__.py similarity index 100% rename from school/lms/doctype/cohort_subgroup/__init__.py rename to lms/lms/doctype/cohort_subgroup/__init__.py diff --git a/school/lms/doctype/cohort_subgroup/cohort_subgroup.js b/lms/lms/doctype/cohort_subgroup/cohort_subgroup.js similarity index 100% rename from school/lms/doctype/cohort_subgroup/cohort_subgroup.js rename to lms/lms/doctype/cohort_subgroup/cohort_subgroup.js diff --git a/school/lms/doctype/cohort_subgroup/cohort_subgroup.json b/lms/lms/doctype/cohort_subgroup/cohort_subgroup.json similarity index 100% rename from school/lms/doctype/cohort_subgroup/cohort_subgroup.json rename to lms/lms/doctype/cohort_subgroup/cohort_subgroup.json diff --git a/school/lms/doctype/cohort_subgroup/cohort_subgroup.py b/lms/lms/doctype/cohort_subgroup/cohort_subgroup.py similarity index 100% rename from school/lms/doctype/cohort_subgroup/cohort_subgroup.py rename to lms/lms/doctype/cohort_subgroup/cohort_subgroup.py diff --git a/school/lms/doctype/cohort_subgroup/test_cohort_subgroup.py b/lms/lms/doctype/cohort_subgroup/test_cohort_subgroup.py similarity index 100% rename from school/lms/doctype/cohort_subgroup/test_cohort_subgroup.py rename to lms/lms/doctype/cohort_subgroup/test_cohort_subgroup.py diff --git a/school/lms/doctype/cohort_web_page/__init__.py b/lms/lms/doctype/cohort_web_page/__init__.py similarity index 100% rename from school/lms/doctype/cohort_web_page/__init__.py rename to lms/lms/doctype/cohort_web_page/__init__.py diff --git a/school/lms/doctype/cohort_web_page/cohort_web_page.json b/lms/lms/doctype/cohort_web_page/cohort_web_page.json similarity index 100% rename from school/lms/doctype/cohort_web_page/cohort_web_page.json rename to lms/lms/doctype/cohort_web_page/cohort_web_page.json diff --git a/school/lms/doctype/cohort_web_page/cohort_web_page.py b/lms/lms/doctype/cohort_web_page/cohort_web_page.py similarity index 100% rename from school/lms/doctype/cohort_web_page/cohort_web_page.py rename to lms/lms/doctype/cohort_web_page/cohort_web_page.py diff --git a/school/lms/doctype/course_chapter/__init__.py b/lms/lms/doctype/course_chapter/__init__.py similarity index 100% rename from school/lms/doctype/course_chapter/__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/lms/doctype/course_instructor/__init__.py b/lms/lms/doctype/course_instructor/__init__.py similarity index 100% rename from school/lms/doctype/course_instructor/__init__.py rename to lms/lms/doctype/course_instructor/__init__.py diff --git a/school/lms/doctype/course_instructor/course_instructor.json b/lms/lms/doctype/course_instructor/course_instructor.json similarity index 100% rename from school/lms/doctype/course_instructor/course_instructor.json rename to lms/lms/doctype/course_instructor/course_instructor.json diff --git a/school/lms/doctype/course_instructor/course_instructor.py b/lms/lms/doctype/course_instructor/course_instructor.py similarity index 100% rename from school/lms/doctype/course_instructor/course_instructor.py rename to lms/lms/doctype/course_instructor/course_instructor.py diff --git a/school/lms/doctype/course_lesson/__init__.py b/lms/lms/doctype/course_lesson/__init__.py similarity index 100% rename from school/lms/doctype/course_lesson/__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 98% rename from school/lms/doctype/course_lesson/course_lesson.py rename to lms/lms/doctype/course_lesson/course_lesson.py index ee0023b6..04504d5e 100644 --- a/school/lms/doctype/course_lesson/course_lesson.py +++ b/lms/lms/doctype/course_lesson/course_lesson.py @@ -6,7 +6,7 @@ from __future__ import unicode_literals import frappe from frappe.model.document import Document from ...md import find_macros -from school.lms.utils import get_course_progress, get_lesson_url +from lms.lms.utils import get_course_progress, get_lesson_url class CourseLesson(Document): def validate(self): 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/lms/doctype/education_detail/__init__.py b/lms/lms/doctype/education_detail/__init__.py similarity index 100% rename from school/lms/doctype/education_detail/__init__.py rename to lms/lms/doctype/education_detail/__init__.py diff --git a/school/lms/doctype/education_detail/education_detail.json b/lms/lms/doctype/education_detail/education_detail.json similarity index 100% rename from school/lms/doctype/education_detail/education_detail.json rename to lms/lms/doctype/education_detail/education_detail.json diff --git a/school/lms/doctype/education_detail/education_detail.py b/lms/lms/doctype/education_detail/education_detail.py similarity index 100% rename from school/lms/doctype/education_detail/education_detail.py rename to lms/lms/doctype/education_detail/education_detail.py diff --git a/school/lms/doctype/exercise/__init__.py b/lms/lms/doctype/exercise/__init__.py similarity index 100% rename from school/lms/doctype/exercise/__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 97% rename from school/lms/doctype/exercise/exercise.py rename to lms/lms/doctype/exercise/exercise.py index eb6c7bcb..cf4b2667 100644 --- a/school/lms/doctype/exercise/exercise.py +++ b/lms/lms/doctype/exercise/exercise.py @@ -3,7 +3,7 @@ import frappe from frappe.model.document import Document -from school.lms.utils import get_membership +from lms.lms.utils import get_membership class Exercise(Document): def get_user_submission(self): 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/lms/doctype/exercise_latest_submission/__init__.py b/lms/lms/doctype/exercise_latest_submission/__init__.py similarity index 100% rename from school/lms/doctype/exercise_latest_submission/__init__.py rename to lms/lms/doctype/exercise_latest_submission/__init__.py diff --git a/school/lms/doctype/exercise_latest_submission/exercise_latest_submission.js b/lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.js similarity index 100% rename from school/lms/doctype/exercise_latest_submission/exercise_latest_submission.js rename to lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.js diff --git a/school/lms/doctype/exercise_latest_submission/exercise_latest_submission.json b/lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.json similarity index 100% rename from school/lms/doctype/exercise_latest_submission/exercise_latest_submission.json rename to lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.json diff --git a/school/lms/doctype/exercise_latest_submission/exercise_latest_submission.py b/lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.py similarity index 100% rename from school/lms/doctype/exercise_latest_submission/exercise_latest_submission.py rename to lms/lms/doctype/exercise_latest_submission/exercise_latest_submission.py diff --git a/school/lms/doctype/exercise_latest_submission/test_exercise_latest_submission.py b/lms/lms/doctype/exercise_latest_submission/test_exercise_latest_submission.py similarity index 100% rename from school/lms/doctype/exercise_latest_submission/test_exercise_latest_submission.py rename to lms/lms/doctype/exercise_latest_submission/test_exercise_latest_submission.py diff --git a/school/lms/doctype/exercise_submission/__init__.py b/lms/lms/doctype/exercise_submission/__init__.py similarity index 100% rename from school/lms/doctype/exercise_submission/__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/lms/doctype/function/__init__.py b/lms/lms/doctype/function/__init__.py similarity index 100% rename from school/lms/doctype/function/__init__.py rename to lms/lms/doctype/function/__init__.py diff --git a/school/lms/doctype/function/function.js b/lms/lms/doctype/function/function.js similarity index 100% rename from school/lms/doctype/function/function.js rename to lms/lms/doctype/function/function.js diff --git a/school/lms/doctype/function/function.json b/lms/lms/doctype/function/function.json similarity index 100% rename from school/lms/doctype/function/function.json rename to lms/lms/doctype/function/function.json diff --git a/school/lms/doctype/function/function.py b/lms/lms/doctype/function/function.py similarity index 100% rename from school/lms/doctype/function/function.py rename to lms/lms/doctype/function/function.py diff --git a/school/lms/doctype/function/test_function.py b/lms/lms/doctype/function/test_function.py similarity index 100% rename from school/lms/doctype/function/test_function.py rename to lms/lms/doctype/function/test_function.py diff --git a/school/lms/doctype/industry/__init__.py b/lms/lms/doctype/industry/__init__.py similarity index 100% rename from school/lms/doctype/industry/__init__.py rename to lms/lms/doctype/industry/__init__.py diff --git a/school/lms/doctype/industry/industry.js b/lms/lms/doctype/industry/industry.js similarity index 100% rename from school/lms/doctype/industry/industry.js rename to lms/lms/doctype/industry/industry.js diff --git a/school/lms/doctype/industry/industry.json b/lms/lms/doctype/industry/industry.json similarity index 100% rename from school/lms/doctype/industry/industry.json rename to lms/lms/doctype/industry/industry.json diff --git a/school/lms/doctype/industry/industry.py b/lms/lms/doctype/industry/industry.py similarity index 100% rename from school/lms/doctype/industry/industry.py rename to lms/lms/doctype/industry/industry.py diff --git a/school/lms/doctype/industry/test_industry.py b/lms/lms/doctype/industry/test_industry.py similarity index 100% rename from school/lms/doctype/industry/test_industry.py rename to lms/lms/doctype/industry/test_industry.py diff --git a/school/lms/doctype/invite_request/__init__.py b/lms/lms/doctype/invite_request/__init__.py similarity index 100% rename from school/lms/doctype/invite_request/__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/lms/doctype/lesson_assignment/__init__.py b/lms/lms/doctype/lesson_assignment/__init__.py similarity index 100% rename from school/lms/doctype/lesson_assignment/__init__.py rename to lms/lms/doctype/lesson_assignment/__init__.py diff --git a/school/lms/doctype/lesson_assignment/lesson_assignment.js b/lms/lms/doctype/lesson_assignment/lesson_assignment.js similarity index 100% rename from school/lms/doctype/lesson_assignment/lesson_assignment.js rename to lms/lms/doctype/lesson_assignment/lesson_assignment.js diff --git a/school/lms/doctype/lesson_assignment/lesson_assignment.json b/lms/lms/doctype/lesson_assignment/lesson_assignment.json similarity index 100% rename from school/lms/doctype/lesson_assignment/lesson_assignment.json rename to lms/lms/doctype/lesson_assignment/lesson_assignment.json diff --git a/school/lms/doctype/lesson_assignment/lesson_assignment.py b/lms/lms/doctype/lesson_assignment/lesson_assignment.py similarity index 100% rename from school/lms/doctype/lesson_assignment/lesson_assignment.py rename to lms/lms/doctype/lesson_assignment/lesson_assignment.py diff --git a/school/lms/doctype/lesson_assignment/test_lesson_assignment.py b/lms/lms/doctype/lesson_assignment/test_lesson_assignment.py similarity index 100% rename from school/lms/doctype/lesson_assignment/test_lesson_assignment.py rename to lms/lms/doctype/lesson_assignment/test_lesson_assignment.py diff --git a/school/lms/doctype/lesson_reference/__init__.py b/lms/lms/doctype/lesson_reference/__init__.py similarity index 100% rename from school/lms/doctype/lesson_reference/__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/lms/doctype/lms_batch/__init__.py b/lms/lms/doctype/lms_batch/__init__.py similarity index 100% rename from school/lms/doctype/lms_batch/__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 94% rename from school/lms/doctype/lms_batch/lms_batch.py rename to lms/lms/doctype/lms_batch/lms_batch.py index 9643ddf4..183079f0 100644 --- a/school/lms/doctype/lms_batch/lms_batch.py +++ b/lms/lms/doctype/lms_batch/lms_batch.py @@ -6,9 +6,9 @@ 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 school.lms.utils import is_mentor +from lms.lms.doctype.lms_batch_membership.lms_batch_membership import create_membership +from lms.query import find, find_all +from lms.lms.utils import is_mentor 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/lms/doctype/lms_batch_membership/__init__.py b/lms/lms/doctype/lms_batch_membership/__init__.py similarity index 100% rename from school/lms/doctype/lms_batch_membership/__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/lms/doctype/lms_certification/__init__.py b/lms/lms/doctype/lms_certification/__init__.py similarity index 100% rename from school/lms/doctype/lms_certification/__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 97% rename from school/lms/doctype/lms_certification/lms_certification.py rename to lms/lms/doctype/lms_certification/lms_certification.py index d633d13d..1c5d9f51 100644 --- a/school/lms/doctype/lms_certification/lms_certification.py +++ b/lms/lms/doctype/lms_certification/lms_certification.py @@ -6,7 +6,7 @@ from frappe.model.document import Document from frappe.utils import nowdate, add_years from frappe import _ from frappe.utils.pdf import get_pdf -from school.lms.utils import is_certified +from lms.lms.utils import is_certified class LMSCertification(Document): diff --git a/school/lms/doctype/lms_certification/test_lms_certification.py b/lms/lms/doctype/lms_certification/test_lms_certification.py similarity index 82% rename from school/lms/doctype/lms_certification/test_lms_certification.py rename to lms/lms/doctype/lms_certification/test_lms_certification.py index 1585c79f..7a757f01 100644 --- a/school/lms/doctype/lms_certification/test_lms_certification.py +++ b/lms/lms/doctype/lms_certification/test_lms_certification.py @@ -3,8 +3,8 @@ import frappe import unittest -from school.lms.doctype.lms_course.test_lms_course import new_course -from school.lms.doctype.lms_certification.lms_certification import create_certificate +from lms.lms.doctype.lms_course.test_lms_course import new_course +from lms.lms.doctype.lms_certification.lms_certification import create_certificate from frappe.utils import nowdate, add_years, cint class TestLMSCertification(unittest.TestCase): diff --git a/school/lms/doctype/lms_course/__init__.py b/lms/lms/doctype/lms_course/__init__.py similarity index 100% rename from school/lms/doctype/lms_course/__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 671e6efb..b3429c05 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" @@ -225,4 +225,4 @@ "states": [], "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 97% rename from school/lms/doctype/lms_course/lms_course.py rename to lms/lms/doctype/lms_course/lms_course.py index 94648505..f814ce50 100644 --- a/school/lms/doctype/lms_course/lms_course.py +++ b/lms/lms/doctype/lms_course/lms_course.py @@ -6,9 +6,9 @@ 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 school.lms.utils import get_chapters +from lms.lms.utils import get_chapters class LMSCourse(Document): @@ -195,7 +195,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/lms/doctype/lms_course_enrollment/__init__.py b/lms/lms/doctype/lms_course_enrollment/__init__.py similarity index 100% rename from school/lms/doctype/lms_course_enrollment/__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/lms/doctype/lms_course_interest/__init__.py b/lms/lms/doctype/lms_course_interest/__init__.py similarity index 100% rename from school/lms/doctype/lms_course_interest/__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/lms/doctype/lms_course_mentor_mapping/__init__.py b/lms/lms/doctype/lms_course_mentor_mapping/__init__.py similarity index 100% rename from school/lms/doctype/lms_course_mentor_mapping/__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/lms/doctype/lms_course_progress/__init__.py b/lms/lms/doctype/lms_course_progress/__init__.py similarity index 100% rename from school/lms/doctype/lms_course_progress/__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/lms/doctype/lms_course_review/__init__.py b/lms/lms/doctype/lms_course_review/__init__.py similarity index 100% rename from school/lms/doctype/lms_course_review/__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/lms/doctype/lms_mentor_request/__init__.py b/lms/lms/doctype/lms_mentor_request/__init__.py similarity index 100% rename from school/lms/doctype/lms_mentor_request/__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/lms/doctype/lms_option/__init__.py b/lms/lms/doctype/lms_option/__init__.py similarity index 100% rename from school/lms/doctype/lms_option/__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/lms/doctype/lms_quiz/__init__.py b/lms/lms/doctype/lms_quiz/__init__.py similarity index 100% rename from school/lms/doctype/lms_quiz/__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/lms/doctype/lms_quiz_question/__init__.py b/lms/lms/doctype/lms_quiz_question/__init__.py similarity index 100% rename from school/lms/doctype/lms_quiz_question/__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/lms/doctype/lms_quiz_result/__init__.py b/lms/lms/doctype/lms_quiz_result/__init__.py similarity index 100% rename from school/lms/doctype/lms_quiz_result/__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/lms/doctype/lms_quiz_submission/__init__.py b/lms/lms/doctype/lms_quiz_submission/__init__.py similarity index 100% rename from school/lms/doctype/lms_quiz_submission/__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/lms/doctype/lms_settings/__init__.py b/lms/lms/doctype/lms_settings/__init__.py similarity index 100% rename from school/lms/doctype/lms_settings/__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/doctype/preferred_function/__init__.py b/lms/lms/doctype/preferred_function/__init__.py similarity index 100% rename from school/lms/doctype/preferred_function/__init__.py rename to lms/lms/doctype/preferred_function/__init__.py diff --git a/school/lms/doctype/preferred_function/preferred_function.json b/lms/lms/doctype/preferred_function/preferred_function.json similarity index 100% rename from school/lms/doctype/preferred_function/preferred_function.json rename to lms/lms/doctype/preferred_function/preferred_function.json diff --git a/school/lms/doctype/preferred_function/preferred_function.py b/lms/lms/doctype/preferred_function/preferred_function.py similarity index 100% rename from school/lms/doctype/preferred_function/preferred_function.py rename to lms/lms/doctype/preferred_function/preferred_function.py diff --git a/school/lms/doctype/preferred_industry/__init__.py b/lms/lms/doctype/preferred_industry/__init__.py similarity index 100% rename from school/lms/doctype/preferred_industry/__init__.py rename to lms/lms/doctype/preferred_industry/__init__.py diff --git a/school/lms/doctype/preferred_industry/preferred_industry.js b/lms/lms/doctype/preferred_industry/preferred_industry.js similarity index 100% rename from school/lms/doctype/preferred_industry/preferred_industry.js rename to lms/lms/doctype/preferred_industry/preferred_industry.js diff --git a/school/lms/doctype/preferred_industry/preferred_industry.json b/lms/lms/doctype/preferred_industry/preferred_industry.json similarity index 100% rename from school/lms/doctype/preferred_industry/preferred_industry.json rename to lms/lms/doctype/preferred_industry/preferred_industry.json diff --git a/school/lms/doctype/preferred_industry/preferred_industry.py b/lms/lms/doctype/preferred_industry/preferred_industry.py similarity index 100% rename from school/lms/doctype/preferred_industry/preferred_industry.py rename to lms/lms/doctype/preferred_industry/preferred_industry.py diff --git a/school/lms/doctype/preferred_industry/test_preferred_industry.py b/lms/lms/doctype/preferred_industry/test_preferred_industry.py similarity index 100% rename from school/lms/doctype/preferred_industry/test_preferred_industry.py rename to lms/lms/doctype/preferred_industry/test_preferred_industry.py diff --git a/school/lms/doctype/related_courses/__init__.py b/lms/lms/doctype/related_courses/__init__.py similarity index 100% rename from school/lms/doctype/related_courses/__init__.py rename to lms/lms/doctype/related_courses/__init__.py diff --git a/school/lms/doctype/related_courses/related_courses.js b/lms/lms/doctype/related_courses/related_courses.js similarity index 100% rename from school/lms/doctype/related_courses/related_courses.js rename to lms/lms/doctype/related_courses/related_courses.js diff --git a/school/lms/doctype/related_courses/related_courses.json b/lms/lms/doctype/related_courses/related_courses.json similarity index 100% rename from school/lms/doctype/related_courses/related_courses.json rename to lms/lms/doctype/related_courses/related_courses.json diff --git a/school/lms/doctype/related_courses/related_courses.py b/lms/lms/doctype/related_courses/related_courses.py similarity index 100% rename from school/lms/doctype/related_courses/related_courses.py rename to lms/lms/doctype/related_courses/related_courses.py diff --git a/school/lms/doctype/related_courses/test_related_courses.py b/lms/lms/doctype/related_courses/test_related_courses.py similarity index 100% rename from school/lms/doctype/related_courses/test_related_courses.py rename to lms/lms/doctype/related_courses/test_related_courses.py diff --git a/school/lms/doctype/skill/__init__.py b/lms/lms/doctype/skill/__init__.py similarity index 100% rename from school/lms/doctype/skill/__init__.py rename to lms/lms/doctype/skill/__init__.py diff --git a/school/lms/doctype/skill/skill.js b/lms/lms/doctype/skill/skill.js similarity index 100% rename from school/lms/doctype/skill/skill.js rename to lms/lms/doctype/skill/skill.js diff --git a/school/lms/doctype/skill/skill.json b/lms/lms/doctype/skill/skill.json similarity index 100% rename from school/lms/doctype/skill/skill.json rename to lms/lms/doctype/skill/skill.json diff --git a/school/lms/doctype/skill/skill.py b/lms/lms/doctype/skill/skill.py similarity index 100% rename from school/lms/doctype/skill/skill.py rename to lms/lms/doctype/skill/skill.py diff --git a/school/lms/doctype/skill/test_skill.py b/lms/lms/doctype/skill/test_skill.py similarity index 100% rename from school/lms/doctype/skill/test_skill.py rename to lms/lms/doctype/skill/test_skill.py diff --git a/school/lms/doctype/skills/__init__.py b/lms/lms/doctype/skills/__init__.py similarity index 100% rename from school/lms/doctype/skills/__init__.py rename to lms/lms/doctype/skills/__init__.py diff --git a/school/lms/doctype/skills/skills.js b/lms/lms/doctype/skills/skills.js similarity index 100% rename from school/lms/doctype/skills/skills.js rename to lms/lms/doctype/skills/skills.js diff --git a/school/lms/doctype/skills/skills.json b/lms/lms/doctype/skills/skills.json similarity index 100% rename from school/lms/doctype/skills/skills.json rename to lms/lms/doctype/skills/skills.json diff --git a/school/lms/doctype/skills/skills.py b/lms/lms/doctype/skills/skills.py similarity index 100% rename from school/lms/doctype/skills/skills.py rename to lms/lms/doctype/skills/skills.py diff --git a/school/lms/doctype/skills/test_skills.py b/lms/lms/doctype/skills/test_skills.py similarity index 100% rename from school/lms/doctype/skills/test_skills.py rename to lms/lms/doctype/skills/test_skills.py diff --git a/school/lms/doctype/work_experience/__init__.py b/lms/lms/doctype/work_experience/__init__.py similarity index 100% rename from school/lms/doctype/work_experience/__init__.py rename to lms/lms/doctype/work_experience/__init__.py diff --git a/school/lms/doctype/work_experience/work_experience.json b/lms/lms/doctype/work_experience/work_experience.json similarity index 100% rename from school/lms/doctype/work_experience/work_experience.json rename to lms/lms/doctype/work_experience/work_experience.json diff --git a/school/lms/doctype/work_experience/work_experience.py b/lms/lms/doctype/work_experience/work_experience.py similarity index 100% rename from school/lms/doctype/work_experience/work_experience.py rename to lms/lms/doctype/work_experience/work_experience.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/lms/report/__init__.py b/lms/lms/report/__init__.py similarity index 100% rename from school/lms/report/__init__.py rename to lms/lms/report/__init__.py diff --git a/school/lms/report/course_progress_summary/__init__.py b/lms/lms/report/course_progress_summary/__init__.py similarity index 100% rename from school/lms/report/course_progress_summary/__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 99% rename from school/lms/utils.py rename to lms/lms/utils.py index 4df6f045..af175462 100644 --- a/school/lms/utils.py +++ b/lms/lms/utils.py @@ -1,7 +1,7 @@ import re import frappe from frappe.utils import flt, cint, cstr -from school.lms.md import markdown_to_html, find_macros +from lms.lms.md import markdown_to_html, find_macros import string from frappe import _ diff --git a/school/lms/web_form/__init__.py b/lms/lms/web_form/__init__.py similarity index 100% rename from school/lms/web_form/__init__.py rename to lms/lms/web_form/__init__.py diff --git a/school/lms/web_form/add_a_new_batch/__init__.py b/lms/lms/web_form/add_a_new_batch/__init__.py similarity index 100% rename from school/lms/web_form/add_a_new_batch/__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/lms/web_form/chapter/__init__.py b/lms/lms/web_form/chapter/__init__.py similarity index 100% rename from school/lms/web_form/chapter/__init__.py rename to lms/lms/web_form/chapter/__init__.py diff --git a/school/lms/web_form/chapter/chapter.js b/lms/lms/web_form/chapter/chapter.js similarity index 100% rename from school/lms/web_form/chapter/chapter.js rename to lms/lms/web_form/chapter/chapter.js diff --git a/school/lms/web_form/chapter/chapter.json b/lms/lms/web_form/chapter/chapter.json similarity index 100% rename from school/lms/web_form/chapter/chapter.json rename to lms/lms/web_form/chapter/chapter.json diff --git a/school/lms/web_form/chapter/chapter.py b/lms/lms/web_form/chapter/chapter.py similarity index 100% rename from school/lms/web_form/chapter/chapter.py rename to lms/lms/web_form/chapter/chapter.py diff --git a/school/lms/web_form/course/__init__.py b/lms/lms/web_form/course/__init__.py similarity index 100% rename from school/lms/web_form/course/__init__.py rename to lms/lms/web_form/course/__init__.py diff --git a/school/lms/web_form/course/course.js b/lms/lms/web_form/course/course.js similarity index 100% rename from school/lms/web_form/course/course.js rename to lms/lms/web_form/course/course.js diff --git a/school/lms/web_form/course/course.json b/lms/lms/web_form/course/course.json similarity index 100% rename from school/lms/web_form/course/course.json rename to lms/lms/web_form/course/course.json diff --git a/school/lms/web_form/course/course.py b/lms/lms/web_form/course/course.py similarity index 100% rename from school/lms/web_form/course/course.py rename to lms/lms/web_form/course/course.py diff --git a/school/lms/web_form/lesson/__init__.py b/lms/lms/web_form/lesson/__init__.py similarity index 100% rename from school/lms/web_form/lesson/__init__.py rename to lms/lms/web_form/lesson/__init__.py diff --git a/school/lms/web_form/lesson/lesson.js b/lms/lms/web_form/lesson/lesson.js similarity index 85% rename from school/lms/web_form/lesson/lesson.js rename to lms/lms/web_form/lesson/lesson.js index 0044ba2d..4347f730 100644 --- a/school/lms/web_form/lesson/lesson.js +++ b/lms/lms/web_form/lesson/lesson.js @@ -1,7 +1,7 @@ frappe.ready(function() { frappe.web_form.after_save = () => { frappe.call({ - method: "school.lms.doctype.course_lesson.course_lesson.get_lesson_info", + method: "lms.lms.doctype.course_lesson.course_lesson.get_lesson_info", args: { "chapter": frappe.web_form.doc.chapter }, diff --git a/school/lms/web_form/lesson/lesson.json b/lms/lms/web_form/lesson/lesson.json similarity index 100% rename from school/lms/web_form/lesson/lesson.json rename to lms/lms/web_form/lesson/lesson.json diff --git a/school/lms/web_form/lesson/lesson.py b/lms/lms/web_form/lesson/lesson.py similarity index 100% rename from school/lms/web_form/lesson/lesson.py rename to lms/lms/web_form/lesson/lesson.py diff --git a/school/lms/web_form/profile/__init__.py b/lms/lms/web_form/profile/__init__.py similarity index 100% rename from school/lms/web_form/profile/__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/lms/web_template/__init__.py b/lms/lms/web_template/__init__.py similarity index 100% rename from school/lms/web_template/__init__.py rename to lms/lms/web_template/__init__.py diff --git a/school/lms/web_template/course_cards/__init__.py b/lms/lms/web_template/course_cards/__init__.py similarity index 100% rename from school/lms/web_template/course_cards/__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 405697e7..4c5b8a36 100644 --- a/school/lms/web_template/course_cards/course_cards.html +++ b/lms/lms/web_template/course_cards/course_cards.html @@ -9,6 +9,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/lms/web_template/courses_enrolled/__init__.py b/lms/lms/web_template/courses_enrolled/__init__.py similarity index 100% rename from school/lms/web_template/courses_enrolled/__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/lms/web_template/courses_mentored/__init__.py b/lms/lms/web_template/courses_mentored/__init__.py similarity index 100% rename from school/lms/web_template/courses_mentored/__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/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 @@ {% 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 97% rename from school/www/courses/course.html rename to lms/www/courses/course.html index 405586b5..b83ad23e 100644 --- a/school/www/courses/course.html +++ b/lms/www/courses/course.html @@ -46,7 +46,7 @@ {% macro BreadCrumb(course) %} {% endmacro %} @@ -184,25 +184,25 @@ {% if show_start_learing_cta %}
{{ _("Start Learning") }} - +
{% elif is_instructor(course.name) and not course.is_published and course.status != "Under Review" %}
{{ _("Submit for Review") }} - +
{% elif is_instructor(course.name) %} - {{ _("Checkout Course") }} + {{ _("Checkout Course") }} {% elif membership %} - {{ _("Continue Learning") }} + {{ _("Continue Learning") }} {% elif course.upcoming and not is_user_interested %} 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 67447feb..305b4b95 100644 --- a/school/www/courses/course.js +++ b/lms/www/courses/course.js @@ -55,7 +55,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")), }, @@ -94,7 +94,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")) }, @@ -110,7 +110,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")) }, @@ -133,7 +133,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 @@ -188,7 +188,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, @@ -212,7 +212,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 }, @@ -227,7 +227,7 @@ const create_certificate = (e) => { 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 }, @@ -264,7 +264,7 @@ const handle_overlay_display = () => { const submit_for_review = (e) => { let course = $(e.currentTarget).data("course"); frappe.call({ - method: "school.lms.doctype.lms_course.lms_course.submit_for_review", + method: "lms.lms.doctype.lms_course.lms_course.submit_for_review", args: { "course": course }, diff --git a/school/www/courses/course.py b/lms/www/courses/course.py similarity index 93% rename from school/www/courses/course.py rename to lms/www/courses/course.py index b8bfc35a..0e82e470 100644 --- a/school/www/courses/course.py +++ b/lms/www/courses/course.py @@ -1,6 +1,6 @@ import frappe -from school.lms.doctype.lms_settings.lms_settings import check_profile_restriction -from school.lms.utils import get_membership, is_instructor +from lms.lms.doctype.lms_settings.lms_settings import check_profile_restriction +from lms.lms.utils import get_membership, is_instructor def get_context(context): context.no_cache = 1 diff --git a/school/www/courses/index.html b/lms/www/courses/index.html similarity index 85% rename from school/www/courses/index.html rename to lms/www/courses/index.html index 977c0794..05e3b26f 100644 --- a/school/www/courses/index.html +++ b/lms/www/courses/index.html @@ -17,17 +17,17 @@ {% else %} - {% include "school/templates/search_course/search_course.html" %} + {% include "lms/templates/search_course/search_course.html" %}
{% set courses = live_courses %} {% set title = _("All Live Courses ({0})").format(courses | length) %} {% set classes = "live-courses" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %} {% set courses = upcoming_courses %} {% set title = _("All Upcoming Courses ({0})").format(courses | length) %} {% set classes = "upcoming-courses mt-10" %} - {% include "school/templates/course_list.html" %} + {% include "lms/templates/course_list.html" %}
{% endif %} diff --git a/school/www/courses/index.py b/lms/www/courses/index.py similarity index 91% rename from school/www/courses/index.py rename to lms/www/courses/index.py index 0f81e601..5b82d844 100644 --- a/school/www/courses/index.py +++ b/lms/www/courses/index.py @@ -1,5 +1,5 @@ import frappe -from school.lms.doctype.lms_settings.lms_settings import check_profile_restriction +from lms.lms.doctype.lms_settings.lms_settings import check_profile_restriction def get_context(context): context.no_cache = 1 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/www/dashboard/__init__.py b/lms/www/dashboard/__init__.py similarity index 100% rename from school/www/dashboard/__init__.py rename to lms/www/dashboard/__init__.py diff --git a/school/www/dashboard/index.html b/lms/www/dashboard/index.html similarity index 92% rename from school/www/dashboard/index.html rename to lms/www/dashboard/index.html index c643915d..9f46f375 100644 --- a/school/www/dashboard/index.html +++ b/lms/www/dashboard/index.html @@ -26,11 +26,11 @@
- {% include "school/lms/web_template/courses_enrolled/courses_enrolled.html" %} + {% include "lms/lms/web_template/courses_enrolled/courses_enrolled.html" %}
{% if portal_course_creation %}
- {% include "school/templates/courses_created.html" %} + {% include "lms/templates/courses_created.html" %}
{% endif %}
diff --git a/school/www/hackathons/__init__.py b/lms/www/hackathons/__init__.py similarity index 100% rename from school/www/hackathons/__init__.py rename to lms/www/hackathons/__init__.py diff --git a/school/www/hackathons/__pycache__/__init__.py b/lms/www/hackathons/__pycache__/__init__.py similarity index 100% rename from school/www/hackathons/__pycache__/__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/www/hackathons/macros/__init__.py b/lms/www/hackathons/macros/__init__.py similarity index 100% rename from school/www/hackathons/macros/__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/www/jobs/__init__.py b/lms/www/jobs/__init__.py similarity index 100% rename from school/www/jobs/__init__.py rename to lms/www/jobs/__init__.py diff --git a/school/www/jobs/index.html b/lms/www/jobs/index.html similarity index 96% rename from school/www/jobs/index.html rename to lms/www/jobs/index.html index 1c0b3e71..decdc2c0 100644 --- a/school/www/jobs/index.html +++ b/lms/www/jobs/index.html @@ -52,7 +52,7 @@
- +
{{ _("No open jobs") }}
diff --git a/school/www/jobs/index.py b/lms/www/jobs/index.py similarity index 100% rename from school/www/jobs/index.py rename to lms/www/jobs/index.py diff --git a/school/www/jobs/job.html b/lms/www/jobs/job.html similarity index 98% rename from school/www/jobs/job.html rename to lms/www/jobs/job.html index 24e9b621..29304896 100644 --- a/school/www/jobs/job.html +++ b/lms/www/jobs/job.html @@ -90,7 +90,7 @@ {% macro BreadCrumb(job) %} {% endmacro %} diff --git a/school/www/jobs/job.js b/lms/www/jobs/job.js similarity index 91% rename from school/www/jobs/job.js rename to lms/www/jobs/job.js index 346312a7..a191d72c 100644 --- a/school/www/jobs/job.js +++ b/lms/www/jobs/job.js @@ -19,7 +19,7 @@ const open_report_dialog = (e) => { const report = (e) => { frappe.call({ - method: "school.job.doctype.job_opportunity.job_opportunity.report", + method: "lms.job.doctype.job_opportunity.job_opportunity.report", args: { "job": $(e.currentTarget).data("job"), "reason": $(".report-field").val() diff --git a/school/www/jobs/job.py b/lms/www/jobs/job.py similarity index 100% rename from school/www/jobs/job.py rename to lms/www/jobs/job.py diff --git a/school/www/macros/__init__.py b/lms/www/macros/__init__.py similarity index 100% rename from school/www/macros/__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) { - +