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
c750f08d21
Fix failing unit tests due to bad rebase
2013-07-09 19:16:06 -04:00
David Baumgold
4c304f1d18
Add unit test for failure case
2013-07-09 19:16:05 -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
cd7a448384
some tweeks to the negative testing
2013-07-09 19:16:00 -04:00
Chris Dodge
5e218389c9
add ability to do failure testing. If a post passes in a '?fail_at=<num_bytes>' then the middleware will throw an exception
2013-07-09 19:16:00 -04:00
Chris Dodge
b43f1c7331
add a new cms ENV configuration to use a slow upload file handler to help test progress bars in uploads
2013-07-09 19:15:59 -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
Christina Roberts
bd96632139
Merge pull request #345 from edx/christina/course-creator-table
...
Admin table for course creators.
2013-07-09 13:18:35 -07:00
cahrens
1fd0451124
pylint cleanup
2013-07-09 14:33:27 -04:00
cahrens
ee2d874fdc
Remove extra blank lines.
2013-07-09 13:12:15 -04:00
cahrens
283e2b2e60
Don't store abbreviations for state.
2013-07-09 13:07:38 -04:00
cahrens
01557b26be
Move call into authz methods out of model class.
2013-07-09 12:47:54 -04:00
JonahStanley
0bd1e78e03
Acceptance tests use random ports
2013-07-09 12:18:30 -04:00
cahrens
99584aab23
pep8 cleanup
2013-07-09 11:08:27 -04:00
cahrens
6a49980582
Add tests for permissions.
2013-07-09 11:02:59 -04:00
cahrens
5cd90d58f5
Clarify documentation.
2013-07-09 10:33:37 -04:00
cahrens
5a3a03c0d4
Change user to foreign key (tracks deletions).
2013-07-09 10:23:38 -04:00
cahrens
23ffa2a616
Show note field, update filterable.
2013-07-08 16:55:32 -04:00
cahrens
73f4b1c676
Overloading methods does not work with variable names changed.
2013-07-08 16:43:30 -04:00
cahrens
69a998780a
Remove test case moved to test_admin.
2013-07-08 16:10:43 -04:00
cahrens
28115af488
The course creator view adds granted users course creator status.
...
Includes unit tests and modifications to authz.py.
2013-07-08 16:08:06 -04:00
cahrens
5e8e3353ca
Pylint/pep8 cleanup.
2013-07-08 16:07:02 -04:00
Will Daly
e477cceefb
Merge pull request #346 from edx/will/disable-flakey-tests
...
Disabled tests that are failing in Jenkins
2013-07-08 09:55:09 -07:00
cahrens
b53899aa54
Merge branch 'master' into christina/course-creator-table
2013-07-08 12:12:04 -04:00
Will Daly
7085b95bc0
Disabled video test that was failing on Mac OS X
2013-07-08 10:51:31 -04:00
chrisndodge
57d82dea10
Merge pull request #330 from edx/fix/cdodge/delete-course-delete-drafts
...
[STUD-380] Fix/cdodge/delete course delete drafts
2013-07-08 07:24:24 -07:00
Will Daly
01eb93eb47
Disabled tests that are failing in Jenkins
2013-07-08 10:02:01 -04:00
cahrens
f1f6acb5c7
Updates to admin table view.
...
Also hooks up the granted and deny events to the course creator group.
2013-07-03 17:07:06 -04:00
Jonah Stanley
0be0df1b59
Merge pull request #325 from edx/jonahstanley/fix-flakey-tests
...
Made a css_html to obtain the html of the css element.
2013-07-03 11:55:25 -07:00
Chris Dodge
656f2b15fd
remove redundent test until we get clarity as to if unit tests are actually using the codejail functionality or not
2013-07-03 13:46:32 -04:00
Chris Dodge
7962ad7dd0
remove incorrect comment
2013-07-03 13:46:31 -04:00