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
0afe6c11
Commit
0afe6c11
authored
May 13, 2013
by
Vasyl Nakvasiuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
word cloud: fix pylint warnings, use MetadataOnlyEditingDescriptor instead of RawDescriptor
parent
1afe5561
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
common/lib/xmodule/xmodule/word_cloud_module.py
+5
-4
No files found.
common/lib/xmodule/xmodule/word_cloud_module.py
View file @
0afe6c11
...
...
@@ -10,7 +10,7 @@ import json
import
logging
from
pkg_resources
import
resource_string
from
xmodule.
raw_module
import
Raw
Descriptor
from
xmodule.
editing_module
import
MetadataOnlyEditing
Descriptor
from
xmodule.x_module
import
XModule
from
xblock.core
import
Scope
,
String
,
Object
,
Boolean
,
List
,
Integer
...
...
@@ -19,8 +19,9 @@ log = logging.getLogger(__name__)
def
pretty_bool
(
value
):
BOOL_DICT
=
[
True
,
"True"
,
"true"
,
"T"
,
"t"
,
"1"
]
return
value
in
BOOL_DICT
"""Check value for possible `True` value."""
bool_dict
=
[
True
,
"True"
,
"true"
,
"T"
,
"t"
,
"1"
]
return
value
in
bool_dict
class
WordCloudFields
(
object
):
...
...
@@ -227,7 +228,7 @@ class WordCloudModule(WordCloudFields, XModule):
return
self
.
content
class
WordCloudDescriptor
(
WordCloudFields
,
Raw
Descriptor
):
class
WordCloudDescriptor
(
WordCloudFields
,
MetadataOnlyEditing
Descriptor
):
"""Descriptor for WordCloud Xmodule."""
module_class
=
WordCloudModule
template_dir_name
=
'word_cloud'
...
...
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