80 Commits

Author SHA1 Message Date
Simon Edwards
18786a1e7d Fix the default content-type for HTTP PUT requests in NetworkedPrinterOutputDevice
CL-1237
2019-02-06 12:18:32 +01:00
ChrisTerBeke
e465bd771a Use toolpath instead of mesh, some review fixes 2019-01-11 16:18:47 +01:00
ChrisTerBeke
d8b5f75e2a Solve some review comments 2019-01-11 16:14:55 +01:00
ChrisTerBeke
b78ac0664f Fix return types from review 2019-01-11 16:07:08 +01:00
ChrisTerBeke
485b471522 Fix some review comments 2019-01-08 12:19:00 +01:00
ChrisTerBeke
2f92f6ef50 Simplify checking if cloud or network printer, small fixes 2018-12-20 13:45:59 +01:00
ChrisTerBeke
25caf1a087 Fix merge conflicts 2018-12-18 14:44:13 +01:00
Lipu Fei
6bf39a32a9 Rename Enum names to camal cases
CURA-6011
2018-12-14 09:56:10 +01:00
Aleksei S
973970a895 Every print ouput device should define its connection type(usb, network, cluster and etc)
CURA-6011
2018-12-13 16:00:12 +01:00
Daniel Schiavini
4f82a2759a STAR-322: Improving configuration models interface 2018-12-07 12:04:02 +01:00
Daniel Schiavini
9046b39b43 STAR-322: Creating a Cloud API client to handle the interaction 2018-12-04 16:14:08 +01:00
ChrisTerBeke
12b3f0088d Add content type to file upload 2018-12-04 10:07:43 +01:00
ChrisTerBeke
5fdff17782
Add upload messages for UI feedback, needs some refactoring 2018-12-03 22:12:18 +01:00
Daniel Schiavini
fc26ccd6fa STAR-332: Some improvements to get the job in connect 2018-12-03 14:41:36 +01:00
Daniel Schiavini
8066074a2f STAR-332: Fixing warnings 2018-12-03 11:02:49 +01:00
ChrisTerBeke
a9fedb4f66 Restore NetworkedPrinterOutputDevice for now 2018-11-26 15:05:53 +01:00
ChrisTerBeke
014b1d6e4e test 2018-11-26 13:45:37 +01:00
ChrisTerBeke
2fc5061c41 Fix some PR comments, cleanup imports 2018-11-23 14:11:43 +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
228325eb89
Add CloudOutputDeviceManager, test implementation 2018-11-19 21:59:57 +01:00
ChrisTerBeke
23e957e1c5 Some more refactoring, splitting up methods 2018-11-19 10:44:24 +01:00
fieldOfView
517428a308 Fix typing error in NetworkedPrinterOutputDevice.post
Strictly speaking the QNetworkManager.post() method takes a QByteArray instead of Python bytes, but according to the PyQt documentation, PyQt handles that conversion transparently:
http://pyqt.sourceforge.net/Docs/PyQt5/gotchas.html#python-strings-qt-strings-and-unicode
2018-10-28 11:27:08 +01:00
Ghostkeeper
f7bef851db
Remove code duplication for recreate network timer 2018-10-12 11:09:46 +02:00
Jaime van Kessel
c15f8aa693 Move printer type checking to where it belongs; inside the UM3 plugin. 2018-09-27 15:54:23 +02:00
Ian Paschal
4cc1b6ce02 Add typings and fix code style 2018-09-06 16:57:45 +02:00
Jaime van Kessel
eb7d42a7f8 Added delete button to cluster queue
CL-894
2018-08-17 10:49:44 +02:00
Jaime van Kessel
db1d90ed9b Added delete function
This is needed at a later stage to delete print jobs from queue by the cluster

