Skip to content

Commit

Permalink
Merge pull request #33465 from farhan/farhan/remove-xblockutils
Browse files Browse the repository at this point in the history
Remove xblockutils package
  • Loading branch information
Feanil Patel authored Oct 12, 2023
2 parents 84f7fdf + 23a44b9 commit 1ab9079
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/xblock/runtime/shims.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def render_template(self, template_name, dictionary, namespace='main'):
warnings.warn(
"Use of runtime.render_template is deprecated. "
"For template files included with your XBlock (which is preferable), use "
"xblockutils.resources.ResourceLoader.render_mako_template to render them, or use a JavaScript-based "
"xblock.utils.resources.ResourceLoader.render_mako_template to render them, or use a JavaScript-based "
"template instead. For template files that are part of the LMS/Studio, use the 'mako' XBlock service.",
DeprecationWarning, stacklevel=2,
)
Expand Down
3 changes: 1 addition & 2 deletions requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ openedx-mongodbproxy==0.2.0
# via -r requirements/edx/kernel.in
optimizely-sdk==4.1.1
# via -r requirements/edx/bundled.in
ora2==5.5.4
ora2==5.5.5
# via -r requirements/edx/bundled.in
oscrypto==1.3.0
# via snowflake-connector-python
Expand Down Expand Up @@ -1229,7 +1229,6 @@ xblock-poll==1.13.0
# via -r requirements/edx/bundled.in
xblock-utils==4.0.0
# via
# -r requirements/edx/kernel.in
# done-xblock
# edx-sga
# lti-consumer-xblock
Expand Down
6 changes: 3 additions & 3 deletions requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ execnet==2.0.2
# pytest-xdist
factory-boy==3.3.0
# via -r requirements/edx/testing.txt
faker==19.8.0
faker==19.9.0
# via
# -r requirements/edx/testing.txt
# factory-boy
Expand Down Expand Up @@ -1229,7 +1229,7 @@ multidict==6.0.4
# -r requirements/edx/testing.txt
# aiohttp
# yarl
mypy==1.5.1
mypy==1.6.0
# via
# -r requirements/edx/development.in
# django-stubs
Expand Down Expand Up @@ -1331,7 +1331,7 @@ optimizely-sdk==4.1.1
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
ora2==5.5.4
ora2==5.5.5
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ openedx-mongodbproxy==0.2.0
# via -r requirements/edx/base.txt
optimizely-sdk==4.1.1
# via -r requirements/edx/base.txt
ora2==5.5.4
ora2==5.5.5
# via -r requirements/edx/base.txt
oscrypto==1.3.0
# via
Expand Down
1 change: 0 additions & 1 deletion requirements/edx/kernel.in
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,4 @@ user-util # Functionality for retiring users (GDPR com
webob
web-fragments # Provides the ability to render fragments of web pages
XBlock[django] # Courseware component architecture
xblock-utils # Provides utilities used by the Discussion XBlock
xss-utils # https://github.com/edx/edx-platform/pull/20633 Fix XSS via Translations
4 changes: 2 additions & 2 deletions requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ execnet==2.0.2
# via pytest-xdist
factory-boy==3.3.0
# via -r requirements/edx/testing.in
faker==19.8.0
faker==19.9.0
# via factory-boy
fastapi==0.103.2
# via pact-python
Expand Down Expand Up @@ -1000,7 +1000,7 @@ openedx-mongodbproxy==0.2.0
# via -r requirements/edx/base.txt
optimizely-sdk==4.1.1
# via -r requirements/edx/base.txt
ora2==5.5.4
ora2==5.5.5
# via -r requirements/edx/base.txt
oscrypto==1.3.0
# via
Expand Down
4 changes: 2 additions & 2 deletions xmodule/discussion_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from xblock.completable import XBlockCompletionMode
from xblock.core import XBlock
from xblock.fields import UNIQUE_ID, Scope, String
from xblockutils.resources import ResourceLoader
from xblockutils.studio_editable import StudioEditableXBlockMixin
from xblock.utils.resources import ResourceLoader
from xblock.utils.studio_editable import StudioEditableXBlockMixin

from lms.djangoapps.discussion.django_comment_client.permissions import has_permission
from openedx.core.djangoapps.discussions.models import DiscussionsConfiguration, Provider
Expand Down

0 comments on commit 1ab9079

Please sign in to comment.