-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ticket migrating to xblock.utils
from xblockutils
after deprecation of repo
#915
Comments
farhan
changed the title
Migrate to xblock.utils from xblockutils after deprecation of repo
Migrate to Oct 5, 2023
xblock.utils
from xblockutils
after deprecation of repo
This was referenced Oct 9, 2023
Package |
github-project-automation
bot
moved this from Backlog
to Done
in Axim Engineering Tasks
Oct 16, 2023
feanil
changed the title
Migrate to
Ticket migrating to Oct 16, 2023
xblock.utils
from xblockutils
after deprecation of repoxblock.utils
from xblockutils
after deprecation of repo
5 tasks
So add a try-except clause for the new imports and then try the old imports if we don't find the new ones? |
@feanil, exactly; something like this: try:
from xblock.utils.resources import ResourceLoader
from xblock.utils.settings import ThemableXBlockMixin, XBlockWithSettingsMixin
except ModuleNotFoundError: # For backward compatibility with releases older than Quince.
from xblockutils.resources import ResourceLoader
from xblockutils.settings import ThemableXBlockMixin, XBlockWithSettingsMixin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Predecessor ticket: openedx/XBlock#675
The xblock-utils repo has been deprecated and in this story, we have to list down all the repositories that are using the xblock-utils package and switch the usage/import from
xblock-utils
toxblock.utils
Tasks:
Acceptance Criteria:
The text was updated successfully, but these errors were encountered: