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
0001a67c
Commit
0001a67c
authored
Dec 21, 2012
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tag name
parent
cc78ebe3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
common/lib/capa/capa/inputtypes.py
+4
-4
common/lib/capa/capa/tests/test_inputtypes.py
+1
-1
No files found.
common/lib/capa/capa/inputtypes.py
View file @
0001a67c
...
@@ -695,7 +695,7 @@ class VseprInput(InputTypeBase):
...
@@ -695,7 +695,7 @@ class VseprInput(InputTypeBase):
@classmethod
@classmethod
def
get_attributes
(
cls
):
def
get_attributes
(
cls
):
"""
"""
Note: height, width are required.
Note: height, width
, molecules and geometries
are required.
"""
"""
return
[
Attribute
(
'height'
),
return
[
Attribute
(
'height'
),
Attribute
(
'width'
),
Attribute
(
'width'
),
...
@@ -781,7 +781,7 @@ class OpenEndedInput(InputTypeBase):
...
@@ -781,7 +781,7 @@ class OpenEndedInput(InputTypeBase):
def
_extra_context
(
self
):
def
_extra_context
(
self
):
"""Defined queue_len, add it """
"""Defined queue_len, add it """
return
{
'queue_len'
:
self
.
queue_len
,}
return
{
'queue_len'
:
self
.
queue_len
,
}
registry
.
register
(
OpenEndedInput
)
registry
.
register
(
OpenEndedInput
)
...
@@ -794,13 +794,13 @@ class DragAndDropInput(InputTypeBase):
...
@@ -794,13 +794,13 @@ class DragAndDropInput(InputTypeBase):
pick structure and label positions with atoms or electron pairs.
pick structure and label positions with atoms or electron pairs.
"""
"""
template
=
'drag_and_drop.html'
template
=
'drag_and_drop
_input
.html'
tags
=
[
'drag_and_drop_input'
]
tags
=
[
'drag_and_drop_input'
]
@classmethod
@classmethod
def
get_attributes
(
cls
):
def
get_attributes
(
cls
):
"""
"""
Note: height, width are required.
Note: height, width
, template and images
are required.
"""
"""
return
[
Attribute
(
'height'
),
return
[
Attribute
(
'height'
),
Attribute
(
'width'
),
Attribute
(
'width'
),
...
...
common/lib/capa/capa/tests/test_inputtypes.py
View file @
0001a67c
...
@@ -511,7 +511,7 @@ class DragAndDropTest(unittest.TestCase):
...
@@ -511,7 +511,7 @@ class DragAndDropTest(unittest.TestCase):
height
=
'12'
height
=
'12'
width
=
'33'
width
=
'33'
template
=
"path to template"
template
=
"path to template"
images
=
"
path
to images"
images
=
"
list of pathes
to images"
xml_str
=
"""<drag_and_drop id="prob_1_2"
xml_str
=
"""<drag_and_drop id="prob_1_2"
height="{h}"
height="{h}"
...
...
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