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
bb66cad6
Commit
bb66cad6
authored
May 21, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code review -- comments and better exceptions
parent
abdd696f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
djangoapps/courseware/capa/inputtypes.py
+5
-1
No files found.
djangoapps/courseware/capa/inputtypes.py
View file @
bb66cad6
...
...
@@ -64,6 +64,10 @@ class SimpleInput():# XModule
self
.
tag
=
xml
.
tag
if
not
state
:
state
=
{}
## ID should only come from one place.
## If it comes from multiple, we use state first, XML second, and parameter
## third. Since we don't make this guarantee, we can swap this around in
## the future if there's a more logical order.
if
item_id
:
self
.
id
=
item_id
if
xml
.
get
(
'id'
):
...
...
@@ -132,7 +136,7 @@ def register_render_function(fn, names=None, cls=SimpleInput):
if
names
==
None
:
SimpleInput
.
xml_tags
[
fn
.
__name__
]
=
fn
else
:
raise
"Unimplemented/input types"
raise
NotImplementedError
def
wrapped
():
return
fn
return
wrapped
...
...
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