um Exportfehlermeldungen ergänzt beim Migrieren
This commit is contained in:
+8
-2
@@ -553,8 +553,8 @@ class CadItem(DataModel):
|
||||
def set_gui_defaults(self):
|
||||
self._logic.set_gui_defaults()
|
||||
|
||||
def message_info(self, title, key, questions='ok'):
|
||||
return self._controller.message_info(title, key, questions)
|
||||
def message_info(self, title, key, values={}):
|
||||
return self._controller.message_info(title, key, values)
|
||||
def message_error(self, title, key, values={}):
|
||||
return self._controller.message_error(title, key, values)
|
||||
def message_question(self, title, key, values={}):
|
||||
@@ -864,6 +864,9 @@ class CadItem(DataModel):
|
||||
|
||||
current_id = self.get_current_item_id()
|
||||
target_path = os.path.join(self._controller.get_env('out'), str(current_id) + '.xlsx')
|
||||
|
||||
infos = dict()
|
||||
infos['path'] = target_path
|
||||
# cms = [ "Author", "Teilenummer", "StartRevision",
|
||||
# "Bezeichnung1", "Bezeichnung2", "Bezeichnung4", "KategorieNE",
|
||||
# "BeschaffungsartNE", "TOS-Gruppe_ERP", "Dispogruppe",
|
||||
@@ -879,6 +882,9 @@ class CadItem(DataModel):
|
||||
df = pd.DataFrame.from_dict(data, orient='index')
|
||||
df = (df.T)
|
||||
df.to_excel(target_path, index=True)
|
||||
if not os.path.exists(target_path):
|
||||
raise FileExistsError("Pfad wurde nicht erzeugt", target_path)
|
||||
return infos
|
||||
|
||||
|
||||
def tos_to_dict(self, tosgruppe, num2refId, num2child):
|
||||
|
||||
Reference in New Issue
Block a user