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
7710e7a6
Commit
7710e7a6
authored
Jun 20, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #125 from MITx/victor/fix_accordion
Fix accordion rendering bug
parents
65d02819
39c57af8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
lms/djangoapps/courseware/views.py
+5
-6
No files found.
lms/djangoapps/courseware/views.py
View file @
7710e7a6
...
...
@@ -255,16 +255,12 @@ def index(request, course=None, chapter=None, section=None,
If there's an error, returns
{'content': module-error message}
'''
# Can't modify variables of outer scope, so need new ones
chapter_
=
clean
(
chapter
)
section_
=
clean
(
section
)
user
=
request
.
user
module_xml
=
get_module_xml
(
user
,
course
,
chapter
_
,
section_
)
module_xml
=
get_module_xml
(
user
,
course
,
chapter
,
section
)
if
module_xml
is
None
:
log
.
exception
(
"couldn't get module_xml: course/chapter/section: '
%
s/
%
s/
%
s'"
,
course
,
chapter
_
,
section_
)
course
,
chapter
,
section
)
return
{
'content'
:
render_to_string
(
"module-error.html"
,
{})}
student_module_cache
=
preload_student_modules
(
module_xml
)
...
...
@@ -289,6 +285,9 @@ def index(request, course=None, chapter=None, section=None,
# keep track of current course being viewed in django's request.session
request
.
session
[
'coursename'
]
=
course
chapter
=
clean
(
chapter
)
section
=
clean
(
section
)
context
=
{
'csrf'
:
csrf
(
request
)[
'csrf_token'
],
'accordion'
:
render_accordion
(
request
,
course
,
chapter
,
section
),
...
...
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