M. Zulqarnain
da970bf215
BOM-2369 (B): Pyupgrade on contentstore/management ( #26758 )
...
* pyupgrade on contentstore/management
2021-03-04 14:31:10 +05: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
Ayub khan
5613797aa8
INCR-336 python3 compatibility
2019-07-09 15:35:33 +05:00
Nimisha Asthagiri
dfa3728edf
Move django_comment_common from common to openedx
2019-05-03 12:10:18 -04:00
Nimisha Asthagiri
ef0e06cc0a
Revert "Discussions consolidation"
2019-05-02 14:59:56 -04:00
Nimisha Asthagiri
df962a31b7
Move django_comment_common to openedx/core/djangoapps/discussion_common
2019-05-01 19:15:02 -04:00
Matthew Piatetsky
7df30938c4
fix unicode strings in cms/
2019-02-04 13:01:51 -05:00
noraiz-anwar
593c2d1ae8
add python getter in capa system
2018-07-18 18:44:56 +05:00
Gavin Sidebottom
382b6069d8
PR feedback (added docstring notes, cleared up log messages)
2018-01-25 16:09:13 -05:00
Gavin Sidebottom
ec0263bc5b
changed 'course code lib' references to 'python lib' to maintain consistency
2018-01-25 16:08:57 -05:00
Gavin Sidebottom
8476f19463
Enabled python code lib import with GIT_IMPORT_STATIC set to False
2018-01-25 16:08:25 -05:00
Troy Sankey
150096e3bf
courseware management commands cleanup for django 1.11
2017-11-08 15:12:52 -05:00
bmedx
79fe2e6260
CMS management command cleanup for Django 1.11
2017-11-01 10:13:46 -04:00
Andy Armstrong
ebb04ca396
Reorder Studio imports using isort
2017-05-30 17:00:50 -04:00
Usman Khalid
6cb62f2697
Rebase upgrade Django to v1.8.5
...
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Sarina Canelake
8283c07e32
Remove superfluous-parens pylint violations
...
Skipped 'print' statement violations, as print() is Py3k syntax.
2015-07-13 17:33:28 -04:00
Jonathan Piacenti
8ad4d081fb
Added library import and export via .tar.gz'd XML files.
2015-03-10 21:29:29 +00:00
John Eskew
94ea35d3be
Export modulestore-stored asset metadata as XML to exported course.
...
Import asset metadata XML into modulestore.
Optimize importing many items of asset metadata by avoiding multiple
round-trips to MongoDB.
2014-12-16 15:42:38 -05:00
Nimisha Asthagiri
84992cdfa5
Refactor xml_importer.py for easier reading.
...
Remove post-publish step.
2014-08-08 14:41:57 -04:00
Nimisha Asthagiri
ea32529866
Fix all modulestore calls to pass in user ids.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
f5abef88c2
LMS-2947 remove get_error_courses in Split.
...
LMS-2950 move delete_course to Mongo.
2014-07-09 21:10:12 -04:00
Nimisha Asthagiri
a9213509c3
Enable Mixed Modulestore STUD-1540
...
Refactor get_parent_locations STUD-1663
2014-06-26 18:00:11 -04:00
Mat Peterson
3a35121099
Useless code path in import_from_xml causing errors removed
2014-06-20 13:21:40 +00: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
Carson Gee
4844a50405
Add test in import code to make sure two overlapping courses aren't imported
2014-04-09 12:54:12 -04:00
Carson Gee
1e809a4210
Adding missing forum permissions seeding routine to xml_import
...
Currently if a course is only imported from the command line the
forum permissions are not seeded, this adds that functionality
Switched to doing seeding outside of xmodule library
Switched to using course_items
Switching to simpler test class
2014-01-17 15:17:48 -05:00
Carson Gee
ccc87337d6
Add sysadmin dashboard
...
For seeing overview of system status, for deleting and loading
courses, for seeing log of git imports of courseware. Includes command
for importing course XML from git repositories.
Added a lot of tests for additional coverage with some minor fixes
those tests discovered
2013-12-15 19:06:05 -05:00
Chris Dodge
2ba0d40d7b
fix pep8 violations
2013-08-21 20:02:58 -04:00
ichuang
42af561a17
pep8 and pylint for tests of nostatic import
2013-08-21 11:23:00 -04:00
ichuang
2249692f9a
pylint
2013-08-19 10:19:14 -04:00
ichuang
1b111b1d29
add ability to import course (into CMS / edge) without static content,
...
and without rewriting static links. changes xml_importer.py and
import.py
2013-08-12 20:00:46 +00:00
David Baumgold
248793c127
Fix some pylint issues
2013-07-31 15:42:11 -04:00
Chris Dodge
b4fe23f3a2
more cleanups in CMS project
2013-04-13 21:13:34 -04:00
Chris Dodge
1cb2a6724d
add some additional logging for optional verbosity
2013-01-14 22:31:21 -05:00
Chris Dodge
a84ef1b243
wip: static asset import
2012-10-11 12:10:28 -04:00
Calen Pennington
75f8b7c98d
Add Draft module store that is used whenever any item is update in the CAS (but not during import, and not for templates)
2012-10-10 12:42:14 -04:00
Calen Pennington
d4377d4ada
Make imports into the CMS ignore broken modules, while still loading bad xml as error modules in the LMS
2012-09-25 10:10:44 -04:00
Victor Shnayder
10054e95ce
add message to import command
2012-08-01 11:40:11 -04:00
Calen Pennington
89b5f5b2be
Minor review notes
2012-07-30 16:11:35 -04:00
Calen Pennington
6bd9cd6c28
Add management command for syncing with github
2012-07-30 12:59:28 -04:00
Victor Shnayder
60cba3d95f
Move import_from_xml to xmodule/modulestore
2012-07-27 16:08:23 -04:00
Calen Pennington
6dd141247d
Fixing github_sync to work with multiple course data directories
2012-07-10 14:58:27 -04:00
Calen Pennington
4e599d4ab2
Extract import from xml into a separate function
2012-07-03 13:42:35 -04:00
Calen Pennington
6612beab46
Acknowledge the fact that right now keystore is really just a module store. If we need a keystore that returns other objects, we can reexctract the base class into it's own module again
2012-07-02 11:15:37 -04:00
Calen Pennington
79987666df
Lazily load module definition and metadata as needed, rather than immediately
2012-07-02 10:50:27 -04:00
Calen Pennington
7b89b1eb54
Add ability to update modulestore metadata for a module separately from data or children
2012-07-02 10:44:30 -04:00
Calen Pennington
51a790173f
Only set the default etree parser options in the module that is starting the xml parsing
2012-07-02 10:35:40 -04:00
Calen Pennington
3cf29af8fe
Make location into a named tuple, and use it more as a first class entity, rather than URL for identifying content
2012-07-02 10:17:59 -04:00
Calen Pennington
5cd388d638
Have the CMS use the same XMLModuleStore for import that the LMS uses for reading content
2012-06-29 12:44:15 -04:00
Calen Pennington
5b8120280e
Move the resources_fs abstraction into the primary DescriptorSystem, as it is needed for more than just XMLParsing
2012-06-29 12:38:58 -04:00