From b5c9bfc8d76936028256996913a59c388fdc340d Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 2 Jun 2024 22:14:13 +0200 Subject: [PATCH] refactor: moved distribusi workflow forms do distribusikan folder --- verse/distribusikan/distribusiselector.py | 10 +++++----- verse/distribusikan/distribusiworkflow.py | 10 +++++----- verse/distribusikan/editor.py | 12 ++++++------ verse/{ => distribusikan}/forms/distribusiform.py | 0 verse/{ => distribusikan}/forms/editorform.py | 0 verse/{ => distribusikan}/forms/publicthemeform.py | 0 verse/{ => distribusikan}/forms/selectorform.py | 0 verse/{ => distribusikan}/forms/themeform.py | 0 verse/{ => distribusikan}/forms/uploadform.py | 0 verse/distribusikan/themeselector.py | 10 +++++----- verse/distribusikan/upload.py | 2 +- verse/distribusikan/uploadpage.py | 8 ++++---- verse/start.py | 2 +- 13 files changed, 27 insertions(+), 27 deletions(-) rename verse/{ => distribusikan}/forms/distribusiform.py (100%) rename verse/{ => distribusikan}/forms/editorform.py (100%) rename verse/{ => distribusikan}/forms/publicthemeform.py (100%) rename verse/{ => distribusikan}/forms/selectorform.py (100%) rename verse/{ => distribusikan}/forms/themeform.py (100%) rename verse/{ => distribusikan}/forms/uploadform.py (100%) diff --git a/verse/distribusikan/distribusiselector.py b/verse/distribusikan/distribusiselector.py index 4201129..ac0e040 100644 --- a/verse/distribusikan/distribusiselector.py +++ b/verse/distribusikan/distribusiselector.py @@ -12,11 +12,11 @@ from sqlalchemy.exc import ( from app import db from distribusikan.distribusisinfo import DistribusisInfo -from forms.distribusiform import DistribusiForm -from forms.publicthemeform import PublicThemeForm -from forms.selectorform import SelectorForm -from forms.themeform import ThemeForm -from forms.uploadform import UploadForm +from distribusikan.forms.distribusiform import DistribusiForm +from distribusikan.forms.publicthemeform import PublicThemeForm +from distribusikan.forms.selectorform import SelectorForm +from distribusikan.forms.themeform import ThemeForm +from distribusikan.forms.uploadform import UploadForm from models.distribusi_model import Distribusis from models.user_model import User diff --git a/verse/distribusikan/distribusiworkflow.py b/verse/distribusikan/distribusiworkflow.py index 4e3a376..f728292 100644 --- a/verse/distribusikan/distribusiworkflow.py +++ b/verse/distribusikan/distribusiworkflow.py @@ -17,13 +17,13 @@ from sqlalchemy.exc import ( from app import db from distribusikan.distribusiselector import SelectorVisible from distribusikan.distribusisinfo import DistribusisInfo -from forms.distribusiform import DistribusiForm -from forms.publicthemeform import PublicThemeForm -from forms.selectorform import SelectorForm -from forms.themeform import ThemeForm +from distribusikan.forms.distribusiform import DistribusiForm +from distribusikan.forms.publicthemeform import PublicThemeForm +from distribusikan.forms.selectorform import SelectorForm +from distribusikan.forms.themeform import ThemeForm # Forms! -from forms.uploadform import UploadForm +from distribusikan.forms.uploadform import UploadForm from models.distribusi_model import Distribusis from models.user_model import User diff --git a/verse/distribusikan/editor.py b/verse/distribusikan/editor.py index 88e63c2..384c8b1 100644 --- a/verse/distribusikan/editor.py +++ b/verse/distribusikan/editor.py @@ -14,12 +14,12 @@ from werkzeug.utils import secure_filename from app import db from distribusikan.distribusisinfo import DistribusisInfo -from forms.distribusiform import DistribusiForm -from forms.editorform import EditorForm -from forms.publicthemeform import PublicThemeForm -from forms.selectorform import SelectorForm -from forms.themeform import ThemeForm -from forms.uploadform import UploadForm +from distribusikan.forms.distribusiform import DistribusiForm +from distribusikan.forms.editorform import EditorForm +from distribusikan.forms.publicthemeform import PublicThemeForm +from distribusikan.forms.selectorform import SelectorForm +from distribusikan.forms.themeform import ThemeForm +from distribusikan.forms.uploadform import UploadForm from models.distribusi_model import Distribusis from statuspengguna.helper import UserHelper diff --git a/verse/forms/distribusiform.py b/verse/distribusikan/forms/distribusiform.py similarity index 100% rename from verse/forms/distribusiform.py rename to verse/distribusikan/forms/distribusiform.py diff --git a/verse/forms/editorform.py b/verse/distribusikan/forms/editorform.py similarity index 100% rename from verse/forms/editorform.py rename to verse/distribusikan/forms/editorform.py diff --git a/verse/forms/publicthemeform.py b/verse/distribusikan/forms/publicthemeform.py similarity index 100% rename from verse/forms/publicthemeform.py rename to verse/distribusikan/forms/publicthemeform.py diff --git a/verse/forms/selectorform.py b/verse/distribusikan/forms/selectorform.py similarity index 100% rename from verse/forms/selectorform.py rename to verse/distribusikan/forms/selectorform.py diff --git a/verse/forms/themeform.py b/verse/distribusikan/forms/themeform.py similarity index 100% rename from verse/forms/themeform.py rename to verse/distribusikan/forms/themeform.py diff --git a/verse/forms/uploadform.py b/verse/distribusikan/forms/uploadform.py similarity index 100% rename from verse/forms/uploadform.py rename to verse/distribusikan/forms/uploadform.py diff --git a/verse/distribusikan/themeselector.py b/verse/distribusikan/themeselector.py index 96b2d8a..b32a338 100644 --- a/verse/distribusikan/themeselector.py +++ b/verse/distribusikan/themeselector.py @@ -4,11 +4,11 @@ import shutil from flask import render_template from distribusikan.distribusisinfo import DistribusisInfo -from forms.distribusiform import DistribusiForm -from forms.publicthemeform import PublicThemeForm -from forms.selectorform import SelectorForm -from forms.themeform import ThemeForm -from forms.uploadform import UploadForm +from distribusikan.forms.distribusiform import DistribusiForm +from distribusikan.forms.publicthemeform import PublicThemeForm +from distribusikan.forms.selectorform import SelectorForm +from distribusikan.forms.themeform import ThemeForm +from distribusikan.forms.uploadform import UploadForm from statuspengguna.helper import UserHelper diff --git a/verse/distribusikan/upload.py b/verse/distribusikan/upload.py index 83110b5..47a9009 100644 --- a/verse/distribusikan/upload.py +++ b/verse/distribusikan/upload.py @@ -13,7 +13,7 @@ from sqlalchemy.exc import ( from app import db from distribusikan.distribusiselector import SelectCurrentDistribusi -from forms.uploadform import UploadForm +from distribusikan.forms.uploadform import UploadForm from models.distribusi_model import Distribusis from models.user_model import User from statuspengguna.helper import UserHelper diff --git a/verse/distribusikan/uploadpage.py b/verse/distribusikan/uploadpage.py index a8f2510..8a500cd 100644 --- a/verse/distribusikan/uploadpage.py +++ b/verse/distribusikan/uploadpage.py @@ -4,10 +4,10 @@ from app import APP from distribusikan.distribusiselector import SelectorVisible from distribusikan.distribusisinfo import DistribusisInfo from distribusikan.upload import UploadNewDistribusi, UploadUpdatedFiles -from forms.distribusiform import DistribusiForm -from forms.publicthemeform import PublicThemeForm -from forms.selectorform import SelectorForm -from forms.themeform import ThemeForm +from distribusikan.forms.distribusiform import DistribusiForm +from distribusikan.forms.publicthemeform import PublicThemeForm +from distribusikan.forms.selectorform import SelectorForm +from distribusikan.forms.themeform import ThemeForm # UserPengguna from statuspengguna.helper import UserHelper diff --git a/verse/start.py b/verse/start.py index 728fabc..da78a23 100644 --- a/verse/start.py +++ b/verse/start.py @@ -18,7 +18,7 @@ from app import create_app, login_manager, db from describer.describe_files import describer from distribusikan.distribusikan import distribusikan from distribusikan.distribusisinfo import DistribusisInfo -from forms.uploadform import UploadForm +from distribusikan.forms.uploadform import UploadForm from models.distribusi_model import Distribusis from models.user_model import User from statuspengguna.forgotpassword import forgot_password