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
dccadff3
Commit
dccadff3
authored
Apr 29, 2013
by
Alexander Kryklia
Committed by
Vasyl Nakvasiuk
May 13, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes descriptor in word_cloud to Raw
parent
6e46dc54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
30 deletions
+1
-30
common/lib/xmodule/xmodule/word_cloud_module.py
+1
-30
No files found.
common/lib/xmodule/xmodule/word_cloud_module.py
View file @
dccadff3
...
...
@@ -172,37 +172,8 @@ class WordCloudModule(WordCloudFields, XModule):
return
self
.
content
class
WordCloudDescriptor
(
WordCloudFields
,
MakoModuleDescriptor
,
XmlDescriptor
):
_tag_name
=
'word_cloud'
class
WordCloudDescriptor
(
WordCloudFields
,
RawDescriptor
):
module_class
=
WordCloudModule
template_dir_name
=
'word_cloud'
stores_state
=
True
@classmethod
def
definition_from_xml
(
cls
,
xml_object
,
system
):
"""Pull out the data into dictionary.
Args:
xml_object: xml from file.
system: `system` object.
Returns:
(definition, children) - tuple
"""
definition
=
{}
children
=
[]
return
(
definition
,
children
)
def
definition_to_xml
(
self
,
resource_fs
):
"""Return an xml element representing to this definition."""
xml_str
=
'<{tag_name} />'
.
format
(
tag_name
=
self
.
_tag_name
)
xml_object
=
etree
.
fromstring
(
xml_str
)
xml_object
.
set
(
'display_name'
,
self
.
display_name
)
xml_object
.
set
(
'num_inputs'
,
self
.
num_inputs
)
xml_object
.
set
(
'num_top_words'
,
self
.
num_top_words
)
xml_object
.
set
(
'display_student_percents'
,
pretty_bool
(
self
.
display_student_percents
))
return
xml_object
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