Matthias Urlichs
5d8535cb9c
Test string must be Unicode
2019-01-28 14:14:23 +01:00
Matthias Urlichs
21d3622c2e
fix dependency (TEMP)
2019-01-28 14:14:23 +01:00
Matthias Urlichs
008cde6ef6
octoprint.user => octoprint.access.user
2019-01-28 14:14:23 +01:00
Matthias Urlichs
4df57cd8fe
Fix DeprecationWarning about using __plugin_implementations__
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f53380c04e
superfluous (and deprecated) import
2019-01-28 14:14:23 +01:00
Matthias Urlichs
8af45e2f21
need to list-ify OS matches
2019-01-28 14:14:23 +01:00
Matthias Urlichs
0da47858fa
Escaping woes
2019-01-28 14:14:23 +01:00
Matthias Urlichs
abfffa3231
Remove deprecated unittest.TestCase.assertDictContainsSubset
2019-01-28 14:14:23 +01:00
Matthias Urlichs
e056ccdf29
Testing: exception args
2019-01-28 14:14:23 +01:00
Matthias Urlichs
e334d8b073
Testing: file modes
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f1673c148f
str vs utf
2019-01-28 14:14:23 +01:00
Matthias Urlichs
ae5a1dc6dc
Don't base your exceptions on BaseException
2019-01-28 14:14:23 +01:00
Matthias Urlichs
7fcc3551ca
We need text mode for JSON and YAML
2019-01-28 14:14:23 +01:00
Matthias Urlichs
f3fdac7e5a
Use raw strings for all regexps.
...
No exceptions please.
2019-01-28 14:14:23 +01:00
Matthias Urlichs
bba95e9000
dup future statement
2019-01-28 11:12:51 +01:00
Matthias Urlichs
fa81791c29
NO we do NOT open text files in binary mode
2019-01-28 11:12:29 +01:00
Matthias Urlichs
a4072723bf
tabs vs. spaces
2019-01-28 11:11:46 +01:00
Matthias Urlichs
d451acdd4f
"futures" is py2 only
2019-01-28 11:11:34 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
0c264ca0d2
less encompassing exception
2019-01-28 07:50:55 +01:00
Matthias Urlichs
9e4b0f83d8
misc
2019-01-28 07:50:55 +01:00
Matthias Urlichs
2b8d831308
bad patch
2019-01-28 07:50:55 +01:00
Matthias Urlichs
fcb0f877b8
py23
2019-01-28 07:50:55 +01:00
Matthias Urlichs
c74e3a0a0b
don't multiply with -1
2019-01-28 07:50:55 +01:00
Matthias Urlichs
ea64c017e8
event tags etc. are not supposed to be binary
2019-01-28 07:50:55 +01:00
Matthias Urlichs
70a104e32a
shebang python2 => python
2019-01-28 07:50:54 +01:00
Matthias Urlichs
75a37f5ce7
missing comma
...
merge error
2019-01-28 07:50:54 +01:00
Matthias Urlichs
e4d083028c
hashlib fix from razer
2019-01-28 07:50:54 +01:00
Matthias Urlichs
6bab550830
unicode/basestring confabulation
2019-01-28 07:37:28 +01:00
Matthias Urlichs
f9916783e9
whitespace
2019-01-28 07:34:19 +01:00
Matthias Urlichs
e00375e586
don't use six
2019-01-27 17:49:20 +01:00
Matthias Urlichs
41fab8a36c
atomic_write: use keyword for mode argument
...
this will allow us to define atomic_write as keyword-only
as soon as py2 compatibility is dropped.
2019-01-27 17:42:36 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
Matthias Urlichs
1ae6b73f7a
use setup.py from razer
2019-01-27 17:34:35 +01:00
Matthias Urlichs
670ca15997
Merge remote-tracking branch 'origin/maintenance' into py23
2019-01-27 17:28:46 +01:00
Matthias Urlichs
ea5ef34cc1
Merge commit 'ac3b8ebfccfc626c19d1ae731df65cd408f9b9c4' into py23
2019-01-27 17:16:14 +01:00
Matthias Urlichs
958fc7600d
Merge commit 'e0543de8ef5c1f67d4064e84a5e7ecacbdf1029e' into py23
2019-01-27 17:15:52 +01:00
Matthias Urlichs
13d894e74b
Merge commit '9cfcbd3929cd7fbea4e585f01e101a3dc5055ee1' into py23
2019-01-27 17:14:15 +01:00
Matthias Urlichs
353309fc60
Merge commit 'd3334b29d9124b8a9e9c2dbfcdd6e125e471c412' into py23
2019-01-27 17:13:28 +01:00
Matthias Urlichs
3501179257
Merge commit '41e74df8d33b4f8b332ca278db478a70dcfe7aec' into py23
2019-01-27 17:12:24 +01:00
Matthias Urlichs
f993f744ba
Merge commit 'c623e90ebc59b90b4f4cf582ab8185b2872acff4'; commit 'f416e96414f33fb31afdf4dfbf3c863e3db35543'; commit '9ecf39febe31a44e5f5db28249ebbf006ac1580c'; commit '582b03f21fe3d808bf4e11bbba90af54b6651b34'; commit 'f5c8b04958170f19f1806b1722bf5e857ded3dce'; commit '36818057a3b4769a77731f3be8bc661437db7132'; commit 'd987cb23c119132b287f70f1c979aac8c9fff7d2' into py23
2019-01-27 17:10:01 +01:00
Gina Häußge
a9b395dac8
✨ Dedicated settings for webcam/timelapse support
...
Implements #2974
2019-01-18 16:58:34 +01:00
Gina Häußge
6a069de240
Put generic templates after javascript assets
...
That way it's possible for plugins to reference already loaded libraries
or constants in any injected generic templates.
2019-01-18 14:10:47 +01:00
Gina Häußge
2287c65784
forcelogin: ui_render sorting key of 0
...
If third party UIPlugin want to override the forcelogin plugin, they'll
need to return a negative sorting key.
2019-01-17 17:55:24 +01:00
Gina Häußge
3b26a2f7d2
Take bundle status into account for plugin sorting
2019-01-17 17:54:24 +01:00
Gina Häußge
18ffdcff6b
forcelogin: Accept auth via apikey & auth headers
...
So far we only checked for keys or auth headers on the API, the plugin
so far only checked if there was an existing cookie via a passive login.
Now it will try to login the user from any provided api keys or
authorization headers as well and only fall back to the passive login if
that doesn't succeed. A call to the frontend with either will thus not
trigger the login dialog.
See #2997
2019-01-17 17:33:00 +01:00
Gina Häußge
faab946aeb
Add missing , 🤦♀️
2019-01-17 15:34:57 +01:00
Gina Häußge
a48e069aa6
Fix race condition on start of SD print
...
If an M27 to query SD status came after the change of state to printing
but before the M24 to actually start the print on the printer's side the
firmware would report "Not SD printing" and OctoPrint would consequently
cancel the just start job right away.
This patch introduces a new "Starting" state that will be active while
preparing a print job (in case of SD: selecting the file, setting file
position & finally starting the print). The comm layer treats as
nearly identically to the Printing state, the only difference is in the
treatment of received "not sd printing" messages which will be ignored
while still Starting.
Additionally this patch introduces a "two strikes rule" for "not sd
printing" messages (which can be configured to be another number of
strikes). Only if OctoPrint receives two consecutive "not sd printing"
messages from the printer will it actually cancel the printer. This is
to work around a potential (albeit very very unlikely) race condition
that still exists even with the starting state.
Fixes #3001
2019-01-17 13:16:07 +01:00
Gina Häußge
d4d5bed514
Fix broken sdcard upload success handling
...
Spotted by @devildant, thanks!
Closes #3005
2019-01-17 10:49:48 +01:00
Gina Häußge
97f84f120c
Improve inline docs for serial.disconnectOnErrors behaviour
...
See #3002
2019-01-16 19:17:10 +01:00