Commit 74f48635 by stv

Merge PR #98

from 'stv/bugfix_bad_merge_conflict_resolutions'
into 'master'
parents d00d8198 c5c1263c
......@@ -40,7 +40,6 @@ class UtilitiesTestCase(CourseTestCase):
response = self.client.get(self.utilities_url)
self.assertContains(response, "Bulk Operations")
# Verify expansion of action URL happened.
#self.assertContains(response, '/utility/captions/slashes:mitX+333+Utilities_Course')
self.assertContains(response, '/utility/captions/mitX/333/Utilities_Course')
# Verify persisted utility does NOT have expanded URL.
utility_0 = self.get_persisted_utilities()[0]
......@@ -105,7 +104,6 @@ class UtilitiesTestCase(CourseTestCase):
# Verify no side effect in the original list.
self.assertEqual(get_action_url(utility, index), stored)
#test_expansion(settings.COURSE_UTILITIES[0], 0, 'utility_captions_handler', '/utility/captions/slashes:mitX+333+Utilities_Course')
test_expansion(settings.COURSE_UTILITIES[0], 0, 'utility_captions_handler', '/utility/captions/mitX/333/Utilities_Course')
......
......@@ -66,6 +66,7 @@ else:
'concept', # Concept mapper. See https://github.com/pmitros/ConceptXBlock
'done', # Lets students mark things as done. See https://github.com/pmitros/DoneXBlock
'audio', # Embed an audio file. See https://github.com/pmitros/AudioXBlock
'edx_sga', # that weird grading xblock thing - remove this next merge
SPLIT_TEST_COMPONENT_TYPE, # Adds A/B test support
'recommender', # Crowdsourced recommender. Prototype by dli&pmitros. Intended for roll-out in one place in one course.
'ooyala-player',
......
......@@ -72,9 +72,6 @@ urlpatterns += patterns(
r'^course_info_update/{}/(?P<provided_id>\d+)?$'.format(settings.COURSE_KEY_PATTERN),
'course_info_update_handler'
),
#url(r'^utilities/(?P<course_key_string>[^/]+)$', 'utility_handler'),
#url(r'^utility/captions/(?P<course_key_string>[^/]+)$', 'utility_captions_handler'),
#url(r'^utility/bulksettings/(?P<course_key_string>[^/]+)$', 'utility_bulksettings_handler'),
url(r'^utilities/{}$'.format(settings.COURSE_KEY_PATTERN), 'utility_handler'),
url(r'^utility/captions/{}$'.format(settings.COURSE_KEY_PATTERN), 'utility_captions_handler'),
url(r'^utility/bulksettings/{}$'.format(settings.COURSE_KEY_PATTERN), 'utility_bulksettings_handler'),
......
......@@ -170,11 +170,6 @@ def _has_access_course_desc(user, action, course):
else:
reg_method_ok = True # if not using this access check, it's always OK.
#if reg_method_ok and within_enrollment_period():
# # in enrollment period, so any user is allowed to enroll.
# debug("Allow: in enrollment period")
# return True
now = datetime.now(UTC())
start = course.enrollment_start or datetime.min.replace(tzinfo=pytz.UTC)
end = course.enrollment_end or datetime.max.replace(tzinfo=pytz.UTC)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment