From d575a76cb8048bdb3671f337f45baeee2027a0b9 Mon Sep 17 00:00:00 2001 From: Christoph Backhaus Date: Sat, 13 Apr 2024 12:52:04 +0200 Subject: [PATCH] teplating anpassung --- .../components/DropDownMenuComponent.py | 4 ++-- .../components/Fehlermeldung.py | 4 ++-- .../components/SettingNadooitAPISchluessel.py | 4 ++-- .../components/SettingUhrzeitWerktagswechsel.py | 4 ++-- .../components/SettingUserCode.py | 4 ++-- .../components/SettingsWindow.py | 4 ++-- .../src/{{ cookiecutter.module_name }}/services.py | 4 ++-- .../src/{{ cookiecutter.module_name }}/utils.py | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/DropDownMenuComponent.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/DropDownMenuComponent.py index bddf40d..b934d3f 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/DropDownMenuComponent.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/DropDownMenuComponent.py @@ -4,8 +4,8 @@ from toga.style.pack import COLUMN from toga.widgets.button import OnPressHandler from toga import Window -from nadoo_law.services import get_lawyer_data, set_lawyer_data -from nadoo_law.styling import StandardStyling +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.services import get_lawyer_data, set_lawyer_data +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.styling import StandardStyling class LawyerSelectionComponent(toga.Box): def __init__( self, diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/Fehlermeldung.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/Fehlermeldung.py index cdb919a..872f906 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/Fehlermeldung.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/Fehlermeldung.py @@ -49,14 +49,14 @@ def send_error_email(self, widget): msg = email.message.EmailMessage() msg.set_content("Error code: {}\n\nRegards,\nThe Nadoo Law Team".format(12345)) msg["Subject"] = "Error Report" - msg["From"] = "nadoo_law@example.com" + msg["From"] = "{{ cookiecutter.app_name|lower|replace('-', '_') }}@example.com" msg["To"] = "support@example.com" # Send the email try: server = smtplib.SMTP("smtp.example.com", 587) server.starttls() - server.login("nadoo_law@example.com", "password") + server.login("{{ cookiecutter.app_name|lower|replace('-', '_') }}@example.com", "password") server.send_message(msg) server.quit() diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingNadooitAPISchluessel.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingNadooitAPISchluessel.py index ec7aacd..7f70f1d 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingNadooitAPISchluessel.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingNadooitAPISchluessel.py @@ -1,7 +1,7 @@ -from nadoo_telemarketing.components.SettingsElement import SettingsElement +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.components.SettingsElement import SettingsElement import toga from toga.style import Pack -from nadoo_telemarketing.services import set_api_key, get_settings +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.services import set_api_key, get_settings class SettingNadooitAPISchluessel(SettingsElement): diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUhrzeitWerktagswechsel.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUhrzeitWerktagswechsel.py index 41fbbd4..3b2443d 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUhrzeitWerktagswechsel.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUhrzeitWerktagswechsel.py @@ -1,8 +1,8 @@ -from nadoo_telemarketing.components.SettingsElement import SettingsElement +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.components.SettingsElement import SettingsElement import toga from toga.style import Pack from toga.style.pack import ROW -from nadoo_telemarketing.services import set_uhrzeit_nächsten_werktag_wechsel, get_settings +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.services import set_uhrzeit_nächsten_werktag_wechsel, get_settings class SettingUhrzeitWerktagswechsel(SettingsElement): diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUserCode.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUserCode.py index 2946d3d..f8f0121 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUserCode.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingUserCode.py @@ -1,7 +1,7 @@ -from nadoo_telemarketing.components.SettingsElement import SettingsElement +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.components.SettingsElement import SettingsElement import toga from toga.style import Pack -from nadoo_telemarketing.services import set_user_code, get_settings +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.services import set_user_code, get_settings class SettingUserCode(SettingsElement): diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingsWindow.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingsWindow.py index f94b8ac..bb15424 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingsWindow.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/components/SettingsWindow.py @@ -5,8 +5,8 @@ from toga.style import Pack from toga.style.pack import COLUMN -from nadoo_telemarketing.services import get_settings,set_user_code, set_api_key -from nadoo_telemarketing.components.SettingsElement import SettingsElement +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.services import get_settings,set_user_code, set_api_key +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.components.SettingsElement import SettingsElement diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/services.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/services.py index 7d035ad..cefef47 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/services.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/services.py @@ -315,12 +315,12 @@ def ermittel_den_aktuellen_monat_als_deutsches_wort(monat_offset=0): import os import uuid import shutil -from nadoo_law.CONSTANTS import TEMP_FOLDER, BASE_DIR,MANDATEN_ORDNER_NAME,KUNDENDATEN_ORDNER_APP, UPDATE_ORDNER_NAME_APP, UPDATE_ORDNER_NAME_USER,VORLAGEN_ORDNER_APP, ARCHIV_ORDNER +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.CONSTANTS import TEMP_FOLDER, BASE_DIR,MANDATEN_ORDNER_NAME,KUNDENDATEN_ORDNER_APP, UPDATE_ORDNER_NAME_APP, UPDATE_ORDNER_NAME_USER,VORLAGEN_ORDNER_APP, ARCHIV_ORDNER from datetime import datetime import subprocess import platform -from nadoo_law.utils import ( +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.utils import ( ensure_beweismittel_OWi_data_file_exists, ensure_beweismittel_Scheidung_data_file_exists, ensure_data_file_exists, diff --git a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/utils.py b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/utils.py index 774d607..bbb9980 100644 --- a/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/utils.py +++ b/{{ cookiecutter.app_name }}/src/{{ cookiecutter.module_name }}/utils.py @@ -194,7 +194,7 @@ def is_libreoffice_installed(): import json import os import uuid -from nadoo_law.CONSTANTS import ( +from {{ cookiecutter.app_name|lower|replace('-', '_') }}.CONSTANTS import ( BEWEISMITTEL_OWI_DATA_FILE_NAME, BEWEISMITTEL_SCHEIDUNG_DATA_FILE_NAME, LAWYER_DATA_FILE_NAME,