get metadata inheritance to work with draft stores. Fix bug on .publish()...
get metadata inheritance to work with draft stores. Fix bug on .publish() method whereby inherited metadata got written to the DB as 'own-metadata'. Change filter in mako_module.py to return list of own-metadata and inherited-metadata as 'editable-metadata'. Also, add unit test for draft metadata-inheritance and publish
Showing
- cms/djangoapps/contentstore/tests/test_contentstore.py 63 additions, 0 deletionscms/djangoapps/contentstore/tests/test_contentstore.py
- common/lib/xmodule/xmodule/mako_module.py 11 additions, 4 deletionscommon/lib/xmodule/xmodule/mako_module.py
- common/lib/xmodule/xmodule/modulestore/draft.py 2 additions, 1 deletioncommon/lib/xmodule/xmodule/modulestore/draft.py
- common/lib/xmodule/xmodule/modulestore/mongo.py 15 additions, 6 deletionscommon/lib/xmodule/xmodule/modulestore/mongo.py
- common/test/data/simple/course.xml 7 additions, 0 deletionscommon/test/data/simple/course.xml
Loading
Please register or sign in to comment