diff --git a/.versioneer-lookup b/.versioneer-lookup index c5b025946..c28eecfd5 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -23,10 +23,10 @@ maintenance 1.3.8 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev fix/.* 1.3.8 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev improve/.* 1.3.8 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev -# staging/maintenance is currently the branch for preparation of 1.3.7rc2 +# staging/maintenance is currently the branch for preparation of 1.3.7rc3 # so is regressionfix/... -staging/maintenance 1.3.7rc2 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev -regressionfix/.* 1.3.7rc2 da2c9632ea54fd1b3c8ae34f8f26bab29dbaf3c6 pep440-dev +staging/maintenance 1.3.7rc3 339d1df5a920cc7a2dbae2b5f3410180fea4ceb0 pep440-dev +regressionfix/.* 1.3.7rc3 339d1df5a920cc7a2dbae2b5f3410180fea4ceb0 pep440-dev # every other branch is a development branch and thus gets resolved to 1.4.0-dev for now .* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev diff --git a/CHANGELOG.md b/CHANGELOG.md index 490503c4e..1a2ff8e6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # OctoPrint Changelog +## 1.3.7rc2 (2018-03-23) + +### Bugfixes + + * [#1951](http://github.com/foosel/OctoPrint/issues/1951) - Fixed plugins being able to modify internal state data (e.g. progress, job), causing concurrent modification and resulting run time errors in the printer state processing. + * [#2494](https://github.com/foosel/OctoPrint/issues/2494) - Fixed `undefined` values not saving in the settings. + * [#2499](https://github.com/foosel/OctoPrint/issues/2499) - Fixed communication error notification lacking the actual error message. + * [#2501](https://github.com/foosel/OctoPrint/issues/2501) - Fixed a bug causing log downloads to fail with an HTTP 500 error. + * [#2506](https://github.com/foosel/OctoPrint/issues/2506) - Fixed `printer.get_current_data` and `printer.get_current_job` returning `frozendict` instead of `dict` instances, causing issues with plugins relying on being able to modify the returned data (e.g. [dattas/OctoPrint-DetailedProgress#26](https://github.com/dattas/OctoPrint-DetailedProgress/issues/26)). + * [#2508](https://github.com/foosel/OctoPrint/issues/2508) - Fixed HTTP 500 error on `/api/slicing` in case of an unconfigured slicer. + * Have `OctoPrintJsonEncoder` fall back to regular flask JSON encoder, otherwise we might not be able to serialize some data types we need to be able to serialize. + * Use `pkg_resources` to determine pip version during environment check instead of `import pip; pip.__version__` since the latter causes issues with pip version 9.0.2. In the same spirit make `pip.main` approach of calling `pip` in the PipCaller the last resort during auto detection, only after trying `pip` or `pip.exe` inside the same folder as the Python executable. + * Use `octoprint.util.monotonic_time` instead of `monotonic.monotonic` in comm layer. + * Fixed timelapse not stopping on print failure due to firmware error due to missing `PrintFailed` event. + +([Commits](https://github.com/foosel/OctoPrint/compare/1.3.7rc1...1.3.7rc2)) + ## 1.3.7rc1 (2018-03-19) ### Improvements diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 2690df2f6..e204c181b 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -11,6 +11,7 @@ thanks to everyone who contributed! * Andrew Moorby * Arnljot Arntsen * BEEVERYCREATIVE + * Boris Hussein * Brad Jackson * Brian E. Tyler * Christian Petropolis @@ -54,4 +55,4 @@ thanks to everyone who contributed! * Thomas Hatley * Trent Shumay -and 1188 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! \ No newline at end of file +and 1199 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)! \ No newline at end of file diff --git a/docs/api/settings.rst b/docs/api/settings.rst index b26b2d25d..c5947c4b5 100644 --- a/docs/api/settings.rst +++ b/docs/api/settings.rst @@ -106,7 +106,7 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted: * - ``api.key`` - Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise. Starting with OctoPrint 1.3.3 setting this field via :ref:`the API ` is not possible, - only :ref:`regenerting it ` is supported. Setting a custom value is only + only :ref:`regenerating it ` is supported. Setting a custom value is only possible through `config.yaml`. * - ``api.allowCrossOrigin`` - diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 790702fd1..7d4107174 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -1092,7 +1092,12 @@ System Use the following settings to add custom system commands to the "System" dropdown within OctoPrint's top bar. -Commands consist of a name, an action identifier, the commandline to execute and an optional confirmation message to +Commands consist of a ``name`` shown to the user, an ``action`` identifier used by the code and the actual +``command`` including any argument needed for its execution. +By default OctoPrint blocks until the command has returned so that the exit code can be used to show a success +or failure message; use the flag ``async: true`` for commands that don't return. + +Optionally you can add a confirmation message to display before actually executing the command (should be set to False if a confirmation dialog is not desired). The following example defines a command for shutting down the system under Linux. It assumes that the user under which diff --git a/src/octoprint/environment.py b/src/octoprint/environment.py index 2a369d5ae..4d539297e 100644 --- a/src/octoprint/environment.py +++ b/src/octoprint/environment.py @@ -83,8 +83,8 @@ class EnvironmentDetector(object): # try to find pip version try: - import pip - result["pip"] = pip.__version__ + import pkg_resources + result["pip"] = pkg_resources.get_distribution("pip").version except: self._logger.exception("Error detecting pip version") diff --git a/src/octoprint/plugins/logging/__init__.py b/src/octoprint/plugins/logging/__init__.py index 06fcab632..91da040c8 100644 --- a/src/octoprint/plugins/logging/__init__.py +++ b/src/octoprint/plugins/logging/__init__.py @@ -11,6 +11,7 @@ from octoprint.server import NO_CONTENT, admin_permission from octoprint.server.util.flask import redirect_to_tornado, restricted_access from flask import request, jsonify, url_for, make_response +from flask_babel import gettext from werkzeug.utils import secure_filename from werkzeug.exceptions import BadRequest import yaml @@ -200,4 +201,7 @@ class LoggingPlugin(octoprint.plugin.AssetPlugin, __plugin_name__ = "Logging" __plugin_author__ = "Shawn Bruce, based on work by Gina Häußge and Marc Hannappel" __plugin_description__ = "Provides access to OctoPrint's logs and logging configuration." +__plugin_disabling_discouraged__ = gettext("Without this plugin you will no longer be able to retrieve " + "OctoPrint's logs or modify the current logging levels through " + "the web interface.") __plugin_implementation__ = LoggingPlugin() diff --git a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 index 6541c2b58..f66f9f35b 100644 --- a/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 +++ b/src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2 @@ -245,57 +245,64 @@

{% trans %}You should normally not have to change any of the following settings, they are purely provided for convenience here.{% endtrans %}

- {{ _('Plugin repository configuration') }} +
+ {{ _('Plugin repository configuration') }} -
- -
- -
-
-
- -
-
- - min +
+ +
+
-
- - {{ _('Notices configuration') }} - -
- -
- -
-
-
- -
-
- - min +
+ +
+
+ + min +
-
+
- {{ _('pip configuration') }} +
+ {{ _('Notices configuration') }} -
- -
- +
+ +
+ +
-
-
-
- +
+ +
+
+ + min +
+
-
+
+ +
+ {{ _('pip configuration') }} + +
+ +
+ +
+
+
+
+ +
+
+
+
@@ -271,7 +271,7 @@
@@ -299,7 +299,7 @@
diff --git a/src/octoprint/templates/initscript.jinja2 b/src/octoprint/templates/initscript.jinja2 index 722830bf3..7ffa07a26 100644 --- a/src/octoprint/templates/initscript.jinja2 +++ b/src/octoprint/templates/initscript.jinja2 @@ -1,4 +1,4 @@ -