Merge branch 'maintenance' into devel
This commit is contained in:
commit
b150cb07ed
7 files changed
+40
-11
No files matched your search
+3
-3
@@ -24,10 +24,10 @@ maintenance 1.10.0 cd955e9a46782119b36cc22b8dea5652ebbf9774 pep440-dev
|
||||
fix/.* 1.10.0 cd955e9a46782119b36cc22b8dea5652ebbf9774 pep440-dev
|
||||
improve/.* 1.10.0 cd955e9a46782119b36cc22b8dea5652ebbf9774 pep440-dev
|
||||
|
||||
# staging/bugfix is the branch for preparation of the 1.8.8 bugfix release
|
||||
# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases
|
||||
# so are any bug/... branches
|
||||
staging/bugfix 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev
|
||||
bug/.* 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev
|
||||
staging/bugfix 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
||||
bug/.* 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.9.0rc7
|
||||
# so is regressionfix/...
|
||||
|
||||
@@ -577,7 +577,9 @@ class PluginInfo:
|
||||
self._version
|
||||
if self._version is not None
|
||||
else self._get_instance_attribute(
|
||||
ControlProperties.attr_version, default=self._version, incl_metadata=True
|
||||
ControlProperties.attr_version,
|
||||
default=self._version,
|
||||
incl_metadata=True,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -959,7 +961,9 @@ class PluginManager:
|
||||
if self.plugin_folders:
|
||||
try:
|
||||
added, found = self._find_plugins_from_folders(
|
||||
self.plugin_folders, existing, ignored_uninstalled=ignore_uninstalled
|
||||
self.plugin_folders,
|
||||
existing,
|
||||
ignored_uninstalled=ignore_uninstalled,
|
||||
)
|
||||
result_added.update(added)
|
||||
result_found += found
|
||||
@@ -1791,7 +1795,10 @@ class PluginManager:
|
||||
plugin_hooks = plugin.hooks.keys()
|
||||
|
||||
return any(
|
||||
map(lambda hook: PluginManager.hook_matches_hooks(hook, *hooks), plugin_hooks)
|
||||
map(
|
||||
lambda hook: PluginManager.hook_matches_hooks(hook, *hooks),
|
||||
plugin_hooks,
|
||||
)
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
@@ -2168,7 +2175,7 @@ class PluginManager:
|
||||
|
||||
plugin_info = self.get_plugin_info(impl[0], require_enabled=False)
|
||||
return (
|
||||
sv(sorting_value),
|
||||
sv(sorting_value, default_value=self.default_order),
|
||||
not plugin_info.bundled if plugin_info else True,
|
||||
sv(impl[0]),
|
||||
)
|
||||
|
||||
@@ -8,6 +8,7 @@ import hashlib
|
||||
import logging
|
||||
import logging.handlers
|
||||
import os
|
||||
import sys
|
||||
import threading
|
||||
import time
|
||||
from concurrent import futures
|
||||
@@ -1912,6 +1913,14 @@ class SoftwareUpdatePlugin(
|
||||
except Exception:
|
||||
self._logger.exception(f"Error while checking if {target} can be updated")
|
||||
update_possible = False
|
||||
error = "update"
|
||||
|
||||
if target == "octoprint" and sys.platform == "win32":
|
||||
self._logger.info(
|
||||
"OctoPrint is running on Windows, it cannot be updated through itself due to Windows' file locking behavior. Please update manually."
|
||||
)
|
||||
update_possible = False
|
||||
error = "windows"
|
||||
|
||||
self._version_cache[target] = {
|
||||
"timestamp": time.time(),
|
||||
|
||||
@@ -720,6 +720,19 @@ $(function () {
|
||||
"Unknown error while checking for update, please check the logs"
|
||||
);
|
||||
}
|
||||
case "update": {
|
||||
return gettext(
|
||||
"Unknown error while checking if update is possible, please check the logs"
|
||||
);
|
||||
}
|
||||
case "windows": {
|
||||
return _.sprintf(
|
||||
gettext(
|
||||
'Update not possible under Windows due to its strict file locking behaviour, please <a href="%(url)s" target="_blank">see the FAQ</a>'
|
||||
),
|
||||
{url: "https://faq.octoprint.org/update-not-possible-windows"}
|
||||
);
|
||||
}
|
||||
default: {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
</ul>
|
||||
{% trans %}
|
||||
<p>
|
||||
Please take a look at <a href="https://faq.octoprint.org/insuffienct-disk-space" target="_blank">this FAQ entry on how to proceed</a>.
|
||||
Please take a look at <a href="https://faq.octoprint.org/insufficient-disk-space" target="_blank">this FAQ entry on how to proceed</a>.
|
||||
</p>
|
||||
{% endtrans %}</div>
|
||||
<div class="alert" data-bind="visible: throttled()">{% trans %}
|
||||
@@ -115,7 +115,7 @@
|
||||
<span class="line">{{ _('Installed:') }} <span data-bind="text: information.local.name"></span></span>
|
||||
<span class="line">{{ _('Available:') }} <span data-bind="text: information.remote.name"></span></span>
|
||||
<span class="line" data-bind="visible: releaseNotes">{{ _('Release Notes:') }} <a data-bind="attr: {href: releaseNotes}, text: releaseNotes" target="_blank" rel="noreferrer noopener"></a></span>
|
||||
<span class="line text-error" data-bind="visible: error, text: $root.errorTextForEntry($data)"></span>
|
||||
<span class="line text-error" data-bind="visible: error, html: $root.errorTextForEntry($data)"></span>
|
||||
</small>
|
||||
<small data-bind="visible: !compatible">
|
||||
<span class="line text-error">{{ _('Newer versions of this plugin are not compatible to this setup.') }}</span>
|
||||
|
||||
@@ -182,7 +182,7 @@ class SerialConfig(BaseModel):
|
||||
waitForStartOnConnect: bool = False
|
||||
"""Whether OctoPrint should wait for the `start` response from the printer before trying to send commands during connect."""
|
||||
|
||||
waitToLoadSdFileList: bool = False
|
||||
waitToLoadSdFileList: bool = True
|
||||
"""Specifies whether OctoPrint should wait to load the SD card file list until the first firmware capability report is processed."""
|
||||
|
||||
alwaysSendChecksum: bool = False
|
||||
|
||||
@@ -463,7 +463,7 @@
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: serial_waitToLoadSdFileList" id="settings-serialWaitToLoadSdFileList"> {{ _('Wait to load the SD card file list until the firmware capability report is processed.') }}
|
||||
<span class="help-block">{{ _('Try checking this if the SD card file list loads improperly after connecting to the printer.') }}</span>
|
||||
<span class="help-block">{{ _('Try unchecking this if the SD card file list never gets loaded after connecting to the printer, due to your firmware not providing a capability report.') }}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user