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
03d9a6fd
Commit
03d9a6fd
authored
Sep 22, 2014
by
Waheed Ahmed
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5277 from edx/waheed/tnl413-fix-course-id-kwarg-on-merge-wiki
Fixed wiki merge url regex.
parents
f827c538
3e64faea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
lms/envs/common.py
+1
-0
lms/urls.py
+1
-1
No files found.
lms/envs/common.py
View file @
03d9a6fd
...
...
@@ -469,6 +469,7 @@ LMS_MIGRATION_ALLOWED_IPS = []
# too many inadvertent side effects :-(
COURSE_KEY_PATTERN
=
r'(?P<course_key_string>[^/+]+(/|\+)[^/+]+(/|\+)[^/]+)'
COURSE_ID_PATTERN
=
COURSE_KEY_PATTERN
.
replace
(
'course_key_string'
,
'course_id'
)
COURSE_KEY_REGEX
=
COURSE_KEY_PATTERN
.
replace
(
'P<course_key_string>'
,
':'
)
USAGE_KEY_PATTERN
=
r'(?P<usage_key_string>(?:i4x://?[^/]+/[^/]+/[^/]+/[^@]+(?:@[^/]+)?)|(?:[^/]+))'
ASSET_KEY_PATTERN
=
r'(?P<asset_key_string>(?:/?c4x(:/)?/[^/]+/[^/]+/[^/]+/[^@]+(?:@[^/]+)?)|(?:[^/]+))'
...
...
lms/urls.py
View file @
03d9a6fd
...
...
@@ -188,7 +188,7 @@ if settings.WIKI_ENABLED:
# never be returned by a reverse() so they come after the other url patterns
url
(
r'^courses/{}/course_wiki/?$'
.
format
(
settings
.
COURSE_ID_PATTERN
),
'course_wiki.views.course_wiki_redirect'
,
name
=
"course_wiki"
),
url
(
r'^courses/{}/wiki/'
.
format
(
settings
.
COURSE_
ID_PATTERN
),
include
(
wiki_pattern
())),
url
(
r'^courses/{}/wiki/'
.
format
(
settings
.
COURSE_
KEY_REGEX
),
include
(
wiki_pattern
())),
)
if
settings
.
COURSEWARE_ENABLED
:
...
...
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