Gina Häußge
5e953c12a1
💬 Rewording
2019-01-28 13:07:34 +01:00
Gina Häußge
bd58138acf
🎨 Refactored for better code reuse
2019-01-28 13:05:27 +01:00
Gina Häußge
44b4c6cc40
🐛 sleep => time.sleep
2019-01-28 13:00:26 +01:00
Gina Häußge
f3f1061f9d
❇️ Configurable terminal log size in comm layer
...
See https://discourse.octoprint.org/t/logging-terminal-information-on-failed-print/7047/3?u=foosel
2019-01-28 12:03:16 +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
68410cb3d7
🐛 Fix an issue with plugin sorting
...
If we just uninstalled a plugin there might not be a PluginInfo object.
In that case assume the plugin is not bundled (not False = True)
2019-01-25 16:14:45 +01:00
Gina Häußge
db009e3ba2
🐛 backup: do not translate plugin name
...
Only translate it at template level, not before.
Fixes #3012
2019-01-25 15:48:35 +01:00
Gina Häußge
09d3c44161
🐛 unicode-ify octoprint.plugin.core
...
Fixes #3012
2019-01-25 15:39:31 +01:00
Gina Häußge
c2814651f9
errortracking: keep disabled on unreleased versions
...
We don't want to track errors during development, unless overridden
via config flag.
2019-01-23 12:23:38 +01:00
Gina Häußge
eb46815789
Slight refactoring for improved testability & fix tests
2019-01-22 15:40:08 +01:00
Kevin McCormack
449fa0c7ec
WIP Update test_system
2019-01-21 12:49:57 -05:00
Kevin McCormack
0489dfeaee
[WIP] Add disk usage API endpoint
2019-01-20 10:02:13 -05: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
44a40b8297
errortracking: fix typo -_-
2019-01-18 14:36:46 +01:00
Gina Häußge
49728f18c6
errortracking: add missing dependency
2019-01-18 14:27:26 +01:00
Gina Häußge
f6ec0bca6e
errortracking: first throw at an implementation
...
Currently uses a sponsored sentry instance on sentry.io. Error tracking
is disabled by default and currently still has to be enabled through
manual configuration in config.yaml (plugins.errortracking.enabled=true)
2019-01-18 14:13:26 +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