M. Zulqarnain
3a5be3b074
pyupgrade on course_creators, maintenance and models apps under CMS ( #26709 )
2021-03-02 16:45:20 +05:00
Zulqarnain
ffb9e6cb4b
pylint amnesty in cms apps
2021-02-02 15:31:33 +05:00
Kyle McCormick
151bd13666
Use full names for common.djangoapps imports; warn when using old style ( #25477 )
...
* Generate common/djangoapps import shims for LMS
* Generate common/djangoapps import shims for Studio
* Stop appending project root to sys.path
* Stop appending common/djangoapps to sys.path
* Import from common.djangoapps.course_action_state instead of course_action_state
* Import from common.djangoapps.course_modes instead of course_modes
* Import from common.djangoapps.database_fixups instead of database_fixups
* Import from common.djangoapps.edxmako instead of edxmako
* Import from common.djangoapps.entitlements instead of entitlements
* Import from common.djangoapps.pipline_mako instead of pipeline_mako
* Import from common.djangoapps.static_replace instead of static_replace
* Import from common.djangoapps.student instead of student
* Import from common.djangoapps.terrain instead of terrain
* Import from common.djangoapps.third_party_auth instead of third_party_auth
* Import from common.djangoapps.track instead of track
* Import from common.djangoapps.util instead of util
* Import from common.djangoapps.xblock_django instead of xblock_django
* Add empty common/djangoapps/__init__.py to fix pytest collection
* Fix pylint formatting violations
* Exclude import_shims/ directory tree from linting
2020-11-10 07:02:01 -05:00
Kyle McCormick
a3deb6e317
Sort imports in cms/
...
Command: `isort --recursive cms/`
2020-10-19 09:34:31 -04:00
Kyle McCormick
538dbf696b
Import CMS code using fully qualified module names
...
or, using proper the proper Python 3 relative imports
(e.g., 'from .views import x') which are standard and
unambiguous.
2020-10-19 09:34:31 -04:00
Jansen Kantor
45c54ee6a5
log grade policy changes ( #25247 )
...
* log grade policy changes
* quality
2020-10-05 19:58:33 -04:00
Andytr1
af072a5158
EDUCATOR-5039 ( #24546 )
...
* EDUCATOR-5039
* EDUCATOR-5039 - pr updates
2020-07-21 13:36:18 -04:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Awais Qureshi
2ca2a39973
PROD-661
...
Photo verification Fixing python3
2019-09-08 19:22:11 +05:00
arbisoft
4b432c4b48
BOM-354
...
Fix Unicode-objects must be encoded before hashing.
2019-08-23 12:04:51 +05:00
arbisoft
83a742966d
Fixing python-modernize issues.
2019-07-09 19:14:04 +05:00
rabiaiftikhar
14ed80a488
EDUCATOR-3668 add temperory logs
2018-11-08 02:46:39 +05:00
Ned Batchelder
e23e3a0486
Fix a number of unused-import pylint violations
2017-11-21 19:57:06 -05:00
Alex Dusenbery
6dfa47b2fc
EDUCATOR-565 | Add POLICY_CHANGE_GRADES_ROUTING_KEY, fix errors in compute_all_grades_for_course circuitry.
2017-07-11 14:01:38 -04:00
Gregory Martin
79a2b6e245
Eventing for grading policy change
2017-05-31 14:07:14 -04:00
Alex Dusenbery
30fc3a55d0
EDUCATOR-390 and EDUCATOR-391 | Send GRADING_POLICY_CHANGED signal when something changes the grading policy.
2017-05-23 08:57:06 -04:00
zubair-arbi
3204c8b3fe
show credit eligibility requirements in studio
...
ECOM-1591
2015-06-12 13:19:57 +05:00
zubair-arbi
f62e5347e1
round-off weight, min_count and drop_count values while returing grading policy
...
TNL-884
2014-12-11 12:27:01 +05:00
Don Mitchell
eb33f0e0eb
Cons up new dict to not hurt cached value
2014-10-07 13:48:27 -04:00
Don Mitchell
d723425a83
Fix cached definition change detection
...
LMS-11485
2014-10-02 14:22:07 -04:00
Nimisha Asthagiri
a9213509c3
Enable Mixed Modulestore STUD-1540
...
Refactor get_parent_locations STUD-1663
2014-06-26 18:00:11 -04:00
Calen Pennington
0d88379eeb
Make course ids and usage ids opaque to LMS and Studio [partial commit]
...
This commit adds all of cms.
These keys are now objects with a limited interface, and the particular
internal representation is managed by the data storage layer (the
modulestore).
For the LMS, there should be no outward-facing changes to the system.
The keys are, for now, a change to internal representation only. For
Studio, the new serialized form of the keys is used in urls, to allow
for further migration in the future.
Co-Author: Andy Armstrong <andya@edx.org >
Co-Author: Christina Roberts <christina@edx.org >
Co-Author: David Baumgold <db@edx.org >
Co-Author: Diana Huang <dkh@edx.org >
Co-Author: Don Mitchell <dmitchell@edx.org >
Co-Author: Julia Hansbrough <julia@edx.org >
Co-Author: Nimisha Asthagiri <nasthagiri@edx.org >
Co-Author: Sarina Canelake <sarina@edx.org >
[LMS-2370]
2014-05-07 12:56:43 -04:00
Don Mitchell
b8ea7f3c43
update_item and other refactorings continued
2014-02-05 10:24:24 -05:00
Don Mitchell
c601b75675
MixedModulestore wraps most getters, update_item, delete_item
...
with code to translate between addressing schemes based on app
and persistence layer addressing scheme specification.
STUD-1206
2014-02-05 09:34:30 -05:00
Adam Palay
e07c80e1e8
Internationalize "Not Graded" on front end (STUD-989)
...
change code-side "Not Graded" to "notgraded"
2014-01-27 14:16:34 -05:00
Don Mitchell
7f91ce40ae
Restful api for course advanced settings
...
STUD-948
2013-11-26 10:17:52 -05:00
Don Mitchell
17864353a5
Restful course settings
...
STUD-946
STUD-947
2013-11-22 10:55:35 -05:00
Calen Pennington
8201b1412e
Use XBlock 0.3
2013-09-06 09:45:59 -04:00
Diana Huang
3f9431e8cf
Provide implicit saves for XBlocks and XModules.
...
Update existing tests and provide new ones to test new paradigm.
2013-07-18 16:37:34 -04:00
Don Mitchell
3722685e1a
No longer persist XModule templates
...
Instead, we use XModule field default values when creating an empty
XModule. Driven by this use case, we also allow for XModules to be
created in memory without being persisted to the database at all. This
necessitates a change to the Modulestore api, replacing clone_item with
create_draft and save_xmodule.
2013-07-16 14:33:58 -04:00
Chris Dodge
6d6b3a59fe
violation fixes
2013-04-12 15:27:36 -04:00
cahrens
227a5e8266
Delete converters, move unit tests to test_fields, add new additional test cases.
2013-03-27 12:56:06 -04:00
Calen Pennington
2a96c45677
Make default value for format setting None, and force lms and cms to be explicit about a string default
2013-03-12 10:16:14 -04:00
Calen Pennington
7e1349775c
Don't write data to metadata when updating course grading
2013-03-11 13:53:59 -04:00
Calen Pennington
cec3475c9d
Remove references to .definition and .metadata in modules
2013-03-06 18:07:56 -05:00
Calen Pennington
2bc3000156
Fix tests
2013-02-15 15:44:11 -05:00
Calen Pennington
793bbfd351
Set up dev environment for testing xml vs mongo vs split_mongo modulestores
2013-02-13 14:04:21 -05:00
Don Mitchell
c904174bb7
Fix broken test and don't pass time units as strings but as ints.
2013-02-12 17:30:57 -05:00
Don Mitchell
8e213fb0d7
lms required grace period fields to be in specific order
2013-02-12 13:48:54 -05:00
Calen Pennington
4f555f6480
Merge remote-tracking branch 'origin/master' into feature/cale/xmodule-storage-model
...
Conflicts:
cms/djangoapps/contentstore/course_info_model.py
cms/djangoapps/contentstore/module_info_model.py
cms/djangoapps/contentstore/tests/factories.py
cms/djangoapps/contentstore/tests/test_course_settings.py
cms/djangoapps/contentstore/views.py
cms/djangoapps/models/settings/course_details.py
cms/djangoapps/models/settings/course_grading.py
cms/templates/edit_subsection.html
common/djangoapps/mitxmako/shortcuts.py
common/djangoapps/static_replace.py
common/djangoapps/util/converters.py
common/djangoapps/xmodule_modifiers.py
common/lib/xmodule/setup.py
common/lib/xmodule/xmodule/abtest_module.py
common/lib/xmodule/xmodule/capa_module.py
common/lib/xmodule/xmodule/course_module.py
common/lib/xmodule/xmodule/discussion_module.py
common/lib/xmodule/xmodule/error_module.py
common/lib/xmodule/xmodule/html_module.py
common/lib/xmodule/xmodule/js/src/video/display.coffee
common/lib/xmodule/xmodule/mako_module.py
common/lib/xmodule/xmodule/modulestore/mongo.py
common/lib/xmodule/xmodule/modulestore/store_utilities.py
common/lib/xmodule/xmodule/modulestore/xml.py
common/lib/xmodule/xmodule/modulestore/xml_importer.py
common/lib/xmodule/xmodule/raw_module.py
common/lib/xmodule/xmodule/self_assessment_module.py
common/lib/xmodule/xmodule/seq_module.py
common/lib/xmodule/xmodule/template_module.py
common/lib/xmodule/xmodule/tests/__init__.py
common/lib/xmodule/xmodule/tests/test_export.py
common/lib/xmodule/xmodule/tests/test_import.py
common/lib/xmodule/xmodule/video_module.py
common/lib/xmodule/xmodule/x_module.py
common/lib/xmodule/xmodule/xml_module.py
lms/djangoapps/courseware/access.py
lms/djangoapps/courseware/courses.py
lms/djangoapps/courseware/grades.py
lms/djangoapps/courseware/models.py
lms/djangoapps/courseware/module_render.py
lms/djangoapps/courseware/tests/tests.py
lms/djangoapps/courseware/views.py
lms/djangoapps/django_comment_client/utils.py
lms/templates/staff_problem_info.html
lms/templates/video.html
rakefile
2013-02-07 15:12:30 -05:00
Calen Pennington
cfae1cdf62
Pep8 autofixes
2013-02-06 11:13:50 -05:00
Don Mitchell
edda80d485
New style base python classes and basestring type.
2013-01-22 11:30:24 -05:00
Calen Pennington
8e0d218c7d
Stop using .definition and .metadata directly
2013-01-02 15:06:43 -05:00
Calen Pennington
60fa8619cb
Fixing tests
2013-01-02 10:37:49 -05:00
Calen Pennington
6427dd6742
WIP: Get the cms running. Component previews work
2013-01-02 09:07:02 -05:00
Calen Pennington
fa75245e8a
WIP: Start cleaning up CMS to work with new field format
2013-01-02 09:05:48 -05:00
Don Mitchell
83bc9d7bf8
Grader unit tests (partial)
2012-12-26 15:48:37 -05:00
Christina Roberts
e57b5b1431
Merge pull request #1160 from MITx/feature/btalbot/cms-gradable
...
Overview page allows user to specify grading policy per subsection
2012-12-14 14:09:28 -08:00
Don Mitchell
0fc16dffee
Gradable impl'd for overview page
2012-12-14 12:29:57 -05:00
Don Mitchell
6c64032fcf
Overview should be ready to test.
2012-12-14 09:22:54 -05:00