David Baumgold
a6f349dab9
Studio i18n
2013-07-12 16:25:39 -04:00
David Baumgold
17bef565f1
Added another test
2013-07-09 19:16:44 -04:00
David Baumgold
4155f9fe8c
Removed unused user_author_string function
2013-07-09 19:16:44 -04:00
David Baumgold
437e658f98
pylint fixes
2013-07-09 19:16:44 -04:00
David Baumgold
32a902ca57
Remove create_json_response in favor of JsonResponse class
2013-07-09 19:16:43 -04:00
David Baumgold
628dff5398
pylint fixing
2013-07-09 19:16:43 -04:00
David Baumgold
7506562f50
Another lettuce test, and fixes to make it work
2013-07-09 19:16:11 -04:00
David Baumgold
e1ed5c3d2d
docstrings
2013-07-09 19:16:10 -04:00
David Baumgold
2a92a14054
Wrote simple lettuce tests for pdf textbooks
2013-07-09 19:16:09 -04:00
David Baumgold
4bc109708f
Use django-method-override module
...
Replacing the get_request_method function everywhere
2013-07-09 19:16:09 -04:00
David Baumgold
bc3a67ec89
Fix reference error
2013-07-09 19:16:09 -04:00
David Baumgold
ef81556cc5
Use JsonResponse when it makes sense
2013-07-09 19:16:08 -04:00
David Baumgold
090d0d4464
Fix up unit tests
2013-07-09 19:16:08 -04:00
David Baumgold
77ae9a6a78
PDF Textbooks: fetch/save individual textbooks
...
Created a few RESTful API endpoints, which required creating and assigning
arbitrary IDs to PDF textbooks. Changed the Backbone views to save individual
models, instead of saving a whole collection.
2013-07-09 19:16:07 -04:00
David Baumgold
27e895393c
Added generic JsonResponse class
...
Based on http://djangosnippets.org/snippets/154/
2013-07-09 19:16:07 -04:00
David Baumgold
404c36b8f4
PDF textbooks: namespace JS variables for URLs
2013-07-09 19:16:07 -04:00
David Baumgold
05cb13b171
Adding and fixing tests
2013-07-09 19:16:04 -04:00
David Baumgold
8934cf35ba
Add pdf_textbooks tab when textbooks are created
2013-07-09 19:16:04 -04:00
David Baumgold
0d415d814b
Remove unused imports
2013-07-09 19:16:03 -04:00
David Baumgold
4509dc03b0
Pull and save pdf textbook information to/from the correct modulestore
2013-07-09 19:16:02 -04:00
David Baumgold
6a3360cefa
Full front-end/back-end connection via Backbone.sync. No data validation whatsoever.
2013-07-09 19:16:02 -04:00
David Baumgold
00b885deaa
Update pdf textbooks backend to respond to AJAX requests with JSON
2013-07-09 19:16:01 -04:00
David Baumgold
e607bc70ad
Pull assets into Mako template for PDF textbooks
2013-07-09 19:16:01 -04:00
Chris Dodge
d4b1d4c60c
return right mimetype from upload method.
2013-07-09 19:15:59 -04:00
David Baumgold
e0eec89e09
Truncate AJAX error messages in notification
2013-07-09 19:15:59 -04:00
David Baumgold
a84f66cd51
Pass asset upload URL to Javascript
2013-07-09 19:15:58 -04:00
David Baumgold
3d61c6294c
Stubbed out textbooks index page
2013-07-09 19:15:58 -04:00
David Baumgold
cc4e01b4c6
Removed obsolete active_tab template variable
2013-07-09 19:15:58 -04:00
Chris Dodge
6642cdddae
support uploading and referencing assets as streams rather than having to read everything into memory first
2013-07-09 19:15:58 -04:00
Jean Manuel Nater
18861e4ef9
Removed some pep8 violations.
2013-07-09 19:15:57 -04:00
Chris Dodge
7962ad7dd0
remove incorrect comment
2013-07-03 13:46:31 -04:00
Chris Dodge
bf3a7287f0
do some lamda magic to refactor out the whitelist checking code to be shared between LMS and CMS
2013-07-03 13:46:31 -04:00
Chris Dodge
63ed16e118
add a 'can_execute_unsafe_code' callback method (ala LMS) to allow for whitelisting of courses with respect to codejailing
2013-07-03 13:46:31 -04:00
Calen Pennington
1a7b833146
Merge pull request #269 from edx/dhm/incidental-functionality-improvements
...
Incidental functionality improvements from Next Gen Modulestore work
2013-07-01 13:04:20 -07:00
David Baumgold
923bcc555c
Make CMS errors JSON-able if requested via AJAX
2013-07-01 15:09:41 -04:00
Don Mitchell
ef9c299413
Work around XBlock limitations to force persistance of field mutation
2013-07-01 12:33:08 -04:00
Don Mitchell
2fc7d3308c
Customtags can't be inserted by studio
2013-07-01 12:33:08 -04:00
Don Mitchell
a2524c517f
Force locations to be Location objects earlier
2013-07-01 12:33:08 -04:00
Don Mitchell
2ef4d82959
Standardize on get_default_time_display
2013-06-28 14:19:10 -04:00
Don Mitchell
e9bd1c5602
Fix SessionKeyValueStore.has to use the correct indexing value when looking up data
2013-06-28 14:19:10 -04:00
Calen Pennington
6e357db24c
Merge pull request #268 from edx/dhm/cosmetic-cleanup
...
Cosmetic Cleanups Incidental to Next Gen Modulestore Implementaton
2013-06-27 05:44:49 -07:00
Don Mitchell
1344b1e521
Make SessionKeyValueStore variable names clearer
2013-06-26 14:19:33 -04:00
Don Mitchell
65b3bcdba6
Clean up variable naming
2013-06-26 14:19:33 -04:00
cahrens
318372f2c0
Introduce course creator group.
2013-06-26 10:48:31 -04:00
cahrens
d601cee8e5
Merge branch 'master' into christina/course-settings-drupal
2013-06-20 11:00:12 -04:00
cahrens
6e96b88518
On marketing site, disable course settings options that do not work.
...
When on the marketing site (edx.org) disable portions of the course settings page in Studio that do not actually work in that environment.
2013-06-19 11:28:16 -04:00
Don Mitchell
1ff022e181
Incidental pep8 changes
2013-06-18 17:25:06 -04:00
Chris Dodge
70ee4b8060
add unit tests for asset delete/restore
2013-06-17 11:10:35 -04:00
Chris Dodge
85b904f176
fix sizing of the delete column
2013-06-17 11:09:52 -04:00
Chris Dodge
9b749c4201
add ajax callback entry point to remove the asset
2013-06-17 11:09:52 -04:00