29 Commits

Author SHA1 Message Date
Simon Edwards
b20e35714f Factor out the code for adding a function for run after a HTTP request
CL-541
2018-01-04 13:36:29 +01:00
Simon Edwards
695c7d8267 Rename the _live_multiparts to the even better _kept_alive_multiparts name
CL-541
2018-01-04 13:27:24 +01:00
Simon Edwards
2588e11364 Improve and simplify how we hold on to form part objects
CL-541
2018-01-04 10:43:50 +01:00
Simon Edwards
3173eb6740 Avoid mega-tons of object copying when building compressed gcode
CL-541
2018-01-03 16:15:12 +01:00
Jaime van Kessel
e12a2fbd6a Fixed typing
CL-541
2018-01-03 14:07:34 +01:00
Jaime van Kessel
c1bf87bd8f Removed commented out code
CL-541
2018-01-03 13:54:15 +01:00
Simon Edwards
5e3666f073 Fill out the type hints in NetworkedPrinterOutputDevice.py
CL-541
2018-01-02 17:21:51 +01:00
Jaime van Kessel
52d25042eb Machines now re-appear after timeout
CL-541
2017-12-22 11:29:13 +01:00
Jaime van Kessel
041b1830fe Re-added manual printer adding
CL-541
2017-12-20 16:30:40 +01:00
Jaime van Kessel
9084dfd6bd It's now possible to send print jobs to cluster again
CL-541
2017-11-28 12:59:54 +01:00
Jaime van Kessel
cfc6a3ad48 Added some convenience functions to NetworkedPrinterOutputdevice
This also moves the getUser from legacy to networked printer

CL-541
2017-11-28 12:43:49 +01:00
Jaime van Kessel
c1c59925de Removed duplicated code
CL-541
2017-11-27 17:14:30 +01:00
Jaime van Kessel
83b13546fb Moved compressing of GCode to one class higher
CL-541
2017-11-27 17:12:36 +01:00
Jaime van Kessel
57de028608 re-implemented abort & pause for legacy um3
CL-541
2017-11-24 11:26:30 +01:00
Jaime van Kessel
1c2c4d4163 Added property to indicate if output device accepts commands
Instead of how this was previously done, it's now tied to the auth state.

CL-541
2017-11-23 17:07:24 +01:00
Jaime van Kessel
0b91112d72 Fixed postForm
Setting the type of the request to json messed up the multi-part stuff.

CL-541
2017-11-23 16:43:52 +01:00
Jaime van Kessel
8b8d67b3a8 LegacyUM3 now handles warnings & errors again
CL-541
2017-11-23 13:37:59 +01:00
Jaime van Kessel
96d5c7152b Added sending material profiles to LegacyUM3
CL-541
2017-11-23 10:31:39 +01:00
Jaime van Kessel
7465a6551a Setup the authentication stuff for LegacyUM3
CL-541
2017-11-22 11:59:07 +01:00
Jaime van Kessel
9cfe9769d3 Printers now automatically try to connect again
CL-541
2017-11-21 14:47:55 +01:00
Jaime van Kessel
a8e71cf50c NetworkManager is now created on demand and re-created after a certain timeout.
CL-541
2017-11-21 14:35:17 +01:00
Jaime van Kessel
152f3462ce Also added any to callable mypy decorator
For some reason it also wants to know that it also calls self. Weird.
CL-541
2017-11-21 11:00:37 +01:00
Jaime van Kessel
10a2dbb134 Extended the typing for the calllbacks
CL-541
2017-11-21 10:35:53 +01:00
Jaime van Kessel
fd548975cc Closing a connection now actually stops the updates
CL-541
2017-11-21 10:19:17 +01:00
Jaime van Kessel
1167fa0a89 Added data handling for legacy printer
CL-541
2017-11-20 16:03:54 +01:00
Jaime van Kessel
61753540e4 Callbacks are now handled by url and operation type.
It would have been nicer to use the request, but it's unhashable.

Cl-541
2017-11-20 15:12:29 +01:00
Jaime van Kessel
4197f18fc1 First steps to ensure that the Discover UM3 action works with new architecture
CL-541
2017-11-20 13:35:08 +01:00
Jaime van Kessel
1b8caa7a21 NetworkedPrinterOutputDevice now requires address in constructor
CL-541
2017-11-20 13:23:09 +01:00
Jaime van Kessel
22f2279a76 Moved bunch of code from the old location to the new bits in archtiecture
CL-541
2017-11-20 10:59:57 +01:00