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
f840e241
Commit
f840e241
authored
Jan 14, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
7c6e33ac
e4831106
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
courseware/capa_module.py
+2
-0
static_template_view/views.py
+4
-5
No files found.
courseware/capa_module.py
View file @
f840e241
...
...
@@ -292,6 +292,8 @@ class LoncapaModule(XModule):
self
.
lcp
.
done
=
False
self
.
lcp
.
answers
=
dict
()
self
.
lcp
.
correct_map
=
dict
()
self
.
lcp
.
student_answers
=
dict
()
if
self
.
rerandomize
:
self
.
lcp
.
context
=
dict
()
...
...
static_template_view/views.py
View file @
f840e241
...
...
@@ -5,17 +5,16 @@
from
djangomako.shortcuts
import
render_to_response
,
render_to_string
from
django.shortcuts
import
redirect
from
auth.views
import
csrf
from
django.core.context_processors
import
csrf
#valid_templates=['index.html', 'staff.html', 'info.html', 'credits.html']
valid_templates
=
[
'mitx
.html'
,
'index.html'
,
'courseinfo
.html'
]
valid_templates
=
[
'mitx
_global.html'
,
'index
.html'
]
def
index
(
request
,
template
):
csrf_token
=
csrf
(
request
)[
'csrf_token'
]
if
template
in
valid_templates
:
return
render_to_response
(
template
,{
'error'
:
''
,
'csrf'
:
csrf_token
})
return
render_to_response
(
template
,
{
'error'
:
''
,
'csrf'
:
csrf_token
})
else
:
return
redirect
(
'/'
)
...
...
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