ChrisTerBeke
42ccabc7b6
Fix relative imports for plugin
2018-11-26 15:09:56 +01:00
ChrisTerBeke
39f92ced90
Comment out test
2018-11-26 15:02:52 +01:00
ChrisTerBeke
269d596f5d
Fix typing for cluster list
2018-11-26 14:54:24 +01:00
ChrisTerBeke
856276d8b7
Cleanup plugin imports
2018-11-26 14:53:08 +01:00
ChrisTerBeke
6a43d10982
Use BaseModel for CloudCluster, some fixes
2018-11-26 14:51:24 +01:00
ChrisTerBeke
7654f1c71c
Merge branch 'tests-for-um3networkplugin' into cloud-output-device
2018-11-26 14:30:50 +01:00
Marijn Deé
a382b77eaa
Added validation to the models
2018-11-26 14:30:17 +01:00
ChrisTerBeke
89e88a73bb
Temporary patch for when printer has one or more materials not installed
2018-11-26 14:11:20 +01:00
ChrisTerBeke
45159f7a80
Merge branch 'tests-for-um3networkplugin' into cloud-output-device
2018-11-26 14:09:13 +01:00
ChrisTerBeke
68a90ec510
Use simple models instead of namedtuples
...
Named tuples would throw a TypeError if an unknown attribute was set, but we just want to ignore those
2018-11-26 14:08:21 +01:00
ChrisTerBeke
014b1d6e4e
test
2018-11-26 13:45:37 +01:00
ChrisTerBeke
21c81603b4
Use application singleton instead of locally cached application
2018-11-26 13:33:14 +01:00
Marijn Deé
908628e2aa
Added a model to represent a cluster
2018-11-26 10:47:53 +01:00
Aleksei S
2b45262a85
Added test for definition container
...
CURA-5977
2018-11-23 17:01:05 +01:00
ChrisTerBeke
1adf1096a3
Merge branch 'master' into cloud-output-device
2018-11-23 14:17:26 +01:00
ChrisTerBeke
cf27a211df
Remove unused TYPE_CHECKING import
2018-11-23 14:15:40 +01:00
ChrisTerBeke
ef5ca6f5a9
Remove unused typing import
2018-11-23 14:15:21 +01:00
ChrisTerBeke
3e100775df
Fix instantiating CloudOutputDeviceManager
2018-11-23 14:14:35 +01:00
ChrisTerBeke
8ee39c0489
Merge branch 'tests-for-um3networkplugin' into cloud-output-device
2018-11-23 14:08:55 +01:00
Ghostkeeper
48c24b1034
Remove log entry for bonjour services added
...
For most networks that would not be a problematic log entry. But for our own debugging on Ultimaker's network this is a very spammy log entry and doesn't add much value anyway.
2018-11-23 10:50:16 +01:00
Marijn Deé
294527f7fe
Review changes
2018-11-23 09:21:09 +01:00
Marijn Deé
bb5c0326de
Used duoble quotes iso single quotes
2018-11-23 09:20:19 +01:00
Marijn Deé
352427e460
Moved exception handling closer to the cause of error
2018-11-22 10:01:15 +01:00
Marijn Deé
7b0f8882a2
Reverted models to namedtuples from collections because
...
NamedTuple is a Python3.6 feature
2018-11-21 11:01:26 +01:00
Marijn Deé
9e8be286af
Used NamedTuple from typing iso namedtuple from collections so we can at least give type hints
2018-11-21 10:12:53 +01:00
ChrisTerBeke
c7bb6931f4
Refactor networked output device
...
All networking related stuff is moved to a separate class called NetworkClient for reusability.
As example it is now also used in the WIP CloudOutputDeviceManager to clean up network calling there.
2018-11-20 23:44:28 +01:00
ChrisTerBeke
ff2d8b9076
Merge branch 'tests-for-um3networkplugin' into cloud-output-device
...
* tests-for-um3networkplugin:
Fixed the failing tests
Made the tests work with the named tuples Tests only use the _onGetRemoteMaterial
Fixed some bugs and added the color_code field to the named tuple
2018-11-20 18:57:42 +01:00
Marijn Deé
f3338aa187
Fixed the failing tests
2018-11-20 16:53:01 +01:00
Marijn Deé
481ca8cd2f
Fixed some bugs and added the color_code field to the named tuple
2018-11-20 16:33:52 +01:00
ChrisTerBeke
04cc6193d6
More implementation for getting remote clusters, add some TODOs
2018-11-19 23:25:54 +01:00
ChrisTerBeke
ca1c5fb48c
Add some documentation
2018-11-19 22:30:17 +01:00
ChrisTerBeke
10576d1242
Some scaffolding and implementation for cloud output device manager
2018-11-19 22:24:35 +01:00
ChrisTerBeke
228325eb89
Add CloudOutputDeviceManager, test implementation
2018-11-19 21:59:57 +01:00
ChrisTerBeke
115936c46b
Target correct cloud API version
2018-11-19 20:27:38 +01:00
ChrisTerBeke
69ca7c0f89
CloudOutputDevice scaffolding
2018-11-19 20:08:05 +01:00
ChrisTerBeke
2497325d60
Test with named tuples, not working yet
2018-11-19 16:35:19 +01:00
ChrisTerBeke
60dd130393
Use logException where possible
2018-11-19 15:39:12 +01:00
ChrisTerBeke
0b1ac87354
Fix some formatting, cleanup import
2018-11-19 15:03:43 +01:00
ChrisTerBeke
dc17bd8499
Fix the first tests
2018-11-19 13:54:45 +01:00
ChrisTerBeke
ee9210d8d1
Rewrite tests
2018-11-19 10:57:47 +01:00
ChrisTerBeke
23e957e1c5
Some more refactoring, splitting up methods
2018-11-19 10:44:24 +01:00
Marijn Deé
565f009e9b
Added comments
2018-11-16 16:34:44 +01:00
Marijn Deé
1000625d69
Added spaces around all =
2018-11-16 16:07:17 +01:00
Marijn Deé
695d45ffbe
Initialize the models with None
2018-11-16 15:54:07 +01:00
Marijn Deé
e9e8c49b2d
Added tests for SendMaterialJob and refactored SendMaterialJob for
...
better testability. This is part of a larger project to create tests
for the UM3NetworkPrinting plugin in preparation for printing from the
cloud
2018-11-16 14:16:45 +01:00
Lipu Fei
59b8bdec54
Merge pull request #4678 from fieldOfView/fix_networkprinter_post
...
Fix type error in NetworkedPrinterOutputDevice.post
2018-11-08 11:02:57 +01:00
fieldOfView
f12efb7aa1
Fix LegacyUM3OutputDevice post() call
2018-11-07 16:07:45 +01:00
Lipu Fei
88f3325972
Add typing for _createMaterialOutputModel()
...
CURA-5887
2018-11-05 13:11:58 +01:00
Lipu Fei
fa693aef2b
Fix material shown in print jobs
...
CURA-5887
- Use MaterialManager to get materials
- For a GUID with mulitple matches, show the read-only materials first
if any. Otherwise, show non-read-only materials.
2018-11-05 11:48:19 +01:00
Lipu Fei
02681a5700
Change camera URL to non-optional QUrl
...
Otherwise pyqt property will complain when it tries to convert a None to
a QUrl.
2018-10-29 13:25:23 +01:00