Gina Häußge
c66b451efd
Merge branch 'maintenance' into devel
2018-12-19 13:35:42 +01:00
Gina Häußge
4e9437114b
Change wording & exception type
2018-12-19 13:35:18 +01:00
Connor Wolf
52c7321c78
Handle unsupported version at runtime.
...
If you have an ancient setuptools, 4a36ddb3aa
won't successfully prevent installing. These changes will at least give a sane error,
rather then just barfing on random syntax errors due to the `unicode` type not
being present in py3k.
Cherry picked from 2f20f2d
2018-12-19 13:34:37 +01:00
Gina Häußge
ef94646083
printer_safety: Added version restriction to anycubic detection
...
Had to refactor check system to make this possible. Checks are now
implemented in classes that allow to track state.
2018-12-19 13:17:45 +01:00
Unknown
37f3396be3
try fix default function
2018-12-18 19:32:31 +01:00
Unknown
f8f461b804
add callback for on success/error for hook sdcopy
2018-12-18 19:07:15 +01:00
Unknown
5396daa7f6
move default fuction to local fuction + minor fix
2018-12-18 18:47:16 +01:00
Gina Häußge
bb51dc23fc
Merge pull request #2960 from jubaleth/fix/ExceptionMessageCorrection
...
Exception message correction
2018-12-18 11:06:35 +01:00
Jubaleth
2733838574
Corrected plugin manager failure exception message
2018-12-17 18:57:22 +01:00
Gina Häußge
a23d92158b
tracking: Track uptime of OctoPrint in ping event
...
That will give us an idea if the current hypothesis that quite a number
of people are shutting down their instance at night is correct or not,
which in turn will inform future startup optimizations.
2018-12-17 17:47:22 +01:00
Gina Häußge
99225244f1
Add full version string to API
2018-12-17 14:20:42 +01:00
Gina Häußge
e30f1b9f82
Add "::1/128" to localNetworks for auto login
...
See BillyBlaze/OctoPrint-TouchUI#266
2018-12-17 12:29:19 +01:00
Unknown
054bbead72
clean doc + add default function + reduce parameter
2018-12-13 21:28:49 +01:00
Unknown
30294e9009
replace tab by space
2018-12-13 18:39:29 +01:00
Gina Häußge
bf5bc14c87
backup: fix needed space calculation
...
It wasn't taking excludes into account. Now its calculation mirrors the
zip file creation.
2018-12-13 16:29:22 +01:00
Gina Häußge
f6dd13af7a
tracking: add printer safety warnings to tracking
...
We want to get an idea how many people are running unsafe firmware.
2018-12-13 15:24:24 +01:00
Gina Häußge
5760b4b264
tracking: check enabled state before preparing payload
...
Otherwise if tracking is disabled we still do the work and then throw
it away, which is kinda stupid.
Also fixes potential issues with using things like the unique_id when
it hasn't in fact been set due to disabled tracking.
2018-12-13 13:13:02 +01:00
Gina Häußge
49b995b234
Set 10min idle timeout on tornado under windows
...
Possible workaround for #2916
2018-12-12 16:06:15 +01:00
Gina Häußge
8cf5ca9589
tracking: Track firmware/communication errors
2018-12-12 15:41:36 +01:00
Gina Häußge
ae36a3905a
printer safety: Mark Malyan M200 fw 4.0+ as safe
...
Implements #2947
2018-12-12 15:25:38 +01:00
Gina Häußge
bfd847f0a6
GCODE viewer: Bring back the layer count
2018-12-12 15:16:17 +01:00
Gina Häußge
e14cb44e13
Fix merge error & forcelogin plugin
2018-12-12 14:39:39 +01:00
Gina Häußge
17ad63dabf
Merge branch 'maintenance' into devel
...
# Conflicts:
# src/octoprint/templates/tabs/temperature.jinja2
2018-12-10 15:01:16 +01:00
Gina Häußge
ef81702219
Merge remote-tracking branch 'origin/maintenance' into maintenance
2018-12-10 14:59:55 +01:00
Gina Häußge
7cbe6244ae
Merge branch 'staging/maintenance' into maintenance
2018-12-10 14:59:39 +01:00
Gina Häußge
112a8b9c8b
Merge branch 'rc/maintenance'
1.3.10
2018-12-10 13:01:23 +01:00
Gina Häußge
98b692d845
Preparing release of 1.3.10
2018-12-10 12:44:25 +01:00
Gina Häußge
f4f7c87640
Always show actual received from printer instead of off
...
Regardless how cold the temperature is, display it in the table. Some
people otherwise seem to think that OctoPrint "can't handle"
temperatures below 10°C and will blame it for MINTEMP errors triggered
in the firmware.
2018-12-06 11:49:23 +01:00
MirceaDan
39cda08d07
added six to required deps
...
i believe six was already brought in by other packages, but better to be specified in clear than to assume other will install it.
2018-12-03 10:41:46 -08:00
Gina Häußge
3a1611e5c4
Merge branch 'maintenance' into devel
2018-12-03 14:17:32 +01:00
Gina Häußge
5af5cbbb37
Merge branch 'staging/maintenance' into maintenance
2018-12-03 14:16:50 +01:00
Gina Häußge
a657ebd528
staging/maintenance is now 1.3.10rc5.dev
2018-12-03 14:16:31 +01:00
Gina Häußge
e628aedbc1
Preparing release of 1.3.10rc4
1.3.10rc4
2018-12-03 12:42:28 +01:00
MirceaDan
7736cf1e6d
import configparser py3
...
compat with py3
import configparser
2018-12-02 16:10:37 -08:00
MirceaDan
41e74df8d3
click.disable_unicode_literals_warning = True
...
when importing from future unicode literals those warning will need to be disabled
2018-12-02 15:44:20 -08:00
MirceaDan
ac3b8ebfcc
winreg compatibility with python3
...
_winreg has been renamed in winreg in py3
2018-12-02 15:24:19 -08:00
MirceaDan
e0543de8ef
print is a function + header
...
made print a function and added imports from future and encoding
2018-12-02 02:30:47 -08:00
MirceaDan
f243a52823
all files start now with same 2 lines
...
# coding=utf-8
from __future__ import absolute_import, division, print_function
2018-12-02 02:13:12 -08:00
MirceaDan
94013ddb70
py23 compat for defining metaclasses
...
in python 3 and py2 metaclases are define ddiferentley, using six to get to a common solution
2018-12-02 01:25:27 -08:00
MirceaDan
9cfcbd3929
unquote works properley now with py2 and py3
...
py3 support directley to provide encoding, py2 has to do more work
2018-12-02 01:12:12 -08:00
MirceaDan
6cfbdc6062
py23 urlib compat
...
unquote was move dto a diferent location
2018-12-01 22:44:01 -08:00
MirceaDan
d3334b29d9
fix for tests and previous commit regarding estimations
...
tests needed updated None replaced with -1
2018-12-01 22:26:30 -08:00
MirceaDan
94ce6f1dd1
cannot compare number with None
...
TypeError: '<' not supported between instances of 'float' and 'NoneType'
2018-12-01 20:02:22 -08:00
MirceaDan
c623e90ebc
chnaged teh default from binary to text mode
...
seams like open was defaulting to text mode, since now is specified in clear i made sure it matches with teh previous default
2018-12-01 17:43:19 -08:00
MirceaDan
b6e49b59a7
unitest update to decode utf8
...
TypeError: write() argument 1 must be unicode, not str
2018-12-01 17:11:07 -08:00
MirceaDan
f416e96414
defined unicode as str or used basestring
...
in py3 unicode does not exists is default str type but it exists in py2, wrote code to make it run in both py2 and py3
2018-12-01 17:00:37 -08:00
MirceaDan
347f53baa4
file must be open in text mode
...
those files must be opened in text mode in python3
2018-12-01 16:36:11 -08:00
MirceaDan
9ecf39febe
we need a list not a map object
...
AssertionError: Second sequence is not a list: <map object at 0x7f7b0d3811d0>
2018-12-01 16:26:43 -08:00
MirceaDan
582b03f21f
async is a function in py3
...
SyntaxError:Can't assign to function call
declared the dictionary using a diferent format that works in both py2 and py3
/src/octoprint/server/api/system.py", line 192
async=True,
^
SyntaxError: invalid syntax
2018-12-01 16:13:20 -08:00
MirceaDan
ff0b94c78d
py23 compat: list is needed not a view
...
in py3 keys() returns a view but in this cases we need a list
2018-12-01 15:42:01 -08:00