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
0a38e490
Commit
0a38e490
authored
Jul 10, 2013
by
Calen Pennington
Committed by
Don Mitchell
Jul 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pep8/pylint errors
parent
f6b7b267
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/combined_open_ended_module.py
+2
-1
common/lib/xmodule/xmodule/html_module.py
+2
-2
No files found.
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
0a38e490
...
@@ -84,7 +84,8 @@ class CombinedOpenEndedFields(object):
...
@@ -84,7 +84,8 @@ class CombinedOpenEndedFields(object):
display_name
=
String
(
display_name
=
String
(
display_name
=
"Display Name"
,
display_name
=
"Display Name"
,
help
=
"This name appears in the horizontal navigation at the top of the page."
,
help
=
"This name appears in the horizontal navigation at the top of the page."
,
default
=
"Open Ended Grading"
,
scope
=
Scope
.
settings
default
=
"Open Ended Grading"
,
scope
=
Scope
.
settings
)
)
current_task_number
=
Integer
(
help
=
"Current task that the student is on."
,
default
=
0
,
scope
=
Scope
.
user_state
)
current_task_number
=
Integer
(
help
=
"Current task that the student is on."
,
default
=
0
,
scope
=
Scope
.
user_state
)
task_states
=
List
(
help
=
"List of state dictionaries of each task within this module."
,
scope
=
Scope
.
user_state
)
task_states
=
List
(
help
=
"List of state dictionaries of each task within this module."
,
scope
=
Scope
.
user_state
)
...
...
common/lib/xmodule/xmodule/html_module.py
View file @
0a38e490
...
@@ -167,9 +167,9 @@ class HtmlDescriptor(HtmlFields, XmlDescriptor, EditingDescriptor):
...
@@ -167,9 +167,9 @@ class HtmlDescriptor(HtmlFields, XmlDescriptor, EditingDescriptor):
pathname
=
pathname
)
pathname
=
pathname
)
resource_fs
.
makedir
(
os
.
path
.
dirname
(
filepath
),
recursive
=
True
,
allow_recreate
=
True
)
resource_fs
.
makedir
(
os
.
path
.
dirname
(
filepath
),
recursive
=
True
,
allow_recreate
=
True
)
with
resource_fs
.
open
(
filepath
,
'w'
)
as
file
:
with
resource_fs
.
open
(
filepath
,
'w'
)
as
file
stream
:
html_data
=
self
.
data
.
encode
(
'utf-8'
)
html_data
=
self
.
data
.
encode
(
'utf-8'
)
file
.
write
(
html_data
)
file
stream
.
write
(
html_data
)
# write out the relative name
# write out the relative name
relname
=
path
(
pathname
)
.
basename
()
relname
=
path
(
pathname
)
.
basename
()
...
...
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