CL-894
2018-08-17 10:38:46 +02:00
Jaime van Kessel
c968e54750 Moved duplicated code to own function
CL-894
2018-08-17 10:38:23 +02:00
Diego Prado Gesto
ff6bc9de4e Fix some more code-style 2018-07-03 13:09:05 +02:00
Ian Paschal
8f7370db6c Merge remote-tracking branch 'origin/master' into feature_send_material_profiles 2018-07-02 12:37:56 +02:00
Ghostkeeper
e717abf499
Fix typing related to Network Printing
Contributes to issue CURA-5330.
2018-06-15 16:53:45 +02:00
Ghostkeeper
01a645e726
Use only CuraApplication
It was complaining that getMachineManager doesn't exist, because that is in CuraApplication instead of UM.Application. I removed all references to UM.Application so that the imports are a bit simpler.

Contributes to issue CURA-5330.
2018-06-15 10:28:07 +02:00
Diego Prado Gesto
7eba868574 CURA-5330 Fix typing and code style in the UM3NetworkPrinting plugin 2018-06-14 15:41:12 +02:00
Diego Prado Gesto
803d945fb6 CURA-5330 Add assertions when the networkmanager is not None after creating it. 2018-06-13 13:35:17 +02:00
Ghostkeeper
b2cd0ffc0f
Make createFormParts public
Because the postFormWithParts function is public and it needs these parts that can (or should) only be created with this function.

Contributes to issue CURA-5034.
2018-06-12 15:44:22 +02:00
Diego Prado Gesto
8c2ba64f32 CURA-5330 Add typing to NetworkedPrinterOutputDevice 2018-06-08 16:47:52 +02:00
Diego Prado Gesto
e5e96bc600 Merge branch 'master' into mypy_fixes
Contributes to CURA-5330
2018-06-08 15:29:22 +02:00
Ghostkeeper
3b510af8f5
Add default 'None' for onFinished
I don't always need to know whether it was successful.

Contributes to issue CURA-5034.
2018-06-08 14:31:19 +02:00
Lipu Fei
3b46816632 Also check btemporary value
CURA-5449
2018-06-07 11:29:21 +02:00
Diego Prado Gesto
1019f2dd65 CURA-5449 Do not check if the name is the correct group name if the
output device is manual create device and it is marked as temporary.
Wait until all the information is retrieved when the request finishes.
2018-06-06 14:54:26 +02:00
Ghostkeeper
b3f73594bf
Fix types of on_finished callback
It only has a QNetworkReply argument.

Contributes to issue CURA-5330.
2018-06-01 14:53:13 +02:00
Ghostkeeper
8ed3bd29cb
Don't return any boolean in _update
Nothing listens to that return value, and its parent classes say that this must return None.

Contributes to issue CURA-5330.
2018-06-01 14:53:13 +02:00
Ghostkeeper
a55cf0678e
Add missing function types
The class is typed now. There's some bugs though.

Contributes to issue CURA-5330.
2018-06-01 14:53:12 +02:00
Ian Paschal
54c32c52f6 CURA-5221 Added S5 ID code 2018-04-23 11:22:11 +02:00
Ghostkeeper
c1f9b455bb
Remove unnecessary import
This import is not used.

Contributes to issue CURA-5097.
2018-03-19 11:22:55 +01:00
Diego Prado Gesto
dcb68bb33e CURA-4870 Move the checkCorrectGroupName to the machine manager, where
it must belong to.
2018-03-15 15:13:35 +01:00
Diego Prado Gesto
cbe929242e CURA-4870 Update the names of the groups in the container stacks when
there is temporary name after upgrading from 3.2
2018-03-15 14:44:01 +01:00
Ian Paschal
4a16d04dd7 CURA-5053 Changed printer type checking
"Still hard coded but at least doesn't use `elif` because `elif`/`else if` should not exist in any programming language." - Grumpy Pedants & Ian >:[
2018-03-14 10:50:54 +01:00
Aleksei S
e2cbfa8cec Fix: Retrieve printer type during creating outputDevice
CURA-5053
2018-03-13 16:37:09 +01:00
Aleksei S
a35d4ae400 Fix: After clicking "cancel" button while sending a print job
the connection is disconnected
CURA-4960
2018-03-05 16:43:58 +01:00