M. Zulqarnain
deb7f5b026
refactor: pyupgrade in common/lib/xmodule ( #26780 )
2021-03-10 17:56:07 +05:00
usamasadiq
96f0915b0f
Fixed new pylint warnings.
...
use generator in any/all()
disable not-callable warnings
disable no-member warnings
Suppressed smaller pylint warnings
Pin edx-proctoring==3.5.0
2021-02-22 16:36:53 +05:00
Aarif
cce5c9ef1a
replaced unittest assertions pytest assertions ( #26530 )
2021-02-19 12:25:51 +05:00
usamasadiq
1175838fa5
fix pep8 warnings
2021-02-08 16:08:01 +05:00
usamasadiq
bbc386752f
Applied pylint-amnesty
2021-02-04 18:52:10 +05:00
Usman Khalid
9e38b17202
Convert ErrorModule and NonStaffErrorModule to XBlocks. ( #25570 )
2021-01-07 10:51:33 -05:00
Usman Khalid
f62b5de6b1
Convert ConditionalModule to ConditionalBlock.
2020-11-07 20:02:02 +05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -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
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Ayub khan
a13321cc76
INCR-416 python3 compatibility
2019-07-11 15:45:22 +05:00
Michael Youngstrom
4bbd1dee0b
Remove shards from commonlib-unit tests
2019-02-12 14:28:35 -05:00
cclauss
8fca11b85c
Use print() function in both Python 2 and Python 3
2019-01-13 17:16:37 +01:00
Calen Pennington
0aeec133fc
Render all parts of XBlock fragments in a Conditional Module
...
[EDUCATOR-3262]
2018-08-10 13:32:55 -04:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
Jeremy Bowman
2bd0c3d9a1
PLAT-1917 Stop using deprecated Location and AssetLocation
2018-02-03 00:31:59 -05:00
Jeremy Bowman
669aa13ad6
PLAT-1873 to_deprecated_string() cleanup part 2
2018-01-08 17:26:55 -05:00
cahrens
b26b41b9fc
Replace deprecated_string methods.
2017-08-15 14:21:45 -04:00
cahrens
819a56fee3
Remove usages of deprecated SlashSeparatedCourseKey.
2017-08-14 11:01:00 -04:00
Qubad786
c7364a06a4
handle if required module(s) for conditional module are staff only
2016-11-09 20:11:33 +05:00
Oksana Slusarenro
cda7f1dc6c
Changed the Help and Field Label text.
2016-09-15 10:24:54 +03:00
Oksana Slusarenro
244061229e
Fix test for conditional module.
2016-09-07 14:55:03 +03:00
Oksana Slusarenro
6d56701326
Add ui in studio for conditional_module.
2016-09-07 11:34:23 +03:00
Calen Pennington
fdf81042f5
Pass XBlock parents down to their children when constructing them, for caching
2015-06-25 13:59:46 -04:00
Calen Pennington
11dcf12f14
Make XModule use the same get_children that XModuleDescriptor and XBlock do, and make it returned the same CombinedSystem
2015-03-17 13:15:18 -04:00
Jonathan Piacenti
8ad4d081fb
Added library import and export via .tar.gz'd XML files.
2015-03-10 21:29:29 +00:00
Calen Pennington
03a05fd9d4
Always call super(..).setUp() from setUp
2015-02-04 09:09:14 -05:00
jsa
17d892c521
make block.get_parent() work.
...
Co-Authored-By: Christina Roberts <christina@edx.org >
Co-Authored-By: Daniel Friedman <dfriedman@edx.org >
Co-Authored-By: Don Mitchell <dmitchell@edx.org >
2015-01-15 10:33:44 -05:00
Brian Wilson
2faff29a21
Fix PureSystem so that runtime.publish() works for a pure XBlock.
...
Fix extracted from https://github.com/edx/edx-platform/pull/6035 .
2014-12-19 09:00:32 -05:00
Calen Pennington
d919d2ae46
Teach LMS how to render XBlockAsides
...
[PLAT-217]
2014-12-13 08:26:28 -05:00
cahrens
73e7ced6f9
Introduce constants for studio_view, student_view, and author_view.
2014-06-20 11:41:23 -04:00
Sarina Canelake
2aea261d48
Merge branch 'release'
...
Conflicts:
common/djangoapps/course_modes/views.py
common/djangoapps/student/tests/test_roles.py
common/djangoapps/student/views.py
common/lib/opaque_keys/opaque_keys/__init__.py
common/lib/opaque_keys/opaque_keys/tests/test_opaque_keys.py
common/lib/xmodule/xmodule/contentstore/mongo.py
lms/djangoapps/certificates/management/commands/gen_cert_report.py
lms/djangoapps/notes/views.py
2014-06-10 16:59:23 -04:00
Julia Hansbrough
6e702c3131
Fix conditional module rendering
2014-06-10 15:32:32 +00:00
Calen Pennington
cfcbdc0145
Move to OpaqueKey implementations from the external library
...
[LMS-2757]
2014-05-29 17:03:35 -04:00
Calen Pennington
c62b6b0083
Fix ConditionalTest test system
2014-05-21 14:44:46 -04:00
Calen Pennington
d654798856
Make course ids and usage ids opaque to LMS and Studio [partial commit]
...
This commit updates common/lib/xmodule.
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-08 20:28:53 -04:00
Jay Zoldak
bc30addfb9
Unicode changes to support QRF
...
fixing unit tests
fixing merge error
fixing xqueue submission issue with unicode url (trial 0.1)
fixing fotmats as commented upon
removing yaml file language selection
Unicode changes to support QRF
removed unnecessary pass in modulestore/init.py
fixing merge error
fixing fotmats as commented upon
removing yaml file language selection
fixing pep8 violations
- fixing pylint violations
pylint violation
fixing line spaces and formats
ignore pylint E1101
remove empty line
fixing pylint violations
pep8 violations
bulk mail unicode/decode
fix migration error
fix pep8 just to push again
more unicode/decode
Final changes to comments and error messages.
2014-01-30 16:20:36 -05:00
Calen Pennington
46109bb3e8
Use XBlock xml serialization and deserialization
...
XModules continue to use their own interface for xml, but provide an
adaptor that makes the the XBlock interface available.
[LMS-179]
2014-01-14 13:28:47 -05:00
Calen Pennington
864d831ce3
Use XBlock handlers for handle_ajax in XModules
...
Adds xblock handler_url support to the LMS, and makes handle_ajax use
that code.
[LMS-230] [LMS-229]
2013-11-08 11:08:48 -05:00
Calen Pennington
658810a94f
Use xblock render shortcuts
2013-10-08 15:58:23 -04:00
Calen Pennington
6b474724ac
Make XModuleDescriptor and XModule act as a single class
...
By transparently proxying between the XModuleDescriptor and the XModule,
and between their runtimes, we can make them act as a single class, so
that we can swap in an actual XBlock instead.
2013-10-08 15:29:17 -04:00
Calen Pennington
230bf0c643
Switch get_html replacement out for using wrap_child
2013-10-03 14:28:19 -04:00
Calen Pennington
8201b1412e
Use XBlock 0.3
2013-09-06 09:45:59 -04:00
Carlos Andrés Rocha
82ae9e775d
Cleanup some xmodule tests imports and data directory location
2013-08-12 20:58:36 -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
lapentab
24bee17da5
Merge pull request #156 from edx/blapenta/fix-test-coverage
...
Fix test_system looking like a test to nosetest. Fix class inheritance causing double counting of coverage.
2013-06-19 08:50:54 -07:00
lapentab
dece800888
Renames self.get_test_system to test_system, removes duplicate function.
2013-06-19 09:57:16 -04:00
lapentab
f0fb620be6
Fixes missing refactoring
2013-06-18 14:12:23 -04:00
lapentab
b9ca9a84d7
Merge branch 'master' into blapenta/fix-test-coverage
...
Conflicts:
AUTHORS
common/lib/xmodule/xmodule/tests/test_annotatable_module.py
common/lib/xmodule/xmodule/tests/test_capa_module.py
common/lib/xmodule/xmodule/tests/test_combined_open_ended.py
common/lib/xmodule/xmodule/tests/test_conditional.py
common/lib/xmodule/xmodule/tests/test_html_module.py
common/lib/xmodule/xmodule/tests/test_progress.py
common/lib/xmodule/xmodule/tests/test_xml_module.py
lms/djangoapps/courseware/tests/__init__.py
2013-06-18 13:41:53 -04:00
lapentab
b93f00e02f
Rename system_test to get_test_system
2013-06-18 11:37:24 -04:00