From 3da026dbe6dd4162076efa97965286df9d0ef09f Mon Sep 17 00:00:00 2001 From: Tiberiu Chibici Date: Sat, 27 Oct 2018 03:33:45 +0300 Subject: [PATCH] Fixed multiple issues in configparser usage and implementation. Added dropdowns for sort order, and used the values everywhere. --- .idea/workspace.xml | 917 +++++++++--------- YtManager/settings.py | 1 + YtManagerApp/appconfig.py | 173 ++-- YtManagerApp/management/downloader.py | 33 +- .../management/jobs/download_video.py | 29 +- YtManagerApp/management/jobs/synchronize.py | 15 +- .../migrations/0005_auto_20181026_2013.py | 134 +++ .../migrations/0006_auto_20181027_0256.py | 18 + YtManagerApp/models.py | 51 +- ....py => extended_interpolation_with_env.py} | 24 +- YtManagerApp/views/actions.py | 27 +- YtManagerApp/views/auth.py | 3 +- YtManagerApp/views/index.py | 56 +- YtManagerApp/views/settings.py | 5 +- config/config.ini | 38 +- config/{config.ini.default => defaults.ini} | 10 +- 16 files changed, 849 insertions(+), 685 deletions(-) create mode 100644 YtManagerApp/migrations/0005_auto_20181026_2013.py create mode 100644 YtManagerApp/migrations/0006_auto_20181027_0256.py rename YtManagerApp/utils/{customconfigparser.py => extended_interpolation_with_env.py} (83%) rename config/{config.ini.default => defaults.ini} (86%) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0639074..d209a32 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,17 +2,22 @@ - - - + + + + + + + - - - - - - + + + + + + + - + - + - - - - - - - - - - - + + - + - - + + - + - - + + + + + + + + + + + - - - - - - - - - + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + @@ -209,76 +272,26 @@ - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - @@ -296,18 +309,8 @@ - start_synchronization_timer - thumbnailUrl - __fetch_thumbnail - $.post - material-folder - material-icons - = - _resolve_section_option - ExtendedInterpolatorWithEnv ConfigParserWithEnv logger - settings app_config dialog_ .find @@ -321,11 +324,21 @@ ajax_index_get_videos ajax_index_get_tree self.helper - _interpolation csrf pre> UpdateView success_url + download_order + order + LoginRequiredMixin + @login_require + VIDEO_ORDER_MAPPING + _unify_values + _interpolation + ExtendedInterpolation + settings + settings. + manager_delete_after_watched loading @@ -349,11 +362,6 @@ @@ -414,7 +427,7 @@ - +