Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove xblockutils package #33465

Merged
merged 2 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
5 changes: 2 additions & 3 deletions requirements/edx/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ edx-django-utils==5.7.0
# openedx-blockstore
# ora2
# super-csv
edx-drf-extensions==8.10.0
edx-drf-extensions==8.11.0
# via
# -r requirements/edx/kernel.in
# edx-completion
Expand Down 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
8 changes: 4 additions & 4 deletions requirements/edx/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,7 @@ edx-django-utils==5.7.0
# openedx-blockstore
# ora2
# super-csv
edx-drf-extensions==8.10.0
edx-drf-extensions==8.11.0
# via
# -r requirements/edx/doc.txt
# -r requirements/edx/testing.txt
Expand Down 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
4 changes: 2 additions & 2 deletions requirements/edx/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ edx-django-utils==5.7.0
# openedx-blockstore
# ora2
# super-csv
edx-drf-extensions==8.10.0
edx-drf-extensions==8.11.0
# via
# -r requirements/edx/base.txt
# edx-completion
Expand Down 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
6 changes: 3 additions & 3 deletions requirements/edx/testing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ edx-django-utils==5.7.0
# openedx-blockstore
# ora2
# super-csv
edx-drf-extensions==8.10.0
edx-drf-extensions==8.11.0
# via
# -r requirements/edx/base.txt
# edx-completion
Expand Down 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
Loading