41 Commits

Author SHA1 Message Date
Erwan MATHIEU
6848974fcc Fix project write error not reported on Windows
CURA-10180
2023-09-01 10:14:17 +02:00
Erwan MATHIEU
0450a3b09c Fixed possibly wrong error message
CURA-10180
2023-08-29 16:45:13 +02:00
c.lamboo
c7f8fe8feb Don't add is_online to .3mf files
from eccb
2022-08-30 13:38:19 +02:00
Remco Burema
f5604dfb1e
Add 'capabilities' to ignored metadata.
part of CURA-8671
2021-12-02 12:23:57 +01:00
Ghostkeeper
2f1c157547
Don't attempt writing a workspace before there is a global stack
This is normally not possible from the interface. However on MacOS, the application menu gets carried to the top bar of the operating system. It is not blocked there, and the user could write a project file before they even add a printer. This prevents Cura from crashing when they do that.

Fixes Sentry issue CURA-2ZR.
2021-11-23 17:54:26 +01:00
Ghostkeeper
1ce8ef3293
Catch OSError and related errors when saving workspaces
This should prevent a crash when saving to a path that the file system doesn't support (because of e.g. disallowed symbols in the file name).

Instead it will now show an error message to the user.

Fixes Sentry issue CURA-157.
2020-09-08 13:01:10 +02:00
Konstantinos Karmas
7bf1af99a5
CURA-7608 Ignore machine network information when handling project files (#8116)
CURA-7608
2020-07-28 09:57:10 +02:00
Ghostkeeper
528c8e2226
Also store setting_version in preferences file for project files
This allows the version upgrade system to update these preferences in order to display the correct list of visible settings.
2020-07-20 11:48:29 +02:00
Ghostkeeper
c7bbc139f7
Catch file writing errors while writing files in the archive
Seems really rare to me, but our users get every possible error some day.

Fixes Sentry issue CURA-ZW.
2020-07-06 17:42:04 +02:00
Ghostkeeper
1fb78d23a5
Remove usage of deprecated extruders property
Use extruderList instead.

Done during Turbo Testing and Tooling.
2020-05-29 17:42:18 +02:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
8f3827d5ae Convert doxygen to rst for 3MFReader/Writer and AMFReader 2020-05-08 15:14:39 +02:00
Ghostkeeper
f34edd6bec
Show error when we don't have permission to write workspace
Fixes several Sentry issues, among which Cura-EG.
2020-03-30 14:00:36 +02:00
Ghostkeeper
2b003c30dc
Catch PermissionError when writing workspaces
We'll want to give a proper error message then. We have no mechanism right now to show a message on the screen particular to this error. Instead we'll let it fail (the user sees a message that writing fails) and put a message in the log why it failed.

Fixes Sentry error CURA-DK.
2020-03-25 09:12:14 +01:00
Jaime van Kessel
06ccd882e1
Add missing typing
CURA-6627
2020-01-20 16:03:56 +01:00
Jaime van Kessel
46050f9618
Use getter instead of protected attribute
CURA-6627
2020-01-16 11:25:30 +01:00
Jaime van Kessel
4e0e0c0339
Add skipkeys flag to writing plugin metadata to workspace
CURA-6627
2020-01-16 11:19:29 +01:00
Jaime van Kessel
b8dbc1d160
Store the data from each plugin in it's own folder
CURA-6627
2020-01-16 09:50:45 +01:00
Jaime van Kessel
6ae3172287
Store metadata when writing the workspace 2020-01-14 15:40:38 +01:00
Diego Prado Gesto
43657010ba CURA-5164 The Preferences is not a singleton class anymore since in some point
several instances need to be created.

- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.

- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.

- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Lipu Fei
62521e93db Make sure that project writer runs on Qt thread
CURA-5229

 - Move @call_on_qt_thread to a separate module
 - Make sure that project writer runs on Qt thread because itself and the
   calls it makes can create new QObjects such as InstanceContainers, and
   this must happen on the Qt thread.
2018-04-16 15:32:12 +02:00
Lipu Fei
75d9297c7d Optimize 3MF writer and XML material serialization
CURA-5049
2018-03-06 17:05:58 +01:00
Jack Ha
a460804bbe CURA-4924 always use interpolation = None for configparser, preventive 2018-02-07 10:21:40 +01:00
Ghostkeeper
50ccf101d8
Don't write Octoprint keys to workspace projects
They should not be shared since they are private keys, so let's protect the user from accidentally sharing it via a project file.
2018-01-22 15:37:51 +01:00
Ghostkeeper
1029d4509c
Merge branch 'master' into feature_local_container_server 2017-12-08 16:03:05 +01:00
Lipu Fei
298a659c09 Save is_debug_mode as string
CURA-4683
2017-12-06 14:49:00 +01:00
Lipu Fei
569e040955 Add more complete version info in project files
CURA-4683
2017-12-06 14:46:41 +01:00
Ghostkeeper
7ac3c1446b
Make ignored metadata keys a set
It needs to be a set now for Uranium.

Contributes to issue CURA-4243.
2017-10-27 16:25:52 +02:00
Mark
9a193ad5c5 Changing AGPLv3 to LGPLv3 2017-09-28 13:00:43 +02:00
Ghostkeeper
2fbcfe65ea
Only write the information we need to workspaces
This way we can be sure that no sensitive information enters the workspaces even if some future developer or a plug-in puts it there.

Contributes to issue CURA-4371.
2017-09-26 09:56:49 +02:00
Lipu Fei
3a46a337ff In SliceInfo, use the global stack if it is a single-extrusion machine
CURA-4167

Single extrusion machines don't have extruder stacks in the current
architecture.
2017-08-15 14:19:23 +02:00
Lipu Fei
024f2384e0 Fix mutable arg problem and rename arg
CURA-4049
2017-07-18 08:32:22 +02:00
Lipu Fei
68989f2871 Use optional arg in serialize() to exclude network auth keys
CURA-4049
2017-07-17 11:04:08 +02:00
Lipu Fei
191dfdcb33 Save Cura version to project files
CURA-3822
2017-05-17 09:23:43 +02:00
Jaime van Kessel
16447f7173 Authentication data is now stripped from project file before saving
CURA-1263
2016-12-05 12:46:53 +01:00
Jaime van Kessel
8a67f44cf0 We now also write with the preferedSuffix
CURA-1263
2016-11-22 13:38:06 +01:00
Jaime van Kessel
611572c324 Extruder stack is now saved (instead of the material being saved as the stack)
CURA-1263
2016-11-10 14:11:33 +01:00
Jaime van Kessel
d477630cce Updated documentation
CURA-1263
2016-11-10 11:34:12 +01:00
Jaime van Kessel
3ab283bfed Saving workspace now works when there are no meshes to save
CURA-1263
2016-11-10 11:29:47 +01:00
Jaime van Kessel
61d1199abf The entire machine is now saved to 3mf file when saving workspace
CURA-1263
2016-11-10 11:27:25 +01:00
Jaime van Kessel
54040d4c99 Moved 3mf writer here from Uranium
CURA-1263
2016-11-10 10:39:20 +01:00