Changed DataBase to BusinessModel
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user