From 8d0e469cd31b23b048fc7eb040d317641e9cb768 Mon Sep 17 00:00:00 2001 From: Tim Babych Date: Thu, 24 Jul 2014 14:55:10 +0300 Subject: [PATCH] Remove code and template responsible for subsection edit page --- .../contentstore/tests/test_contentstore.py | 5 - .../contentstore/views/component.py | 3 - .../coffee/spec/views/overview_spec.coffee | 99 ---- cms/static/js/base.js | 249 +-------- cms/static/sass/style-app-extend1.scss | 1 - cms/static/sass/views/_subsection.scss | 511 ------------------ cms/templates/container.html | 1 - cms/templates/edit_subsection.html | 130 ----- cms/templates/ux/reference/container.html | 1 - cms/templates/widgets/units.html | 55 -- cms/urls.py | 1 - common/djangoapps/terrain/ui_helpers.py | 2 +- lms/static/js/verify_student/photocapture.js | 10 +- 13 files changed, 13 insertions(+), 1055 deletions(-) delete mode 100644 cms/static/coffee/spec/views/overview_spec.coffee delete mode 100644 cms/static/sass/views/_subsection.scss delete mode 100644 cms/templates/edit_subsection.html delete mode 100644 cms/templates/widgets/units.html diff --git a/cms/djangoapps/contentstore/tests/test_contentstore.py b/cms/djangoapps/contentstore/tests/test_contentstore.py index 27865abfa4..659bd9eca5 100644 --- a/cms/djangoapps/contentstore/tests/test_contentstore.py +++ b/cms/djangoapps/contentstore/tests/test_contentstore.py @@ -1289,11 +1289,6 @@ class ContentStoreTest(ContentStoreTestCase): test_get_html('advanced_settings_handler') test_get_html('textbooks_list_handler') - # go look at a subsection page - subsection_key = course_key.make_usage_key('sequential', 'test_sequence') - resp = self.client.get_html(get_url('subsection_handler', subsection_key)) - self.assertEqual(resp.status_code, 200) - # go look at the Edit page unit_key = course_key.make_usage_key('vertical', 'test_vertical') resp = self.client.get_html(get_url('container_handler', unit_key)) diff --git a/cms/djangoapps/contentstore/views/component.py b/cms/djangoapps/contentstore/views/component.py index 0da0a25e82..7ca319fe13 100644 --- a/cms/djangoapps/contentstore/views/component.py +++ b/cms/djangoapps/contentstore/views/component.py @@ -17,7 +17,6 @@ from xmodule.modulestore.django import modulestore from xblock.core import XBlock from xblock.django.request import webob_to_django_response, django_to_webob_request from xblock.exceptions import NoSuchHandlerError -from xblock.fields import Scope from xblock.plugin import PluginMissingError from xblock.runtime import Mixologist @@ -25,7 +24,6 @@ from contentstore.utils import get_lms_link_for_item from contentstore.views.helpers import get_parent_xblock, is_unit, xblock_type_display_name from contentstore.views.item import create_xblock_info -from models.settings.course_grading import CourseGradingModel from opaque_keys.edx.keys import UsageKey from .access import has_course_access @@ -33,7 +31,6 @@ from django.utils.translation import ugettext as _ __all__ = ['OPEN_ENDED_COMPONENT_TYPES', 'ADVANCED_COMPONENT_POLICY_KEY', - 'subsection_handler', 'container_handler', 'component_handler' ] diff --git a/cms/static/coffee/spec/views/overview_spec.coffee b/cms/static/coffee/spec/views/overview_spec.coffee deleted file mode 100644 index 333e369bc2..0000000000 --- a/cms/static/coffee/spec/views/overview_spec.coffee +++ /dev/null @@ -1,99 +0,0 @@ -define ["js/views/overview", "js/views/feedback_notification", "js/spec_helpers/create_sinon", "js/base", "date", "jquery.timepicker"], -(Overview, Notification, create_sinon) -> - - describe "Course Overview", -> - beforeEach -> - appendSetFixtures """ -
- - Release date: 06/12/2013 at 04:00 UTC - - Edit section release date -
- """ - - appendSetFixtures """ -