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
64346d72
Commit
64346d72
authored
Aug 02, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todos and comments
parent
fd796478
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
common/lib/xmodule/xmodule/editing_module.py
+6
-1
lms/djangoapps/courseware/views.py
+3
-2
No files found.
common/lib/xmodule/xmodule/editing_module.py
View file @
64346d72
...
...
@@ -20,5 +20,10 @@ class EditingDescriptor(MakoModuleDescriptor):
def
get_context
(
self
):
return
{
'module'
:
self
,
'data'
:
self
.
definition
[
'data'
],
'data'
:
self
.
definition
.
get
(
'data'
,
''
),
# TODO (vshnayder): allow children and metadata to be edited.
#'children' : self.definition.get('children, ''),
# TODO: show both own metadata and inherited?
#'metadata' : self.own_metadata,
}
lms/djangoapps/courseware/views.py
View file @
64346d72
...
...
@@ -117,7 +117,7 @@ def profile(request, course_id, student_id=None):
student_module_cache
=
StudentModuleCache
(
request
.
user
,
course
)
course_module
,
_
,
_
,
_
=
get_module
(
request
.
user
,
request
,
course
.
location
,
student_module_cache
)
context
=
{
'name'
:
user_info
.
name
,
'username'
:
student
.
username
,
'location'
:
user_info
.
location
,
...
...
@@ -243,6 +243,7 @@ def index(request, course_id, chapter=None, section=None,
return
result
@ensure_csrf_cookie
def
jump_to
(
request
,
location
):
'''
...
...
@@ -269,7 +270,7 @@ def jump_to(request, location):
except
NoPathToItem
:
raise
Http404
(
"This location is not in any class: {0}"
.
format
(
location
))
# Rely on index to do all error handling
return
index
(
request
,
course_id
,
chapter
,
section
,
position
)
@ensure_csrf_cookie
...
...
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