Gina Häußge
9a7ebde76b
📝 Fix documentation for firmware info & capability plugin hooks
2019-01-30 15:02:32 +01:00
Gina Häußge
c23bafd788
☔ Protect against callback errors in decorators on default view
2019-01-30 14:36:53 +01:00
Gina Häußge
1aea92a5f1
☔ Protect against invalid preemptive cache config data
...
Fixes #3023
2019-01-30 14:36:52 +01:00
Gina Häußge
df9617ac1e
🔀 Merge branch 'maintenance' into devel
2019-01-30 11:27:30 +01:00
Gina Häußge
0b23417f45
🐛 Add missing asset that got lost during a merge
...
Fixes #3021
2019-01-29 16:48:07 +01:00
Matthias Urlichs
828ba56952
list()-ify keys(), values() and items()
...
where required. At some places it's not.
Also, "if foo in some_dict.keys()" is unnecessarily slow.
Replaced with "if foo in some_dict".
I left "for key in some_dict.keys()" alone;
"for key in some_dict" is equivalent but not always obvious.
2019-01-28 21:55:44 +01:00
Matthias Urlichs
63723baf07
list()-ify map() and filter()
...
where required. At some places it's not.
2019-01-28 21:55:44 +01:00
Matthias Urlichs
b60b20d784
Clean up example code
2019-01-28 21:06:35 +01:00
Matthias Urlichs
1e0bdc8b8c
octoprint => octoprint serve
...
for the trivial case of starting "run" without arguments
2019-01-28 20:36:02 +01:00
Matthias Urlichs
b47b39af99
missing import
2019-01-28 20:36:02 +01:00
Matthias Urlichs
6bc4d8fca4
TODO: TypeError is too unspecific
...
This might need better error filtering, assuming that we need it in the
first place. For now, remove entirely.
2019-01-28 20:36:02 +01:00
Matthias Urlichs
1e01e587f3
another missing comma
2019-01-28 20:36:02 +01:00
Matthias Urlichs
d8f5dd701b
another tab
2019-01-28 20:36:02 +01:00
Matthias Urlichs
bee609a316
more list()
2019-01-28 20:36:02 +01:00
Gina Häußge
fb38c396e8
Merge pull request #3010 from HarlemSquirrel/maintenance-disk-usage
...
Add system usage API endpoint
2019-01-28 18:33:38 +01:00
Gina Häußge
904b3c6cf5
🔧 Adjust default regex of temperature terminal filter (2nd try)
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
but should pass unit tests.
Fixes #2945
2019-01-28 18:20:03 +01:00
Gina Häußge
7f2b79bcd5
⏪ Revert "🔧 Adjust default regex of temperature terminal filter"
...
This reverts commit dd692d6
2019-01-28 18:02:46 +01:00
Gina Häußge
dd692d6f30
🔧 Adjust default regex of temperature terminal filter
...
Should no longer match lines like
FIRMWARE_NAME:Marlin 1.1.7-C2 (Github) SOURCE_CODE_URL:https://github.com/Robo3D/Marlin-C2 PROTOCOL_VERSION:C2 MACHINE_TYPE:RoboC2 EXTRUDER_COUNT:1 UUID:cede2a2f-41a2-4748-9b12-c55c62f367ff EMERGENCY_CODES:M108,M112,M410
Fixes #2945
2019-01-28 17:56:10 +01:00
Gina Häußge
5d021d76a0
✨ action_command_prompt: PROMPT_SUPPORT capability support
...
Allow configuration of whether to enable the plugin if firmware support
is detected, always or never. Handle PROMPT_SUPPORT capability report
accordingly.
See MarlinFirmware/Marlin#12982
2019-01-28 17:41:01 +01:00
Matthias Urlichs
5794a347f1
Added myself to AUTHORS ;-)
2019-01-28 15:08:40 +01:00
Gina Häußge
2db230549e
✨ action_command_prompt: signal prompt support on connect (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876.
See MarlinFirmware/Marlin#12982
2019-01-28 14:50:40 +01:00
Gina Häußge
01484b630a
✨ action_command_prompt: EMERGENCY_PARSER support (default off)
...
Note: Has to be enabled manually for now as long as we cannot detect
that the firmware indeed has support for M876 and hence has it as part
of the EMERGENCY_PARSER.
See MarlinFirmware/Marlin#12982
2019-01-28 14:32:10 +01:00
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
Gina Häußge
d8088887e1
🐛 Fix bug introduced in bd58138acf
2019-01-28 13:45:09 +01:00
Gina Häußge
379411cea7
🔧 action_command_prompt: M876 as default command
...
See MarlinFirmware/Marlin#12982
2019-01-28 13:10:00 +01:00
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