Matthias Urlichs
d7d3272905
Merge errors fixed
2019-02-05 17:43:31 +01:00
Matthias Urlichs
9eb29a8ce0
found another unnecessary list-ification
2019-02-05 17:41:30 +01:00
Matthias Urlichs
bf16bd1180
Merge py23 from devel
2019-02-05 17:36:07 +01:00
Matthias Urlichs
7b5315383b
Add wildcard import for compatibility
2019-02-05 17:35:25 +01:00
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
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
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
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
9a7f92174a
forgot to replace a unicode=str instance
2019-02-04 20:13:06 +01:00
Matthias Urlichs
a301fc6da9
Merge remote-tracking branch 'origin/devel' into py23
2019-02-04 18:44:23 +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
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
aec041b014
Fix unicode woes in doctests
2019-02-04 13:00:54 +01:00
Matthias Urlichs
6d447f8408
unicode woes for funcion __name__/__qualname__
2019-02-04 12:47:44 +01:00
Matthias Urlichs
54d359f730
Don't spew a stack trace if vcgencmd doesn't work / exist
2019-02-04 11:34:05 +01:00
Matthias Urlichs
4d9f0fca41
Unicode woes for serial seending
2019-02-04 11:24:25 +01:00
Matthias Urlichs
41146c2b7c
another hash
2019-02-04 11:23:08 +01:00
Matthias Urlichs
c8b5662ff2
a bunch of bytes
2019-02-03 19:02:10 +01:00