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
04a7be0a
Commit
04a7be0a
authored
Jan 27, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed e-mail in URLs.py, fixed 2 gjs bugs
parent
1268530f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
courseware/capa/capa_problem.py
+1
-1
courseware/capa/responsetypes.py
+3
-1
urls.py
+1
-1
No files found.
courseware/capa/capa_problem.py
View file @
04a7be0a
...
...
@@ -133,7 +133,7 @@ class LoncapaProblem(object):
for
entry
in
problems_simple
.
xpath
(
"//"
+
"|//"
.
join
(
response_properties
+
entry_types
)):
answer
=
entry
.
get
(
'correct_answer'
)
if
answer
!=
None
:
answer_map
[
entry
.
get
(
'id'
)]
=
contextualize_text
(
answer
,
self
.
context
()
)
answer_map
[
entry
.
get
(
'id'
)]
=
contextualize_text
(
answer
,
self
.
context
)
return
answer_map
...
...
courseware/capa/responsetypes.py
View file @
04a7be0a
...
...
@@ -8,7 +8,9 @@ from django.conf import settings
global_context
=
{
'random'
:
random
,
'numpy'
:
numpy
,
'math'
:
math
,
'scipy'
:
scipy
}
'scipy'
:
scipy
,
'calc'
:
calc
,
'eia'
:
eia
}
class
numericalresponse
(
object
):
def
__init__
(
self
,
xml
,
context
):
...
...
urls.py
View file @
04a7be0a
...
...
@@ -19,7 +19,7 @@ urlpatterns = ('',
url
(
r'^activate/(?P<key>[^/]*)$'
,
'auth.views.activate_account'
),
url
(
r'^$'
,
'auth.views.index'
),
url
(
r'^password_reset/$'
,
'django.contrib.auth.views.password_reset'
,
dict
(
from_email
=
'
6002-admin@
mit.edu'
),
name
=
'auth_password_reset'
),
dict
(
from_email
=
'
registration@mitx.
mit.edu'
),
name
=
'auth_password_reset'
),
url
(
r'^password_change/$'
,
django
.
contrib
.
auth
.
views
.
password_change
,
name
=
'auth_password_change'
),
url
(
r'^password_change_done/$'
,
django
.
contrib
.
auth
.
views
.
password_change_done
,
name
=
'auth_password_change_done'
),
url
(
r'^password_reset_confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$'
,
django
.
contrib
.
auth
.
views
.
password_reset_confirm
,
...
...
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