M. Zulqarnain
deb7f5b026
refactor: pyupgrade in common/lib/xmodule ( #26780 )
2021-03-10 17:56:07 +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
8e4a9d2ba1
Convert RandomizeModule to RandomizeBlock.
2020-11-04 23:15:35 +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
aarif
af20d0f7d2
Updated the comparison operation to fix None comparison with integer
2019-10-03 15:52:52 +05:00
Maxim Dorovkov
8702e40589
INCR-230 - Run python-modernize and isort on common/lib/xmodule/xmodule ( #20506 )
...
* INCR-230 - Run python-modernize and isort on common/lib/xmodule/xmodule, plus a few minor fixes suggested by Jeremy
2019-05-16 10:09:15 -04:00
Jeremy Bowman
f8e5e38cc4
PLAT-1884 Replace deprecated xblock.fragment usage
2018-01-11 14:20:12 -05:00
Andy Armstrong
93235d118d
Reorder imports using isort (except lms and cms)
2017-05-30 16:04:54 -04:00
Christina Roberts
2497f0a0eb
WIP: xblock pipeline work ( #10176 )
...
[PERF-303] Integer XBlocks/XModules into the static asset pipeline.
This PR, based on hackathon work from Christina/Andy, implements a way to discover all installed XBlocks and XModules and to enumerate their public assets, then pulling them in during the collectstatic phase and hashing them. In turn, the methods for generating URLs to resources will then returned the hashed name for assets, allowing them to be served from nginx/CDNs, and cached heavily.
2016-04-29 10:52:42 -04:00
Sven Marnach
3d7246ecc8
Allow masquerading as a specific user different from the logged in user.
2015-07-13 18:55:45 -07:00
Awais Jibran
a14a562ed6
Fixed randomized problems which were not appearing to work.
...
TNL-2551
2015-07-06 15:29:59 +05:00
Awais Jibran
5306ac02b0
Revert "Fixed randomized problems which were not appearing to work."
2015-07-02 02:35:54 +05:00
Awais Jibran
e64ae13a34
Fixed randomized problems which were not appearing to work.
...
TNL-2551
2015-07-01 16:34:34 +05:00
stv
fb9f324f2f
Fix PEP8: E303 too many blank lines
2014-11-10 11:00:14 -08:00
cahrens
73e7ced6f9
Introduce constants for studio_view, student_view, and author_view.
2014-06-20 11:41:23 -04:00
Calen Pennington
b0bed170de
Enable (and test) xml export of pure XBlocks
...
[LMS-179]
[LMS-209]
[LMS-1345]
2014-02-05 13:02:40 -05:00
David Baumgold
e26fc08d2b
Update logging.getLogger() calls to use edx instead of mitx
2013-12-04 15:18:15 -05:00
Calen Pennington
b4a1840344
Move xmodule_runtime.xmodule_instance registration earlier
...
This allows XModules (specifically CombinedOpenEnded) to use ajax_url
during their init functions (which would, before, have thrown an
exception).
[LMS-1493]
2013-11-20 10:15:09 -05:00
Calen Pennington
2514dca550
Put XBlock css and javascript onto the LMS courseware page
...
This required changing structural XModules to fully implement
student_view, rather than just returning the HTML of their children in a
get_html call.
[LMS-223]
[LMS-1170]
2013-10-09 09:40:47 -04:00
Calen Pennington
658810a94f
Use xblock render shortcuts
2013-10-08 15:58:23 -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
Calen Pennington
e791e84ea7
Remove the stores_state field from XModule
...
stores_state is now only used in a single test, in conjunction with
has_score. In practice, it's never the case that stores_state is false
when has_score is true, so we can delete stores_state entirely, and just
use has_score for the grading test.
2013-06-13 14:38:59 -04:00
Chris Dodge
b6090952da
randomize_module.py was missing 'import lxml' to support definition_to_xml(). Also, fix serialization of show_timezone to expect a bool
2013-05-23 14:24:36 -04:00
Calen Pennington
039ccb83cc
Migrate to the open source XBlock repo
2013-04-04 10:55:31 -04:00
Calen Pennington
92e99d7a8b
Move field definitions for XModules into mixin classes, so that descriptors and modules always have the same set of fields
2013-03-13 11:35:50 -04:00
Calen Pennington
137662081f
Squelch pep8 and pylint output unless they fail
2013-03-12 13:26:17 -04:00
Calen Pennington
2aa24350cd
Migrate the randomize module to the new storage model
2013-03-12 12:59:06 -04:00
Calen Pennington
cfae1cdf62
Pep8 autofixes
2013-02-06 11:13:50 -05:00
Victor Shnayder
b6614f6939
add initial test that only tests the descriptor
2013-02-04 18:28:22 -05:00
Victor Shnayder
e431378f46
Add first pass at a randomize module
2013-01-31 12:14:01 -05:00