|
@@ -73,7 +73,6 @@ class DFFileExportAndUploadManager:
|
|
|
self._generic_success_message = getBackwardsCompatibleMessage(
|
|
|
text = "Your {} uploaded to '{}'.".format("file was" if len(self._file_upload_job_metadata) <= 1 else "files were", self._library_project_name),
|
|
|
title = "Upload successful",
|
|
|
- lifetime = 0,
|
|
|
message_type_str = "POSITIVE"
|
|
|
)
|
|
|
self._generic_success_message.addAction(
|
|
@@ -221,8 +220,8 @@ class DFFileExportAndUploadManager:
|
|
|
self._file_upload_job_metadata[filename]["file_upload_failed_message"] = getBackwardsCompatibleMessage(
|
|
|
text = "Failed to export the file '{}'. The upload process is aborted.".format(filename),
|
|
|
title = "Export error",
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
self._on_upload_error()
|
|
|
self._onFileUploadFinished(filename)
|
|
@@ -244,8 +243,8 @@ class DFFileExportAndUploadManager:
|
|
|
self._file_upload_job_metadata[filename_3mf]["file_upload_failed_message"] = getBackwardsCompatibleMessage(
|
|
|
text = "Failed to upload the file '{}' to '{}'. {}".format(filename_3mf, self._library_project_name, human_readable_error),
|
|
|
title = "File upload error",
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
self._on_upload_error()
|
|
|
self._onFileUploadFinished(filename_3mf)
|
|
@@ -267,8 +266,8 @@ class DFFileExportAndUploadManager:
|
|
|
self._file_upload_job_metadata[filename_ufp]["file_upload_failed_message"] = getBackwardsCompatibleMessage(
|
|
|
title = "File upload error",
|
|
|
text = "Failed to upload the file '{}' to '{}'. {}".format(filename_ufp, self._library_project_name, human_readable_error),
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
self._on_upload_error()
|
|
|
self._onFileUploadFinished(filename_ufp)
|
|
@@ -304,8 +303,8 @@ class DFFileExportAndUploadManager:
|
|
|
self._file_upload_job_metadata[filename]["file_upload_failed_message"] = getBackwardsCompatibleMessage(
|
|
|
title = "File upload error",
|
|
|
text = "Failed to upload the file '{}' to '{}'. {}".format(self._file_name, self._library_project_name, human_readable_error),
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
|
|
|
self._on_upload_error()
|
|
@@ -341,14 +340,13 @@ class DFFileExportAndUploadManager:
|
|
|
"file_upload_success_message": getBackwardsCompatibleMessage(
|
|
|
text = "'{}' was uploaded to '{}'.".format(filename_3mf, self._library_project_name),
|
|
|
title = "Upload successful",
|
|
|
- lifetime = 0,
|
|
|
message_type_str = "POSITIVE"
|
|
|
),
|
|
|
"file_upload_failed_message": getBackwardsCompatibleMessage(
|
|
|
text = "Failed to upload the file '{}' to '{}'.".format(filename_3mf, self._library_project_name),
|
|
|
title = "File upload error",
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
}
|
|
|
job_3mf = ExportFileJob(self._file_handlers["3mf"], self._nodes, self._file_name, "3mf")
|
|
@@ -365,14 +363,13 @@ class DFFileExportAndUploadManager:
|
|
|
"file_upload_success_message": getBackwardsCompatibleMessage(
|
|
|
text = "'{}' was uploaded to '{}'.".format(filename_ufp, self._library_project_name),
|
|
|
title = "Upload successful",
|
|
|
- lifetime = 0,
|
|
|
message_type_str = "POSITIVE"
|
|
|
),
|
|
|
"file_upload_failed_message": getBackwardsCompatibleMessage(
|
|
|
text = "Failed to upload the file '{}' to '{}'.".format(filename_ufp, self._library_project_name),
|
|
|
title = "File upload error",
|
|
|
- lifetime = 0,
|
|
|
- message_type_str = "ERROR"
|
|
|
+ message_type_str = "ERROR",
|
|
|
+ lifetime = 0
|
|
|
)
|
|
|
}
|
|
|
job_ufp = ExportFileJob(self._file_handlers["ufp"], self._nodes, self._file_name, "ufp")
|