65 Commits

Author SHA1 Message Date
Remco Burema
85f98bdaff
Appease type-checking system even further.
That last one should have worked really.

part of CURA-8138
2021-07-09 21:36:20 +02:00
Remco Burema
6f99837db5
Fix typing.
part of CURA-8138
2021-07-09 21:17:33 +02:00
Remco Burema
c78618bc15
Digital Library: Allow 'personal users' to DL.
Users with an account and an UM printer should have some basic access to the Digital Library. To this end, and to remain future proof, the online team has made an extension to its API so now feature budgets can be gauge. At the moment it's only checked wether the user has any access to personal projects at all. If so, the interface shows Digital Library functionality. Known issue: Removing the last printer from DF while still logged in leaves the DL access in the Cura interface until logged out or Cura restarted. Additionally, I think the response for a logged in user without any printer from the API is just 'data = empty list' instead of everything set to False and 0 (which should be the case as they're all listed as required fields in their docs ... maybe I'm missing something). In any case, the code as is now can handle that as well.

CURA-8138
2021-07-09 21:06:49 +02:00
Jaime van Kessel
45f8f3ba3c
Remove some code duplication in DF image filtering
CURA-8233
2021-05-18 15:52:06 +02:00
Jaime van Kessel
3018485077
Remove stray debug code
CURA-8233

Co-authored-by: Konstantinos Karmas <konskarm@gmail.com>
2021-05-17 15:24:46 +02:00
Jaime van Kessel
2a304ce90a
Filter images from DF open screen
CURA-8233
2021-05-17 14:12:46 +02:00
Jaime van Kessel
6dd62f9024
Add tests for DFFileModel
CURA-7959
2021-04-26 14:34:30 +02:00
Jaime van Kessel
29f62b0579
Add some tests for DFProjectModel
CURA-7959
2021-04-26 14:08:10 +02:00
Jaime van Kessel
7979483e48
Seperate the init of jobs and starting
This makes it a lot easier to test them

CURA-7959
2021-04-26 13:47:40 +02:00
Jaime van Kessel
cf8113608f
Add simple test for extracting error title
CURA-7959
2021-04-26 11:38:59 +02:00
Kostas Karmas
8f46a51ff2 Remove commented out code 2021-04-22 15:16:46 +02:00
Kostas Karmas
c67b4ee3a0 Remove unused function 2021-04-22 15:08:47 +02:00
Kostas Karmas
86bfb3a5aa Fix incompatible mypy type 2021-04-22 15:08:07 +02:00
Kostas Karmas
bc408a5a67 Fix mypy issues with the DigitalLibrary plugin 2021-04-22 15:00:42 +02:00
Kostas Karmas
d972c505d0 Initial commit for the DL 2021-04-20 11:30:49 +02:00