jelle Spijker
571a051041
Use SQLQueryFactory for container DB
...
Needed to add a Filter possibility to facilitate that
Created a Simple UserString class which can be used as:
```py
sql_filter = SQLFilter(f"SELECT {{}} FROM table_name WHERE id = ?")
cursor.execute(sql_filter) # Will execute: SELECT * FROM table_name WHERE id = ?
cursor.execute(sql_filter["id", "name"]) # Will execute: SELECT id, name FROM table_name WHERE id = ?
```
Contributes to CURA-6096
2021-09-02 16:55:24 +02:00
Jaime van Kessel
e24a844d17
Use secrets instead of random
...
Since we're no longer stuck on python 3.5, we can use secrets instead of random
which provides better randomness.
CURA-8401
SEC-207
2021-09-02 14:25:57 +02:00
jelle Spijker
4067d9d607
Fixed typing
...
Contributes to CURA-6096
2021-09-02 10:17:40 +02:00
Jaime van Kessel
3caee3f143
Merge pull request #10328 from Ultimaker/CURA-8358_Retain_last_saved_filename
...
Retain the last saved filename after saving a file
2021-09-02 09:54:35 +02:00
jelle Spijker
f80e1ec279
Updated documentation
...
Contributes to CURA-6096
2021-09-01 18:58:03 +02:00
Remco Burema
b97920e5b1
Only change project name when saving to project files.
...
CURA-8358
2021-09-01 18:11:10 +02:00
jelle Spijker
7aa08d4acd
Use a class to build to sql queries
...
This greatly reduced the amount of duplicate code in the DataBaseHandlers
Not sure how secure this is SQL injections. Need to check that and maybe
put in some guards. Using double underscores for now and only provide a
getter. But then again why bother with an SQL injection as
you can just as easily modify the Python code, and we still have the old
Containers to fallback to if the Database gets corrupted.
Contributes to CURA-6096
2021-09-01 16:58:48 +02:00
Remco Burema
0b114876ef
Make this run from source again on Windows.
2021-09-01 16:56:47 +02:00
Remco Burema
c2c53d51c1
Use optional last output (file) name from output-dev to set project name.
...
Instead of relying on the filename emitted when the workspace is changed. This is done so the user can also change the project name when saving to an output device, such as a local file, or the digital library, that supports changeing the (file)name.
CURA-8358
2021-09-01 16:04:05 +02:00
Jaime van Kessel
42948c376f
Add extruder to current version for version upgrade script
...
This should remove the Unable to upgrade file of type extruder of version 2
messages
CURA-8509
2021-08-30 11:16:49 +02:00
Jaime van Kessel
3191baf5a0
Add delete to handlers
...
CURA-6096
2021-08-27 14:36:04 +02:00
Jaime van Kessel
55d6ff0e61
Clean up formating of the insert queries
...
CURA-6096
2021-08-25 13:58:11 +02:00
Jaime van Kessel
132b863e13
Add update queries for variant, intent & qualit DB handlers
...
CURA-6096
2021-08-25 13:48:25 +02:00
fieldOfView
96a1019f1e
Merge branch 'master' into feature_extruder_warning_icon
2021-08-24 17:39:28 +02:00
Jaime van Kessel
2bef85c6c2
Remove weird whitespace
...
CURA-6096
2021-08-24 14:45:52 +02:00
Konstantinos Karmas
6ad358a55d
Set the job name whenever the workspaceLoaded is called
...
CURA-8358
2021-08-23 17:07:36 +02:00
Jaime van Kessel
e0e8223c5d
Move DB handling into specialised classes
...
This keeps CuraContainerRegistry a lot cleaner, especially when more container types are
added
Cura-6096
2021-08-20 15:40:50 +02:00
Jaime van Kessel
27f0fe8bb9
Ensure that all metadata of profiles is stored
...
CURA-6096
2021-08-20 14:40:55 +02:00
Jaime van Kessel
6f32809a3a
Prepare the inserts before actually doing them
...
CURA-6096
2021-08-20 13:09:40 +02:00
Jaime van Kessel
5311c949f0
Add variants to the database
...
CURA-6096
2021-08-20 11:05:37 +02:00
Jaime van Kessel
48ab21ac68
Add functions to get & add variants & qualities from DB
...
CURA-6096
2021-08-20 10:17:57 +02:00
Jaime van Kessel
3f80fcb5e5
Add first stub for profile database
...
CURA-6096
2021-08-19 15:20:20 +02:00
Jaime van Kessel
0348293f87
Merge branch '4.11' of github.com:Ultimaker/Cura
2021-08-19 10:01:20 +02:00
Ghostkeeper
1c9b3a0784
Merge branch 'CURA-8490_Make_sure_no_keyring_backend_is_available_on_Linux' into 4.11
2021-08-19 09:33:33 +02:00
Remco Burema
898abc92a8
Update SDK 7.6 -> 7.7 because of API changes in 4.11
...
CURA-8491
2021-08-18 16:56:29 +02:00
Konstantinos Karmas
d218b0bff9
Remove check for "frozen" when setting the keyring backend
...
There is no need to have a different behavior from source compared to frozen builds when it comes to the keyring.
CURA-8490
2021-08-18 16:54:28 +02:00
Konstantinos Karmas
c5a956068f
Fix mypy complaint
...
The `Keyring` is already imported from MacOS, so it's best to rename the fail on for Linux.
CURA-8490
2021-08-18 12:02:13 +02:00
Konstantinos Karmas
b1dc38f126
Don't load a keyring backend on Linux
...
We do not support it on Linux and it can cause problems if there is a system keyring configured.
CURA-8490
2021-08-18 11:57:09 +02:00
Konstantinos Karmas
e5374ada3b
Merge branch '4.11'
2021-08-17 15:59:53 +02:00
Konstantinos Karmas
e5856bf6bc
Log the connection error message produced by the request
2021-08-17 15:52:12 +02:00
Jelle Spijker
4986861727
Merge branch 'master' into libArachne_rebased
2021-08-12 18:50:29 +02:00
Jaime van Kessel
1f523053d9
Add even more logging to authorization service
2021-08-12 15:35:14 +02:00
Jaime van Kessel
b60ae92d60
Merge branch '4.11' of github.com:Ultimaker/Cura
2021-08-12 11:15:38 +02:00
Konstantinos Karmas
7c8153eede
Don't crash if the keyring password cannot be decoded
...
Fixes Sentry issue CURA-2S0
2021-08-11 17:25:45 +02:00
Jaime van Kessel
2c2e7f2c16
Add even more logging to authorization service
2021-08-11 10:19:27 +02:00
Jaime van Kessel
33b1d71183
Add definitions to known current versions
...
CURA-8468
2021-08-09 17:43:30 +02:00
Remco Burema
e119c46944
Fetch count from simple property instead of recalculation.
...
Polygons don't change when in layer-view. There's already an analogous elementCount property anyway, so a vertexCount property can't do much harm. Just keep in mind that when the polygons are altered, it should be either done via build, or the lineMeshXXXCount methods should be used instead.
2021-08-09 13:15:44 +02:00
Konstantinos Karmas
b37716de58
Add missing campaign tags
...
CURA-8441
2021-08-09 12:59:29 +02:00
Remco Burema
818438a8d6
Merge branch 'graphics_buffer_update' of https://github.com/bremco/Cura into bremco-graphics_buffer_update
2021-08-09 12:09:19 +02:00
Konstantinos Karmas
5bf24ed678
Add campaign tags to the logoff link
...
CURA-8441
2021-08-09 11:56:41 +02:00
Jaime van Kessel
57e66a5796
Add campaign links
...
CURA-8441
2021-08-05 15:42:23 +02:00
Konstantinos Karmas
0e7553e95e
Merge branch 'master' into libArachne_rebased
2021-08-03 13:09:17 +02:00
Remco Burema
a2442919f4
Part of fix for crash on context menu open + click on slice.
...
See also the backend (Uranium) fix/PR (needed for this to work properly). If the context menu is opened over the slice button, then it _may_ on some cases (on Windows) fail on the creation of the snapshot. Within this fix, the snapshot is then still not created, but at least it doesn't crash any more. (Also the snapshot _will_ be there if a reslice is done.)
part of CURA-8412
2021-07-30 19:50:18 +02:00
Jelle Spijker
e845462e5d
Merge pull request #10198 from Ultimaker/CURA-8418_update_messages_with_new_types
...
Update messages to use the message_types
2021-07-28 11:36:49 +02:00
jelle Spijker
b6665f1142
Applied review comments
...
Contributes to CURA-8418
2021-07-28 11:32:29 +02:00
Jelle Spijker
2263969d5f
Updated message with message types
...
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00
Jaime van Kessel
7cce2f770d
Change warning logging to debug
...
Since it's triggered every boot of Cura, it makes no sense to leave it
a warning...
2021-07-27 16:13:50 +02:00
Jaime van Kessel
900db57f0f
Update messages to use the message_types
...
CURA-8418
2021-07-27 11:54:43 +02:00
Ghostkeeper
41b1d8eff5
Merge branch 'CURA-7278_Differentiate_warning_messages_in_Cura'
2021-07-26 15:18:14 +02:00
Ghostkeeper
ff7b2a673f
Add experimental warning and error message types to two messages
...
These are for our testers to be able to test the new message types. Later they will be added to all messages that need them.
Contributes to issue CURA-7278.
2021-07-26 15:17:54 +02:00