Chris Dodge
4054544126
handle exceptions inside the outer exception handling
2013-08-08 21:01:38 -04:00
Chris Dodge
69c34a65b1
switch the notification to be a prompt and allow for the user to go to the edit unit page which contains the module in error. Otherwise, present the raw exception message and allow user to go to the course outline page.
2013-08-08 21:01:38 -04:00
Chris Dodge
fcaf3e6329
give some debug message regarding why export might fail
2013-08-08 21:01:38 -04:00
David Baumgold
32f76988c6
Update docstring
2013-08-08 09:53:19 -04:00
David Baumgold
7aec95c310
Removed get_module_previews function
...
According to @cpennington, no modules return anything for `get_sample_state`,
so this function is extraneous.
2013-08-08 09:52:41 -04:00
David Baumgold
a87a1bfcda
Docstrings
2013-08-08 09:46:15 -04:00
David Baumgold
baa9bd5bdc
Make sure to return the content, not the fragment
2013-08-08 09:46:15 -04:00
David Baumgold
8a95d7e6f0
XBlock integration: replaced get_html with runtime.render()
...
Currently calls the same machinery, but re-routes the logic in preparation of
deeper integration with XBlock
2013-08-08 09:46:15 -04:00
David Baumgold
9634e222be
Refactored get_module_previews function
2013-08-08 09:46:15 -04:00
David Baumgold
4896444d10
Clean up item views, use JsonResponse class
2013-08-08 09:46:15 -04:00
chrisndodge
ece4ec3f57
Merge pull request #533 from edx/fix/cdodge/use-static-shorthand-for-asset-urls
...
To increase portability of courses, have the Asset Index page display the classic /static/... URL shorthand.
2013-08-08 06:32:35 -07:00
Christina Roberts
4c95078eb0
Merge pull request #578 from edx/christina/autoenroll
...
Auto-enroll course staff to fix "View Live".
2013-08-06 12:33:56 -07:00
chrisndodge
b24fdd9e22
Merge pull request #576 from edx/feature/cdodge/display-location-information-in-course-listings
...
Feature/cdodge/display location information in course listings
2013-08-06 10:27:38 -07:00
cahrens
3732d418c9
Add helper methods to hide internals of how users are enrolled in courses.
...
Remove _
Minor cleanup.
2013-08-06 09:36:39 -04:00
Chris Dodge
b8bc1d0171
remove redudent asset_url return value when uploading files
2013-08-05 16:15:03 -04:00
Chris Dodge
6200b2903f
have the Files and Upload pages surface a 'portable_url' which uses the /static/ shorthand which is more portable across course runs
2013-08-05 16:15:03 -04:00
Adam Palay
f85cfc11fa
redirects lms landing page to student.views.index if there is no marketing site
...
resets the cms edge redirect to '/'
2013-08-05 16:05:12 -04:00
cahrens
a227b14fdd
Auto-enroll course staff to fix "View Live".
...
STUD-554
Code review feedback.
2013-08-05 15:00:37 -04:00
David Baumgold
94976df8d7
Check that content-type starts with application/json
...
When Chrome sends the AJAX request to add a user to the course team, it sets the
Content-type to "application/json". However, when Firefox sends the same request,
it sets the Content-type to "application/json; charset=UTF-8". This commit only
checks that the Content-type begins with "application/json", not is identical
to it; that way, Firefox can play, too.
2013-08-05 14:16:28 -04:00
Chris Dodge
09a3bc01be
show the organization, course number, course run in the course listing page in CMS
2013-08-05 12:51:42 -04:00
Julian Arni
b38750e15d
Refactor wrap_xmodule call
2013-08-05 11:09:43 -04:00
Adam Palay
0f18ea4bf7
redirects edge landing page to /dashboard
2013-08-02 17:18:49 -04:00
Julian Arni
7bfb0804f8
Switch to studio_view
2013-08-02 16:09:29 -04:00
David Baumgold
2ad78d949a
Merge pull request #538 from edx/db/course-team-admin-grants
...
Add error messaging to course team page
2013-08-01 11:58:52 -07:00
David Baumgold
1b83cfc409
Merge pull request #546 from edx/db/dev-views
...
Create urls/views/templates for dev-only views
2013-08-01 11:47:39 -07:00
David Baumgold
741bbb3f92
pylint cleanup
2013-08-01 14:16:55 -04:00
David Baumgold
607c06cba8
Stop using authz functions to change user groups
...
They contain too much incorrect permission checking
2013-08-01 11:24:42 -04:00
Calen Pennington
e8ee29786f
Remove news carousel and other unused pages
...
Remove unused course_filter page
removes university_profile urls and templates
removes all university_profile views
remove news from templates/index
2013-07-31 19:39:15 -04:00
chrisndodge
8573ac3909
Merge pull request #510 from edx/feature/cdodge/allow-course-run-in-course-create
...
Feature/cdodge/allow course run in course create
2013-07-31 14:44:50 -07:00
David Baumgold
64ad5567f3
Create urls/views/templates for dev-only views
...
Our designers find it helpful to be able to stub out simple views that aren't ready
to be seen for production yet, and check them into version control so that other
people can see them and provide feedback. This commit introduces a few new files
and directories for this purpose, as well as a sample view that will only be seen
in dev mode, and never in production.
2013-07-31 17:20:26 -04:00
David Baumgold
248793c127
Fix some pylint issues
2013-07-31 15:42:11 -04:00
jkarni
bba0611584
Merge pull request #532 from edx/jkarni/fix/superfluous-fn
...
Remove get_preview_module.
2013-07-31 07:21:29 -07:00
Vasyl Nakvasiuk
1233d73e01
Merge pull request #497 from edx/alex/graphical_slider_tool_for_studio
...
"Graphical Slider Tool" integration into studio
2013-07-31 06:36:49 -07:00
Julian Arni
9725cff71e
Remove get_preview_module.
...
And replace calls with calls to load_preview_module.
2013-07-30 17:31:48 -04:00
Chris Dodge
beda411e28
improve error message regarding uniqueness
2013-07-30 17:29:02 -04:00
Chris Dodge
d005323ace
update error message to be more specific to what the user needs to fix
2013-07-30 17:25:47 -04:00
Chris Dodge
f29819ca4a
add some field specific error messages regarding uniqueness
2013-07-30 17:24:44 -04:00
Chris Dodge
1cd70ee386
fix some error messages and also make localizable strings
2013-07-30 17:24:43 -04:00
Chris Dodge
60f03f5dcc
fixing tests
2013-07-30 17:24:43 -04:00
Chris Dodge
e23b693d90
put a 4th field in the create new course form where the user must specify a course_run. Also update unit tests to also provide this 4th parameter. Styling changes to better lay out the form fields are still TBD.
2013-07-30 17:20:09 -04:00
David Baumgold
64566c14e6
Fix unit tests
2013-07-29 13:12:07 -04:00
David Baumgold
a1b44afda3
Only instructors may make other instructors on a course
2013-07-29 13:12:05 -04:00
David Baumgold
42331464ed
Can't remove last instructor of a course
2013-07-29 13:12:05 -04:00
David Baumgold
b6c69547de
Check for instructor role before removing it
2013-07-29 13:12:04 -04:00
David Baumgold
f438552b3b
Added unit tests for new course team API
2013-07-29 13:12:04 -04:00
David Baumgold
724ef2e1e5
Fixing test failures
2013-07-29 13:12:04 -04:00
David Baumgold
6a9074e185
Removed get_url_reverse function
...
It was causing unit tests to fail, and it's a needless bit of abstraction that
never should have existed in the first place.
2013-07-29 13:11:48 -04:00
David Baumgold
5c356bd379
Add button to add/remove instructor priviledges on course team page
2013-07-29 13:11:48 -04:00
David Baumgold
21a32370df
Reorganize URLs and views around course team
...
Match other views better, saner URLs, more RESTful style, extensible for other roles
2013-07-29 13:11:48 -04:00
Vasyl Nakvasiuk
57bc010a0a
gst integration into studio
2013-07-26 17:22:27 +03:00