7
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-06-27 00:53:30 +00:00
tutor/changelog.d
Kyle D. McCormick 3affd546e9 fix: set default theme by simply deleting SiteTheme objects
`tutor ... do settheme default` is meant to revert to the
default theme.  However, in its current implementation, it
creates SiteTheme objects pointing to a theme named "default",
which doesn't exist, resulting in errors like:

    Theme dirs:
    [Path('/openedx/themes')]]
    Traceback (most recent call last):
      File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 204, in get_current_theme
	themes_base_dir=get_theme_base_dir(site_theme.theme_dir_name),
      File "/openedx/edx-platform/openedx/core/djangoapps/theming/helpers.py", line 242, in get_theme_base_dir
	raise ValueError(
    ValueError: Theme 'default' not found in any of the following themes dirs,

This works from the perspective of the user, because a missing theme is
treated as the default theme. However, the errors are unneccesary &
confusing.

By simply deleting & not recreating SiteTheme objects instead,
we are able to revert to the default theme while keeping the
logs clear of theming errors.
2023-07-17 10:19:33 +02:00
..
scriv fix: scriv error during github release 2023-06-14 09:38:07 +02:00
20230714_100627_kyle.md fix: set default theme by simply deleting SiteTheme objects 2023-07-17 10:19:33 +02:00
scriv.ini ci: better github release management with scriv 2023-01-17 12:12:10 +01:00