Commit Graph

5152 Commits

Author SHA1 Message Date
Peter Baratta
d80024472c Pylint fixes 2013-05-13 12:40:32 -04:00
Vik Paruchuri
a5549fd7fb Add in some assert statements 2013-05-13 12:25:23 -04:00
Peter Baratta
06efd40ba9 Comment capitalization 2013-05-13 11:29:46 -04:00
Chris Dodge
d32e7a5b61 Merge branch 'master' of github.com:edx/mitx into fix/cdodge/textbooks-not-exporting 2013-05-13 11:06:49 -04:00
cahrens
5edbf3d8f7 Merge branch 'master' into feature/christina/metadata-ui 2013-05-13 10:55:32 -04:00
Valera Rozuvan
c56d1b5e78 Checked JS files with linter, corrected a few minor issues. 2013-05-13 17:37:14 +03:00
Peter Baratta
2b9d78dfd5 Pep8 fixes and changes to NaN tests 2013-05-13 10:18:19 -04:00
Chris Dodge
3cf865a88f added another unit test check point for export/import of classic textbooks 2013-05-13 10:16:18 -04:00
Calen Pennington
b78e044018 Move wordcloud template settings into metadata, and remove contents of definition (since no fields edited by studio authors have scope.settings) 2013-05-13 09:05:05 -04:00
Valera Rozuvan
1353ae3ec2 Added license information to d3 JS file and to the word cloud layout. 2013-05-13 14:44:10 +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
af8b9eca65 removes display_name from studio template 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
bdc62e7d2e word cloud studio integration 2013-05-13 14:44:09 +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
Alexander Kryklia
23802f873b add tests for percents and for total 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
Anto Stupak
c70fa41d69 word cloud: return percents 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
7b5d5a0499 Removed Object.keys() usage. Now uses simple Array.push() to retrieve all keys. 2013-05-13 14:44:07 +03:00
Valera Rozuvan
13bed39dde Refactoring after peer review. 2013-05-13 14:44:07 +03:00
Valera Rozuvan
f4b247d2bb Refactoring, documenting, moving all HTML generation to template. 2013-05-13 14:44:07 +03:00
Vasyl Nakvasiuk
97855bb4c1 add test_good_ajax_request for WordCloud 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
Anto Stupak
6763584216 Word cloud JS: data is not loaded without page refresh. Fixed. Also was fixed bug, when font-size is 0 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
Valera Rozuvan
338c1541c0 Added semicolon. 2013-05-13 14:44:04 +03:00
Valera Rozuvan
96637e9ae7 Change some code styling. Added statistics display. Minor tweaks. 2013-05-13 14:44:04 +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
328b5b3d08 use postWithPrefix + $.param 2013-05-13 14:44:03 +03:00
Valera Rozuvan
82209850e4 Small refactor. 2013-05-13 14:44:03 +03:00
Vasyl Nakvasiuk
2bcc0065b1 use ajaxWithPrefix 2013-05-13 14:44:03 +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
Vasyl Nakvasiuk
66615cab4a fix cloude size 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