Skip to content

Commit

Permalink
teplating anpassung
Browse files Browse the repository at this point in the history
  • Loading branch information
NADOOITChristophBa committed Apr 13, 2024
1 parent 58ce29f commit d575a76
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = "[email protected]"
# 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()
Expand Down
Original file line number Diff line number Diff line change
@@ -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):

Expand Down
Original file line number Diff line number Diff line change
@@ -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):

Expand Down
Original file line number Diff line number Diff line change
@@ -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):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d575a76

Please sign in to comment.