Matthias Urlichs
5edeecdc8c
Py3 codecs.open doesn't like mode='t'
2019-02-03 19:01:07 +01:00
Matthias Urlichs
372a8d2ea8
Feedparser: avoid warning due to their workaround
...
see Feedparser issues 328 and 310
2019-02-03 17:39:12 +01:00
Matthias Urlichs
9c5d1dec59
don't apply str.lower() to unicode
2019-02-03 17:39:01 +01:00
Matthias Urlichs
feff5e0978
type() vs. unicode, again
2019-02-03 17:25:39 +01:00
Matthias Urlichs
019bf5acd4
use past.builtins.unicode
2019-02-03 17:19:46 +01:00
Matthias Urlichs
67c5a5e168
went through "except Exception:" with a fine comb
2019-02-03 16:39:01 +01:00
Matthias Urlichs
6310afa261
owchie to_native
2019-02-03 16:36:20 +01:00
Matthias Urlichs
cd6ae6e47b
setup 2 unicode_literals
2019-02-03 16:35:48 +01:00
Matthias Urlichs
b01e1c269d
owchie to_native
2019-02-03 16:35:12 +01:00
Matthias Urlichs
8956e7a173
actually purge logger entries
2019-02-03 15:55:49 +01:00
Matthias Urlichs
9fa20f0e52
rename to_str to to_bytes
2019-02-03 14:54:28 +01:00
Matthias Urlichs
6bf8384c35
Kill of u"" (visual clutter)
2019-02-03 14:25:41 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
7522dbed1d
serial readline: bytes
2019-02-03 14:06:06 +01:00
Matthias Urlichs
d433c919ec
more bare except:
2019-02-03 14:02:41 +01:00
Matthias Urlichs
a6f701802f
Simplify: set([GEN]) → set(GEN)
2019-02-01 17:33:32 +01:00
Matthias Urlichs
e03feeb7ac
checked "basestring"
2019-02-01 17:23:08 +01:00
Matthias Urlichs
00068114a1
Unicode oops
2019-02-01 17:15:42 +01:00
Matthias Urlichs
6a7e11eb7c
items not values 🙄
2019-02-01 17:14:27 +01:00
Matthias Urlichs
6f987577f4
missed hash_update
2019-02-01 17:14:10 +01:00
Matthias Urlichs
819d690bc3
Merge devel into py23
2019-02-01 16:50:56 +01:00
Gina Häußge
dbfe487f13
Merge branch 'maintenance' into devel
2019-02-01 15:12:42 +01:00
Gina Häußge
21a82bbdb6
🐛 Fix enableWebcam render kwarg
...
Was using the wrong setting name.
2019-02-01 15:10:28 +01:00
Gina Häußge
47e9afa811
♻ Use new named registration params for UiStateVM
2019-02-01 14:58:02 +01:00
Gina Häußge
f9edea0c2c
🐛 Fix duplicate auth request on socket
...
Merge error.
2019-02-01 14:57:11 +01:00
Gina Häußge
8ef3d1dcad
🐛 Fix reload loop on first setup
...
Removed the forcelogin plugin since it's obsolete in 1.4.0 thanks to
the granular permission system anyhow.
2019-02-01 14:56:48 +01:00
Gina Häußge
fcfef25c93
🐛 Fix first run wizard again
...
Necessary requests were wrongfully denied after initial setup of a user
account due to hasBeenCustomized still being used and its deprecated
wrapper wrapping the always False implementation in the UserManager base
class instead of the adjusted one in the FileBasedUserManager. Evil bug.
2019-02-01 14:45:38 +01:00
Gina Häußge
604d2f7811
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/views.py
# src/octoprint/templates/dialogs/settings/api.jinja2
2019-02-01 11:12:29 +01:00
Gina Häußge
727fd12939
🚸 CORS change needs restart to take effect
2019-02-01 10:55:24 +01:00
Gina Häußge
100fe5f290
🐛 Allow disabling CORS headers on SockJS endpoints
...
Fixes 2) of #3024
2019-02-01 10:40:37 +01:00
Matthias Urlichs
24d2efd3ce
Merge devel into py23
2019-01-31 20:08:40 +01:00
Gina Häußge
1acf69cb6d
🐛 Add CORS headers to tornado endpoints (if enabled)
...
Fixes 1) of #3024
2019-01-31 17:38:10 +01:00
Gina Häußge
3815c340a8
☔ Protect against corrupt language packs
2019-01-31 17:07:10 +01:00
Gina Häußge
5e8220055f
🐛 Fix merge error
2019-01-31 14:44:46 +01:00
Gina Häußge
38eff3fe6f
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/server/api/system.py
2019-01-31 14:07:14 +01:00
Gina Häußge
4e47ecabf8
🐛 Fix duped log entries
2019-01-31 13:57:05 +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
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