Valera Rozuvan
1542a74d2b
Removed logme module. Using console.log() instead.
...
Removing "logme" from comments.
BLD-608
2013-12-20 16:25:44 +02:00
Calen Pennington
864d831ce3
Use XBlock handlers for handle_ajax in XModules
...
Adds xblock handler_url support to the LMS, and makes handle_ajax use
that code.
[LMS-230] [LMS-229]
2013-11-08 11:08:48 -05:00
Calen Pennington
8201b1412e
Use XBlock 0.3
2013-09-06 09:45:59 -04:00
Peter Fogg
512269f842
Add descriptor for modules with empty XML data.
...
This allows a more general approach to modules such as word_cloud and
video which have no XML data (it's all store in metadata), but use
XmlDescriptor for backwards compatibility. They now generate an empty
tag on export, and clear out empty tags on import.
Also a small change to the video module as a result -- if it's asked
to parse empty XML data, it won't try to parse anything.
2013-07-30 13:53:38 -04:00
Peter Fogg
f355e4a8f4
More general solution to word cloud export problems.
2013-07-30 10:29:12 -04:00
Peter Fogg
0967cb0d9d
Fix word cloud modules not exporting correctly.
2013-07-30 10:29:12 -04:00
Don Mitchell
8c904f31a9
Move defaults from yaml templates to field definitions.
...
This standardizes the XModule field default values to be the same as the
values that are presented by studio when a component is added to a
course.
2013-07-16 14:24:41 -04:00
Carlos Andrés Rocha
e4ee1c6c9b
Rename arguments of modx_dispatch and handle_ajax related functions
...
Refactor a bit modx_dispatch
2013-06-25 13:38:57 -04:00
Christina Roberts
9e0997d3c8
Merge pull request #111 from edx/feature/christina/unify-fields
...
Move "stringy" functionality into xblock fields
2013-06-13 13:49:14 -07:00
Calen Pennington
e791e84ea7
Remove the stores_state field from XModule
...
stores_state is now only used in a single test, in conjunction with
has_score. In practice, it's never the case that stores_state is false
when has_score is true, so we can delete stores_state entirely, and just
use has_score for the grading test.
2013-06-13 14:38:59 -04:00
cahrens
89d0003603
Be strict about ModelType expected types, rename Object as Dict.
2013-06-12 14:59:17 -04:00
cahrens
0baec0a164
Move string fields, get rid of hard-coded list of booleans.
2013-06-07 15:45:34 -04:00
cahrens
ab5834fb41
Pylint cleanup.
2013-05-31 11:26:19 -04:00
cahrens
b2fe7f5c01
Update documentation (per Toddi).
2013-05-29 17:19:33 -04:00
cahrens
f3d4381fde
Minor cleanup.
2013-05-28 12:53:00 -04:00
cahrens
2c32200cce
Updated text per Alex's e-mail.
2013-05-28 11:12:22 -04:00
cahrens
6be9463eca
Cleanup.
2013-05-27 21:50:56 -04:00
Vasyl Nakvasiuk
b02e92a80c
fix word cloud test
2013-05-15 11:42:43 +03:00
Vasyl Nakvasiuk
0eb1b97ffc
add more docs
2013-05-15 11:42:43 +03:00
Vasyl Nakvasiuk
0afe6c11ab
word cloud: fix pylint warnings, use MetadataOnlyEditingDescriptor instead of RawDescriptor
2013-05-15 11:42:43 +03:00
Vasyl Nakvasiuk
4138c47128
merge all word_cloud Xmodule fields to one WordCloudFields class
2013-05-13 14:44:10 +03:00
Alexander Kryklia
09f6d2a651
updated docstrings
2013-05-13 14:44:10 +03:00
Vasyl Nakvasiuk
5e6f3601eb
Word Cloud: docstrings + pep8
2013-05-13 14:44:10 +03:00
Alexander Kryklia
7559cd90d6
separates xfields that descriptor use and module use
2013-05-13 14:44:10 +03:00
Alexander Kryklia
36d2dd632d
adds mako_template string to desctiptor for studio integration
2013-05-13 14:44:10 +03:00
Alexander Kryklia
04b712510e
PEPifying
2013-05-13 14:44:09 +03:00
Alexander Kryklia
2d68e4ee9f
PEPifying
2013-05-13 14:44:09 +03:00
Alexander Kryklia
ecb9857bda
imports forgotter RawDescriptor
2013-05-13 14:44:09 +03:00
Alexander Kryklia
dccadff3a6
changes descriptor in word_cloud to Raw
2013-05-13 14:44:09 +03:00
Alexander Kryklia
6e46dc5447
correct calculation of percents
2013-05-13 14:44:09 +03:00
Anto Stupak
116b07df6d
word cloud: return percents. Attribute name is changed
2013-05-13 14:44:09 +03:00
Anto Stupak
0f83170d6f
word cloud: return percents. Additional attribute and labels for text on hover are added
2013-05-13 14:44:08 +03:00
Vasyl Nakvasiuk
f1d1a3f606
refactoring after Python code review
2013-05-13 14:44:07 +03:00
Valera Rozuvan
13bed39dde
Refactoring after peer review.
2013-05-13 14:44:07 +03:00
Vasyl Nakvasiuk
cb1d3a30bb
pep8
2013-05-13 14:44:06 +03:00
Vasyl Nakvasiuk
3bccf54835
remove trash code
2013-05-13 14:44:06 +03:00
Vasyl Nakvasiuk
72b094e5e9
fix get_state
2013-05-13 14:44:05 +03:00
Vasyl Nakvasiuk
9495059fdc
add "get_state" dispatch for WordCloud
2013-05-13 14:44:05 +03:00
Vasyl Nakvasiuk
6deeb60278
update template for word_cloud, refactor empty json answer
2013-05-13 14:44:04 +03:00
Vasyl Nakvasiuk
ed23aef607
use post.getlist word wordcloud param
2013-05-13 14:44:04 +03:00
Vasyl Nakvasiuk
36c8af611b
use user_state, add test_logic test
2013-05-13 14:44:03 +03:00
Vasyl Nakvasiuk
9b9749160e
add more docstrings
2013-05-13 14:44:02 +03:00
Vasyl Nakvasiuk
b273011727
add total_count to answer from server
2013-05-13 14:44:02 +03:00
Valera Rozuvan
82f87a915c
Added rough version of d3 word cloud.
2013-05-13 14:44:02 +03:00
Vasyl Nakvasiuk
acfbe14e39
word cloud done
2013-05-13 14:44:01 +03:00
Vasyl Nakvasiuk
dac9b5c038
Word Cloud: add full cycle Python + HTML + JS
2013-05-13 14:44:01 +03:00
Vasyl Nakvasiuk
143d2c8636
fix WordCloudDescriptor
2013-05-13 14:44:00 +03:00
Alexander Kryklia
bb9bc42171
adds initial word_cloud_module files
2013-05-13 14:44:00 +03:00