Calen Pennington
33f9eae3e8
Set data_dir based on parent data_dir when cloning new content in the CMS
2012-09-25 10:10:44 -04:00
Calen Pennington
d8736914d4
Display an error descriptor for a preview when a descriptor can be loaded but a module can't
2012-09-25 10:10:44 -04:00
Calen Pennington
7d8095cd97
Initial port of templates into filesystem based storage
2012-09-25 10:10:44 -04:00
Calen Pennington
2554413291
Hook up link to create modules from templates
2012-09-25 10:10:44 -04:00
Calen Pennington
57d0dd1b0b
Pass location to get_containing_courses
2012-09-25 10:01:20 -04:00
Calen Pennington
335b4bb04b
Add method to find courses that contain a particular module location
2012-09-25 09:23:07 -04:00
Calen Pennington
2223d2007b
Only display the LMS link if it's set up, and don't error if it isn't
2012-09-25 09:18:54 -04:00
Calen Pennington
c7209a736e
Add links from the editing page for the cms to the corresponding page in the lms
2012-09-25 09:18:54 -04:00
Chris Dodge
a85b255271
Define 'system metadata' which should not be editable by the end user. When posting back metadata edits, we need to fetch a copy of the existing metadata and apply the changes.
2012-09-24 16:54:46 -04:00
Chris Dodge
03fbacd4e1
Merge branch 'cdodge/meta-data-cms-editing' of github.com:MITx/mitx into cdodge/meta-data-cms-editing
...
Conflicts:
cms/static/coffee/src/models/module.coffee
2012-09-21 15:24:09 -04:00
Chris Dodge
d51f127afa
work-in-progress: As a problem author, I would like to be able to edit module metadata
2012-09-21 14:29:19 -04:00
Chris Dodge
1cd81a2a4f
work-in-progress: As a problem author, I would like to be able to edit module metadata
2012-09-21 09:14:28 -04:00
Victor Shnayder
27cd9c9f82
Remove unused 'module' parameter from replace_{static,course}_urls
2012-09-20 01:12:33 -04:00
Calen Pennington
d7cbd1c814
Don't do extra json conversion/de-conversion for data/children going to the cms
2012-09-18 15:07:35 -04:00
Calen Pennington
bb06a926bb
Make saving also save the children in the #sortable element (TODO: name the #sortable element better)
2012-09-18 13:19:30 -04:00
Calen Pennington
d17e2aada9
Remove trailing '/' from ajax_urls
2012-09-17 14:19:07 -04:00
Kyle Fiedler
7a248f0154
Added fixes to some style and one Cale fix to get things working properly
2012-09-11 14:05:07 -04:00
Calen Pennington
7702907662
Make module system handle not having a user, and pass a user in when previewing in the cms
2012-09-05 13:29:30 -04:00
Victor Shnayder
e4fb9ec63a
Remove is_staff from ModuleSystem
...
- now handling access control via get_module
2012-08-14 23:30:37 -04:00
ichuang
4240830e68
cms also needs replace_static_urls call fixed
2012-08-10 15:25:41 -04:00
Victor Shnayder
b46172da9b
Rename module.name and descriptor.name to url_name
...
* update templates and code references
* also a display_name property that defaults to cleaned url_name
2012-08-03 11:36:54 -04:00
Victor Shnayder
2f4bf5f606
Minor fixes to cms
...
* make logging work properly in cms, dev
* fix a comment
2012-08-01 19:25:47 -04:00
Victor Shnayder
119ab639d0
make cms users look like staff by default
...
* so they get the staff view of problems
* does NOT actually set User.is_staff
2012-08-01 11:48:18 -04:00
Victor Shnayder
c0cdff7071
Rename MalformedDescriptor to ErrorDescriptor
...
* change references and tests
* add staff/non-staff display
* added is_staff to ModuleSystem
2012-08-01 11:42:39 -04:00
Victor Shnayder
10054e95ce
add message to import command
2012-08-01 11:40:11 -04:00
Calen Pennington
2f95a8e1d0
Re-add __init__.py for contentstore that was accidentally deleted in 05add5818b
2012-07-31 09:29:14 -04:00
Calen Pennington
89b5f5b2be
Minor review notes
2012-07-30 16:11:35 -04:00
Calen Pennington
05add5818b
Return a custom error for duplicate elements, and ignore it when loading into mongo
2012-07-30 13:16:21 -04:00
Calen Pennington
6bd9cd6c28
Add management command for syncing with github
2012-07-30 12:59:28 -04:00
Victor Shnayder
3c3bbd114e
minor formatting tweaks
2012-07-27 16:08:24 -04:00
Victor Shnayder
60cba3d95f
Move import_from_xml to xmodule/modulestore
2012-07-27 16:08:23 -04:00
Victor Shnayder
e5117dba13
Mostly fix tests.
...
* change custom tags in test/data/full to new single-tag format
* fix broken file references
* fix argument to import_from_xml
* error_handler fix in mongo.py in next commit
2012-07-27 16:08:23 -04:00
Calen Pennington
29cf09763f
Fixing up cms tests to only use data in common/test/data
2012-07-25 10:09:25 -04:00
Calen Pennington
0a79130b11
Make problem previews work by saving problem state in the current request session
2012-07-24 16:14:04 -04:00
Calen Pennington
408726e678
Standardize how JS XModules are instantiated
2012-07-24 16:14:04 -04:00
Calen Pennington
19a3c14ab9
Split out code to replace /static urls in get_html into a separate module so that it can be used in CMS previews
2012-07-24 16:14:01 -04:00
Calen Pennington
3cdceab16c
Uniquify js fragments pulled from XModules, and load both XModuleDescriptor and XModule js into the cms
2012-07-24 16:13:59 -04:00
Calen Pennington
3fa636e060
Move module javascript into common/lib/xmodule. Still TODO: run jasmine tests in that directory
2012-07-24 16:13:59 -04:00
Calen Pennington
9458e53988
Adding stripped down 6002x course for testing, along with CMS test for edit pages for same
2012-07-24 16:13:51 -04:00
Calen Pennington
6bf0e093bc
Add tests for the edit page for the toy course, and make sure that exporting to github sets up the git repo properly
2012-07-24 15:05:07 -04:00
Calen Pennington
39b59484a6
Re-add login requirement to save_item
2012-07-24 15:05:07 -04:00
Calen Pennington
6b28786784
Use the new name for item_id in contentstore.views.save_item
2012-07-24 15:05:07 -04:00
Calen Pennington
15ac476781
Display preview html on the module edit page. Javascript for previews doesn't yet function
2012-07-24 15:05:07 -04:00
Calen Pennington
1d1a9173a4
Cleaning up pep8 violations
2012-07-23 14:44:40 -04:00
Calen Pennington
7a34a8c342
Fix failing tests
2012-07-23 13:49:11 -04:00
Victor Shnayder
f8ce11a6b5
Add fixes to notes in #182
...
* use 'location' instead of 'id' in views.
* still need to change names in the coffeescript--quick fix didn't work
2012-07-16 14:08:03 -04:00
Victor Shnayder
acd57fb7c5
Save author info in commit messages.
...
* add optional author_str param to export_to_github
* pass the django user info to that param
2012-07-16 13:34:04 -04:00
Victor Shnayder
3f356bfb1b
Add basic framework for checking permissions
...
* add dummy has_access(user, location) method
* re-organize views by type of access checking needed.
2012-07-16 13:34:04 -04:00
Victor Shnayder
c176a7fe92
Add account creation and login to CMS
...
* connect up views from student app
* Add initial @login_required decorators on the protected views
* Add tests for some of the basic functionality
2012-07-16 13:34:04 -04:00
Victor Shnayder
339e9a68f4
Make end-to-end tests work again
...
* NOTE: successfully running the tests depends on an updated version of
django-pipeline, which fixes a unicode bug (efaba4ac63 )
Config changes:
* Use separate db for the cms
* Run collectstatic before running tests--needed to get everything in the right place for loading pages
* fix some paths related to this
* Turn off JS compressor for CMS
* add empty test_root/uploads dir
Code changes:
* Add cms tests to check that home page and signup pages load
* Add cms account creation test
* Make github sync tests clean out repo dirs before running.
2012-07-13 11:51:33 -04:00