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
fa93a692
Commit
fa93a692
authored
Oct 27, 2014
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5692 from edx/markhoeber-doc935
Fixed code sample for python grader
parents
ff4a1755
c2428c72
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
docs/en_us/course_authors/source/change_log.rst
+5
-1
docs/en_us/course_authors/source/exercises_tools/custom_python.rst
+2
-2
docs/en_us/olx/source/change_log.rst
+3
-0
docs/en_us/shared/exercises_tools/custom_python.rst
+2
-2
No files found.
docs/en_us/course_authors/source/change_log.rst
View file @
fa93a692
...
...
@@ -13,8 +13,12 @@ October, 2014
* - Date
- Change
* - 10/27/14
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
Your Own Grader` chapter.
* - 10/23/14
- Added note about limited support of annotation problem type to :ref:`Annotation`.
- Added note about limited support of annotation problem type to
:ref:`Annotation`.
* - 10/16/14
- Updated :ref:`Set Important Dates for Your Course` to reflect change
that course dates now use UTC.
...
...
docs/en_us/course_authors/source/exercises_tools/custom_python.rst
View file @
fa93a692
...
...
@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function"
<p>Enter two integers that sum to 10. </p>
<customresponse cfn="test_add_to_ten">
<textline size="10"/><br/>
<textline size="10/>
<textline size="10
"
/>
</customresponse>
</problem>
</problem>
**Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation.
...
...
docs/en_us/olx/source/change_log.rst
View file @
fa93a692
...
...
@@ -13,6 +13,9 @@ October, 2014
* - Date
- Change
* - 10/23/14
- Fixed the code sample in :ref:`Script Tag Format` in the :ref:`Write
Your Own Grader` chapter.
* - 10/17/14
- Provided more explanation to the introduction to :ref:`Problems and
Tools`.
...
...
docs/en_us/shared/exercises_tools/custom_python.rst
View file @
fa93a692
...
...
@@ -126,10 +126,10 @@ The script tag format encloses a Python script that contains a "check function"
<p>Enter two integers that sum to 10. </p>
<customresponse cfn="test_add_to_ten">
<textline size="10"/><br/>
<textline size="10/>
<textline size="10
"
/>
</customresponse>
</problem>
</problem>
**Important**: Python honors indentation. Within the ``<script>`` tag, the ``def check_func(expect, ans):`` line must have no indentation.
...
...
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