Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
74f48635
Commit
74f48635
authored
Jul 31, 2014
by
stv
Browse files
Options
Browse Files
Download
Plain Diff
Merge PR #98
from 'stv/bugfix_bad_merge_conflict_resolutions' into 'master'
parents
d00d8198
c5c1263c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 additions
and
10 deletions
+1
-10
cms/djangoapps/contentstore/tests/test_utilities.py
+0
-2
cms/djangoapps/contentstore/views/component.py
+1
-0
cms/urls.py
+0
-3
lms/djangoapps/courseware/access.py
+0
-5
No files found.
cms/djangoapps/contentstore/tests/test_utilities.py
View file @
74f48635
...
...
@@ -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'
)
...
...
cms/djangoapps/contentstore/views/component.py
View file @
74f48635
...
...
@@ -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'
,
...
...
cms/urls.py
View file @
74f48635
...
...
@@ -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'
),
...
...
lms/djangoapps/courseware/access.py
View file @
74f48635
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment