Changed DataBase to BusinessModel

This commit is contained in:
2024-11-20 12:39:20 +01:00
parent a89fe6e1d5
commit 0e8e03dc5d
7 changed files with 55 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ from pathlib import Path
from PySide6.QtCore import QObject, Slot
from .Vermasseln import Vermasseln
import shutil
from urllib.parse import urlparse
class ConfigLoader(QObject):
__config = None
@@ -20,11 +20,14 @@ class ConfigLoader(QObject):
else:
config_dir.mkdir(0o750, True, True)
@Slot(str)
def importConfig(self, confile):
print(confile)
confile= confile.replace('file:///','')
shutil.copyfile(confile, self.config_dir+ '/pyqcrm.toml')
@Slot(str, str)
def importConfig(self, confile, password):
print(password)
confile = urlparse(confile)
print(confile.path)
#confile= confile.replace('file://','')
shutil.copyfile(confile.path, self.config_dir+ '/pyqcrm.toml')
@Slot(dict)
def setConfig(self, app_config):