Matthias Urlichs
72729ad418
fix speling an move to docstring
2019-02-05 17:34:57 +01:00
Matthias Urlichs
e6f902cbe7
add logging
2019-02-05 17:34:45 +01:00
Matthias Urlichs
9b14f32279
take PY3 from existing declaration
2019-02-05 17:34:27 +01:00
Matthias Urlichs
7ad4d75588
fixed merge errors
2019-02-05 17:34:15 +01:00
Gina Häußge
5a623b486c
✅ Adding flake8 to CI
2019-02-05 17:28:44 +01:00
Gina Häußge
920283cf87
Merge branch 'devel' into pr/3032
...
# Conflicts:
# src/octoprint/access/groups.py
# src/octoprint/static/css/octoprint.css
2019-02-05 17:08:24 +01:00
Gina Häußge
becd16b892
🐛 Fix a test
2019-02-05 16:08:40 +01:00
Gina Häußge
f59c1ce804
⬆ Upgrade Flask-Login dependency
...
It used to be 0.3.0+, some merge in the past must have broken that.
2019-02-05 15:58:15 +01:00
Gina Häußge
c71972c0f8
♻ Explicitly add admin group to plugin permissions
...
Admin only access by default for these was implied by not having them
added to one of the three major default groups, making it explicit is
more clear though.
2019-02-05 15:58:15 +01:00
Gina Häußge
47a9a40ec9
✨ permissions: Groups can now have subgroups
...
That way we can easily provide a Read Only group that allows read-only
access and which can then be added to the Guest group by users who
desire anonymous read-only access, similar to disabling the forcelogin
plugin in 1.3.10+
2019-02-05 15:58:15 +01:00
Matthias Urlichs
5c1fffc3d0
comm: more str vs. bytes (esp. baudrate detect)
2019-02-05 14:30:23 +01:00
Matthias Urlichs
fe090cc6cc
Virtual printer: str vs. bytes
2019-02-05 14:29:27 +01:00
Matthias Urlichs
ab3c4ab66c
Don't compare with None
2019-02-05 14:29:04 +01:00
Matthias Urlichs
1d6b7244b5
Bah. That glob-import-removal was overzealous.
2019-02-04 21:33:35 +01:00
Matthias Urlichs
ea17566aba
some more unused variables
2019-02-04 21:13:19 +01:00
Matthias Urlichs
315ed57916
Another missing import
2019-02-04 21:12:20 +01:00
Matthias Urlichs
1014582b4b
removed wildcard imports
2019-02-04 21:10:11 +01:00
Matthias Urlichs
cf77053901
missing imports
2019-02-04 21:10:04 +01:00
Matthias Urlichs
f040482b18
don't assign to an unused variable
2019-02-04 21:09:27 +01:00
Matthias Urlichs
523fadd930
Don't shadow globals
2019-02-04 21:08:32 +01:00
Matthias Urlichs
97d0fbd2c9
Don't compare with bool values
2019-02-04 21:07:53 +01:00
Matthias Urlichs
3b820f6848
Scoping error: py3 deletes exceptions after their except: block
2019-02-04 21:02:32 +01:00
Matthias Urlichs
e8b9f385b4
"has_key" is deprecated
2019-02-04 20:54:54 +01:00
Matthias Urlichs
95bc1006a0
Fix undefined "autologin_as" and "local_networks"
2019-02-04 20:49:49 +01:00
Matthias Urlichs
14ef17163f
Don't compare with None
2019-02-04 20:44:57 +01:00
Matthias Urlichs
9a1bd8af87
These are numbers so unicode() is not necessary
2019-02-04 20:35:00 +01:00
Matthias Urlichs
a292a12c4a
The lastline buffer has bytes
...
This reduces required work because we only need to convert back when
resending
2019-02-04 20:35:00 +01:00
Matthias Urlichs
200a3ef4eb
replaced a bunch of map() with generator expressions
2019-02-04 20:35:00 +01:00
Matthias Urlichs
88582beb55
grammar ;-)
2019-02-04 20:29:22 +01:00
Matthias Urlichs
6d7c8bbda6
More backslashes
2019-02-04 20:13:06 +01:00
Matthias Urlichs
9a7f92174a
forgot to replace a unicode=str instance
2019-02-04 20:13:06 +01:00
Gina Häußge
61431c0df3
Merge remote-tracking branch 'origin/master'
2019-02-04 18:48:10 +01:00
Matthias Urlichs
a301fc6da9
Merge remote-tracking branch 'origin/devel' into py23
2019-02-04 18:44:23 +01:00
Gina Häußge
cc0b63cbb9
📝 Fix a formatting issue
...
No events are about to be removed in 1.4.0, only the payload fields
marked as deprecated. And for some reason ReST doesn't appear to allow
including that piece of information within the `deprecated` directive,
so now we have a slightly different way of expressing it...
2019-02-04 18:40:57 +01:00
Matthias Urlichs
e08dc0b5aa
missed importing "long" from past.builtins
2019-02-04 17:04:33 +01:00
Matthias Urlichs
a368a7f1c9
comm: we already have a logger. Use it.
2019-02-04 17:04:01 +01:00
Gina Häußge
020403dc54
💬 Correct typo in german translation
...
Closes #3029
2019-02-04 14:43:12 +01:00
Matthias Urlichs
6a601d4f8e
clean_ansi: accept strings
2019-02-04 14:33:57 +01:00
Gina Häußge
7a3b370469
🐛 Fix earlier merge error
...
New permission system does handle disabled ACL slightly differently.
2019-02-04 14:30:02 +01:00
Matthias Urlichs
e676d53e9f
Fix the remaining docstr tests
...
Sets are annoying to test:
(a) their repr() is different
(b) they might get re-ordered.
2019-02-04 14:15:09 +01:00
Matthias Urlichs
40b231f692
fix TagStripper for py2
2019-02-04 14:14:55 +01:00
Matthias Urlichs
86664fdb39
super() doesn't work in Py2. Yech.
2019-02-04 13:58:56 +01:00
Matthias Urlichs
4ebb5cf42d
more native_str
2019-02-04 13:38:31 +01:00
Matthias Urlichs
e8bee435af
forgotten import
2019-02-04 13:33:46 +01:00
Matthias Urlichs
082f977f7a
Disable unicode strings in github_release
...
I am too lazy to fix all the doctests
2019-02-04 13:32:34 +01:00
Matthias Urlichs
237a2c0add
Make the HTML tag stripper 2.7 compatible
...
convert_charrefs defaults to True on Py3.5 ff.
2019-02-04 13:20:47 +01:00
Matthias Urlichs
2e47f49f7a
Make to_native_str() decode bytes
...
used for doctests
2019-02-04 13:14:32 +01:00
Matthias Urlichs
05919363e1
De-ANSIfication needs to run on bytes.
2019-02-04 13:14:01 +01:00
Matthias Urlichs
7c8547555c
double escapes vs. raw strings. Ugh.
2019-02-04 13:13:30 +01:00
Matthias Urlichs
ce0c77f0bf
Travis: run on xenial distro
2019-02-04 13:13:09 +01:00