MirceaDan
9cfcbd3929
unquote works properley now with py2 and py3
...
py3 support directley to provide encoding, py2 has to do more work
2018-12-02 01:12:12 -08:00
MirceaDan
6cfbdc6062
py23 urlib compat
...
unquote was move dto a diferent location
2018-12-01 22:44:01 -08:00
MirceaDan
d3334b29d9
fix for tests and previous commit regarding estimations
...
tests needed updated None replaced with -1
2018-12-01 22:26:30 -08:00
MirceaDan
94ce6f1dd1
cannot compare number with None
...
TypeError: '<' not supported between instances of 'float' and 'NoneType'
2018-12-01 20:02:22 -08:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00
MirceaDan
b6e49b59a7
unitest update to decode utf8
...
TypeError: write() argument 1 must be unicode, not str
2018-12-01 17:11:07 -08:00
MirceaDan
f416e96414
defined unicode as str or used basestring
...
in py3 unicode does not exists is default str type but it exists in py2, wrote code to make it run in both py2 and py3
2018-12-01 17:00:37 -08:00
MirceaDan
347f53baa4
file must be open in text mode
...
those files must be opened in text mode in python3
2018-12-01 16:36:11 -08:00
MirceaDan
9ecf39febe
we need a list not a map object
...
AssertionError: Second sequence is not a list: <map object at 0x7f7b0d3811d0>
2018-12-01 16:26:43 -08:00
MirceaDan
582b03f21f
async is a function in py3
...
SyntaxError:Can't assign to function call
declared the dictionary using a diferent format that works in both py2 and py3
/src/octoprint/server/api/system.py", line 192
async=True,
^
SyntaxError: invalid syntax
2018-12-01 16:13:20 -08:00
MirceaDan
ff0b94c78d
py23 compat: list is needed not a view
...
in py3 keys() returns a view but in this cases we need a list
2018-12-01 15:42:01 -08:00
MirceaDan
f5c8b04958
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
...
DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
2018-12-01 15:07:04 -08:00
MirceaDan
36818057a3
commands to be able to develop for py2 and py3 in same time
...
this way we can test both py2 and py3
2018-12-01 13:13:19 -08:00
MirceaDan
a5cff5bc3d
this file must be opened in text mode
...
the version file must be read in text mode
2018-12-01 12:19:30 -08:00
MirceaDan
a4bff305b3
name update
...
filled in full name
2018-12-01 12:08:10 -08:00
MirceaDan
6b149e2fc9
fixed unitests for io.open change
...
the fixups needed change to use io.open in mock
some io.open needed to be read as text
2018-12-01 11:57:10 -08:00
Gina Häußge
38fce1665b
backup: signal restore done before reboot
2018-11-30 20:07:18 +01:00
Gina Häußge
f51a98768c
backup: more feedback during restore
...
The upload of a backup can take a while, so pop up the work dialog as
soon as that starts, not only when it is finished.
2018-11-30 20:06:57 +01:00
Gina Häußge
4d04c323f6
backup: use base version for version check
2018-11-30 20:06:24 +01:00
Gina Häußge
94116bfd53
backup: fix on_restore_failed calls
2018-11-30 18:33:58 +01:00
Gina Häußge
a05761e63f
backup: better error logging
2018-11-30 18:29:55 +01:00
Gina Häußge
89469d38ae
printer safety: Fix localization of warning
2018-11-30 17:06:07 +01:00
Gina Häußge
bd2616e888
backup: exclude generated, logs & watched
...
We don't need these in the backup, and in fact they only make things
more bloated and/or complicated.
2018-11-30 16:53:26 +01:00
Gina Häußge
02e996436d
backup: restore is not supported on windows
...
Sadly the stupid file locking of windows makes it impossible to
hot swap the config directory. In order to support windows a two step
approach would be needed. Maybe at a later date, currently simply not
worth the effort tbh considering how seldomly windows is used as OS for
OctoPrint.
2018-11-30 16:53:19 +01:00
Gina Häußge
a3f2e0b56c
backup: fix plugin compatibility check on restore
...
Fixes #2920
2018-11-30 16:21:58 +01:00
MirceaDan
337e49208a
py23 compat: using io.open instead of open
...
for python3 and python2 to work teh same io.open must be used for file handling
2018-11-30 00:32:57 -08:00
Gina Häußge
b052925424
Merge remote-tracking branch 'origin/devel' into devel
...
# Conflicts:
# tests/filemanager/test_filemanager.py
2018-11-28 17:37:47 +01:00
Gina Häußge
970c867ee4
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/plugins/forcelogin/__init__.py
# src/octoprint/server/util/sockjs.py
# src/octoprint/users.py
2018-11-28 16:33:11 +01:00
Gina Häußge
c4295d6a81
Merge branch 'staging/maintenance' into maintenance
2018-11-28 14:57:14 +01:00
Gina Häußge
d60cab1962
staging/maintenance is now 1.3.10rc4.dev
2018-11-28 14:56:39 +01:00
Gina Häußge
b01e327f9d
Preparing release of 1.3.10rc3
1.3.10rc3
2018-11-28 12:56:02 +01:00
Gina Häußge
09af2813d0
Add dedicated issue templates
2018-11-27 14:21:13 +01:00
Gina Häußge
2f69a84352
Use max of comm & temp timeout as serial timeout
...
That way we avoid issues if the user has set a longer temperature
reporting interval than (busy) communication timeout.
See #2905
2018-11-26 15:33:37 +01:00
Gina Häußge
13260fa219
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:10:03 +01:00
Gina Häußge
9a90093dda
tracking: file path instead of just name in print events
...
Closes #2908
2018-11-26 14:08:33 +01:00
Gina Häußge
8292408c79
Remove image from changelog, replace with text
...
Closes #2909
2018-11-26 12:05:58 +01:00
Gina Häußge
9165f83084
printer safety: Mark stock Micro3D fw as unsafe
...
See https://github.com/donovan6000/iMe/issues/67#issuecomment-441454163
2018-11-26 10:27:20 +01:00
Gina Häußge
c2ef371089
Docs: add documentation for some config params
2018-11-23 11:12:40 +01:00
Gina Häußge
fa9472d4aa
Fix SWU restart command again
...
Accidentally committed something I only changed for a test. Oops.
2018-11-22 15:54:02 +01:00
Gina Häußge
037e92c447
Recognize incomplete startups and set safe mode flag
2018-11-22 15:52:18 +01:00
Gina Häußge
170804d4df
Create a backup of working config.yaml after startup
2018-11-22 13:47:02 +01:00
Gina Häußge
ac129a2576
Only patch sarge's async on python 2
2018-11-22 13:10:59 +01:00
Gina Häußge
db8d420860
Decorator for sarge that translate async to async_
...
Should work around issues with third party plugins that haven't yet
adapted.
2018-11-22 12:37:28 +01:00
Gina Häußge
7d7cbb1760
Some reordering in the settings
2018-11-21 16:14:23 +01:00
Gina Häußge
89979f1bee
Revert "Hardening against bad plugins"
...
Making on_after_startup asynchronous unearths some odd issue that causes
subsequent callback calls to duplicate. It might just be PyCharm's
debugger (disabling it makes the problem go away and I so far couldn't
reproduce it without it), but just in the case that I introduced some
weird race condition with this _async approach I'm removing it. I'd
rather have badly implemented plugins break the startup then the startup
being inherently broken from the get go.
Added a couple more warnings in the docs though.
2018-11-21 16:14:06 +01:00
Gina Häußge
bd241e8e6c
backup: allow zip64
2018-11-21 12:19:04 +01:00
Gina Häußge
7939b0ae4d
backup: better error reporting
2018-11-21 12:10:03 +01:00
Gina Häußge
6b57ba2d7d
printer_safety: detect iMe on Micro3D
...
See donovan6000/iMe#67
2018-11-20 12:42:52 +01:00
Gina Häußge
2c5465f9a6
Got rid of an unused import
2018-11-20 12:42:50 +01:00
Gina Häußge
1565129cfb
docs: warning about blocking ops in some plugin callbacks
2018-11-20 12:42:49 +01:00