Compare commits

...
20 Commits
Author SHA1 Message Date
Gina Häußge 5ca7f07cb7 👷 Include server run in test install workflow 2023-10-09 10:13:40 +02:00
dependabot[bot] 25d9c44d55 Bump actions/checkout from 3 to 4 (#4884)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 12:09:57 +02:00
Gina Häußge ed4a2646fb Update bug_report.yml
Make it EXTRA clear that "I'm currently printing" is not a
reason to not test in safe mode before opening a bug report!
2023-07-31 12:18:39 +02:00
Gina Häußge f027aaa730 🔖 Preparing release of 1.9.2 2023-07-18 11:52:11 +02:00
Christopher Perrin cf86f08d04 🥅 Workaround for faulty argon2 hashes on aarch64 (#4780)
Ensure we can successfully verify an argon2 hash before using it.

Closes #4779
2023-07-18 10:47:49 +02:00
Gina Häußge c4fab1b7e6 🐛 swu: fix httpheader check type
It was not storing its current value properly, thanks to an incomplete
refactoring ages ago during which etag and lastmodified types were
joined into httpheader.

Closes #4806
2023-07-18 10:47:49 +02:00
Gina Häußge fd1c6b2e7d ⬆️ Upgrade PyYaml to 6.0.1
This works around a bug when installing PyYaml
>=5.4.1,<6.0.1 ever since Cython 3.0 has been released.

PyYaml 6.0.1 pins Cython to a version less than 3.0 which
resolves this issue (for now).

See also yaml/pyyaml#724
2023-07-18 10:47:45 +02:00
Gina Häußge b366ab4653 Merge branch 'master' into staging/bugfix 2023-07-18 10:20:24 +02:00
Gina Häußge ed4db2453e 🔖 staging/bugfix is now 1.9.2.dev 2023-06-27 10:23:15 +02:00
Gina Häußge 1d519a2170 Merge branch 'staging/bugfix' 2023-06-26 15:30:22 +02:00
Gina Häußge 584483a23a 🔖 Preparing release of 1.9.1 2023-06-26 15:29:22 +02:00
Charlie PowellandGina Häußge d08393d450 🐛 Reduce intersection observer threshold (#4824)
* 🐛 Reduce intersection observer threshold

When this value is 1, scrolling down the page (sometimes?) triggers the value to change - probably something changes invisibly. Setting it to anything less than 1 seems to cure the issue, and there are no longer unwanted triggers of changes. 1% also seems to make more sense here than 100% - we want the webcam to load whenever even a tiny amount of it is visible.

* ♻️ Change visibility observer threshold to 1%

* ♻️ Use log.debug instead of console.debug

---------

Co-authored-by: Gina Häußge <gina@octoprint.org>
2023-06-26 12:23:58 +02:00
Gina Häußge c847ed9d13 🐛 Gcode viewer: reset some analysis outputs
We need to reset emptyLayers (and should - for the sake of consistency -
also reset percentageByLayer) after running an analysis because
otherwise old values will stay in there until page reload, causing layers
to not render that actually are not empty but were in any previously
loaded model.
2023-06-22 16:33:25 +02:00
Gina Häußge fb75e911e6 🐛 Gcode Viewer: Fix reload button 2023-06-22 15:36:44 +02:00
JoveToo e3c09568fd 🐛 Gcode viewer: Fix loading on tab change (#4834) 2023-06-22 15:02:46 +02:00
Gina Häußge 9d94889a45 🐛 gcv: Fix URL for skipuntil check
Needs to take the current base url and possible
path prefixes into account.

Closes #4829
2023-06-19 18:31:13 +02:00
Gina Häußge da3ab33a0a 👷 Include staging/bugfix in pr validation
Thanks for the (unintentional) heads-up, @cp2004
2023-06-07 14:15:16 +02:00
Gina Häußge b0a1884982 🚸 Enable deferring M20 by default
Closes #4821
2023-06-05 15:30:15 +02:00
Gina Häußge 2397867d28 🐛 Fix treating of None sorting value
`None` values were converted to an empty string by sv, leading to
comparison issues with (correct) integers. Using the default order
value for sv fixes that.

Closes #4818
2023-06-01 17:13:35 +02:00
Gina Häußge 0753c1ef6f 🔖 staging/bugfix is now 1.9.1.dev 2023-05-23 10:28:35 +02:00
24 changed files with 208 additions and 141 deletions

No files matched your search

+2 -2
View File
@@ -71,7 +71,7 @@ body:
required: true
- type: input
attributes:
label: If you could not test in safe mode, please state why
label: If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)
description: >-
Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to
rule out that a plugin is at fault here. [Safe mode](https://docs.octoprint.org/en/master/features/safemode.html) is an easy way to do that. Only skip safe mode
@@ -79,7 +79,7 @@ body:
too long" or "I have a long print running right now" are **not** a reason to skip testing in safe mode, neither is "I do not know how to
enable it" as you can find info on that [here](https://docs.octoprint.org/en/master/features/safemode.html).
If you really *cannot* test in safe mode at all, leave a short explanation as to why. If you,can but just not right now, then wait with reporting until you can.
If you really *cannot* test in safe mode at all, leave a short explanation as to why. If you can but just not right now, then wait with reporting until you can!
- type: markdown
attributes:
value: |
+10 -2
View File
@@ -2,9 +2,17 @@ approve_label: "approved"
problem_label: "needs some work"
ignore_label: "skip validation"
allowed_targets: ["maintenance", "devel", "staging/maintenance", "staging/devel"]
allowed_targets:
["maintenance", "devel", "staging/bugfix", "staging/maintenance", "staging/devel"]
forbidden_sources:
["master", "maintenance", "devel", "staging/maintenance", "staging/devel"]
[
"master",
"maintenance",
"devel",
"staging/bugfix",
"staging/maintenance",
"staging/devel"
]
labels:
docs:
+5 -5
View File
@@ -11,7 +11,7 @@ jobs:
name: 🔨 Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🏗 Set up Python 3.7
@@ -34,7 +34,7 @@ jobs:
name: 🧹 Pre-commit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4
with:
@@ -53,7 +53,7 @@ jobs:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 🏗 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
@@ -70,7 +70,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: 🏗 Set up test dependencies
run: |
npm -g install node-qunit-puppeteer@2.1.0
@@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇ Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: ⬇ Download build result
uses: actions/download-artifact@v3
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: ⬇ Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
+45 -38
View File
@@ -15,21 +15,63 @@ jobs:
matrix:
os: ["ubuntu-latest"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
branch: ["master"]
branch: ["master", "release"]
runs-on: ${{ matrix.os }}
steps:
- name: ⬇ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
path: src
- name: 🐍 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: ⬇ Checkout code
uses: actions/checkout@v3
# Checkout code and install
- name: ⬇ Checkout code to test
if: ${{ matrix.branch != 'release' }}
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
fetch-depth: 0
path: checkout
- name: 👷 Build and install checkout
if: ${{ matrix.branch != 'release' }}
working-directory: checkout
run: |
pip install .
# Install latest release
- name: 👀 Determine latest release
if: ${{ matrix.branch == 'release' }}
run: |
OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | head -n1 | awk -F/ '{print $NF}' | tr -d '\r')
echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV
- name: 👷 Build and install latest release
if: ${{ matrix.branch == 'release' }}
run: |
pip install https://github.com/OctoPrint/OctoPrint/archive/${{ env.OCTOPRINT_VERSION }}.zip
# Test if server starts without error
- name: 🏗 Create base config for test server
run: |
mkdir e2econfig
cp -r src/.github/fixtures/with_acl/* e2econfig
- name: 🧪 Start OctoPrint server
run: |
timeout -k 10s 30s octoprint serve --basedir e2econfig &
wait
- name: 🔎 Check octoprint.log for errors
run: |
log=${{ github.workspace }}/e2econfig/logs/octoprint.log
if grep "\- ERROR \-" $log; then
echo "::error::Errors were logged to octoprint.log"
grep -Pazo '(?m)^\N+\- ERROR \-\N*\n(^\N*?\n)*?(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3} \- )' $log
exit 1
fi
- name: 📧 Discord success notification
continue-on-error: true
env:
@@ -45,38 +87,3 @@ jobs:
uses: Ilshidur/action-discord@master
with:
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed"
install-latest:
name: Install latest release
strategy:
matrix:
os: ["ubuntu-latest"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- name: 👀 Determine latest release
run: |
OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | head -n1 | awk -F/ '{print $NF}' | tr -d '\r')
echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV
- name: 🐍 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: 👷 Build and install latest release
run: |
pip install https://github.com/OctoPrint/OctoPrint/archive/${{ env.OCTOPRINT_VERSION }}.zip
- name: 📧 Discord success notification
continue-on-error: true
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
uses: Ilshidur/action-discord@master
with:
args: "☑️ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ env.OCTOPRINT_VERSION }}` was successful"
- name: 📧 Discord failure notification
continue-on-error: true
if: failure()
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
uses: Ilshidur/action-discord@master
with:
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ env.OCTOPRINT_VERSION }}` failed"
+3 -3
View File
@@ -24,10 +24,10 @@ maintenance 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
fix/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
# staging/bugfix is the branch for preparation of the 1.8.7 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.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
bug/.* 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
# staging/maintenance is currently the branch for preparation of 1.9.0rc6
# so is regressionfix/...
+1
View File
@@ -176,6 +176,7 @@ date of first contribution):
* [Moiz Rasheed](https://github.com/msrasheed)
* [Scott Martin](https://github.com/smartin015)
* [Shyam Sunder](https://github.com/sgsunder)
* [Christopher Perrin](https://github.com/cperrin88)
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
[Daid Braam](https://github.com/daid). Parts of its communication layer and
+1 -2
View File
@@ -61,10 +61,9 @@ thanks to everyone who contributed!
* Richard Stocks
* Robert Gusek
* SimplyPrint
* Songyin Zheng
* Stefan Krister
* Steve Dougherty
* Steve Thompson
* Ulrich Kempken
and 2002 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
and 1970 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
+2 -2
View File
@@ -36,7 +36,7 @@ SETUP_REQUIRES = []
bundled_plugins = [
"OctoPrint-FileCheck>=2021.2.23",
"OctoPrint-FirmwareCheck>=2021.10.11",
"OctoPrint-PiSupport>=2022.6.13",
"OctoPrint-PiSupport>=2023.5.24",
]
core_deps = [
"argon2_cffi>=21.3.0,<22",
@@ -64,7 +64,7 @@ core_deps = [
"pydantic>=1.10.7,<2",
"pylru>=1.2.1,<2",
"pyserial>=3.5,<4",
"PyYAML>=5.4.1,<6", # no changelog available for version 6, so we're not risking it
"PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
"requests>=2.28.2,<3",
"sarge==0.1.7.post1",
"semantic_version>=2.10.0,<3",
+1 -1
View File
@@ -27,7 +27,7 @@ try:
# test if we can actually hash and verify, if not we won't use this backend
hash = argon2.hash("test")
argon2.verify("test", hash)
assert argon2.verify("test", hash)
password_hashers.append(argon2)
except Exception:
+11 -4
View File
@@ -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]),
)
@@ -18,10 +18,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://21dc312545ad43599cec6447a22b1199@o118517.ingest.sentry.io/1373987"
"https://ba4e3d61c37a4d219e1cd81bdc1417a7@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://2e072e9c589742e18ba5e26f22395779@o118517.ingest.sentry.io/1374096"
"https://2382252761de4d318e5f83be0816efaa@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {
@@ -505,14 +505,15 @@ $(function () {
});
};
self.loadFile = function (path, date, size) {
self.loadFile = function (path, date, size, force) {
self.enableReload(false);
self.needsLoad = false;
if (
self.status === "idle" &&
self.cachedPath !== path &&
self.cachedDate !== date &&
self.cachedSize !== size
(force ||
(self.cachedPath !== path &&
self.cachedDate !== date &&
self.cachedSize !== size))
) {
self.status = "request";
@@ -549,7 +550,12 @@ $(function () {
self.reload = function () {
if (!self.enableReload()) return;
self.loadFile(self.loadedFilepath, self.loadedFileDate, self.loadedFileSize);
self.loadFile(
self.loadedFilepath,
self.loadedFileDate,
self.loadedFileSize,
true
);
};
self.fromHistoryData = function (data) {
@@ -891,8 +897,11 @@ $(function () {
self.onTabChange = function (current, previous) {
self.tabActive = current === "#gcode";
if (self.tabActive && self.needsLoad) {
self.loadFile(self.selectedFile.path(), self.selectedFile.date()),
self.selectedFile.size();
self.loadFile(
self.selectedFile.path(),
self.selectedFile.date(),
self.selectedFile.size()
);
}
};
@@ -4,10 +4,18 @@
* Time: 12:18 PM
*/
// base url to use for API calls; it's the worker location minus the worker.js path
var baseUrl = self.location.href.substring(
0,
self.location.href.length - "/plugin/gcodeviewer/static/js/viewer/worker.js".length
);
// raw path suitable for fetch()
var url;
// path relative to Local
var path;
var firstReport;
var toolOffsets = [{x: 0, y: 0}];
var g90InfluencesExtruder = false;
@@ -455,7 +463,9 @@ var doParse = async function () {
// if skipUntil is set, get skipUntilPresent
skipUntilPresent = false;
if (skipUntil !== undefined && skipUntil !== "") {
result = await fetch("/plugin/gcodeviewer/skipuntilcheck/local/" + path);
result = await fetch(
baseUrl + "/plugin/gcodeviewer/skipuntilcheck/local/" + path
);
if (result.ok) {
response = await result.json();
skipUntilPresent = response.present;
@@ -904,6 +914,8 @@ var runAnalyze = function (message) {
layerCnt = 0;
speeds = {extrude: [], retract: [], move: []};
speedsByLayer = {extrude: {}, retract: {}, move: {}};
emptyLayers = [];
percentageByLayer = [];
};
var setOption = function (options) {
@@ -61,7 +61,7 @@ class SoftwareUpdatePlugin(
octoprint.plugin.EventHandlerPlugin,
):
COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit")
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("etag", "lastmodified", "jsondata")
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("httpheader", "jsondata")
RELEASE_TRACKING_TYPES = ("github_release",)
OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin")
+1 -1
View File
@@ -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
@@ -57,19 +57,20 @@ $(function () {
self._visibleWebcam = undefined;
self._dispatchWebcamVisibilityChange = function (target, visible) {
log.debug(`Webcam visibility of #${target.id} changed to ${visible}`);
var vm = ko.dataFor(target.children[0]);
if (vm === self) {
console.debug(
log.debug(
`VM for webcam #${target.id} is not bound, skipping visibility update`
);
} else if (vm === undefined) {
console.debug(
log.debug(
`VM for webcam #${target.id} not found, skipping visibility update`
);
} else if (typeof vm.onWebcamVisibilityChange === "function") {
vm.onWebcamVisibilityChange(visible);
} else {
console.debug(
log.debug(
`VM for webcam #${target.id} does not declare 'onWebcamVisibilityChange(visible)', skipping visibility update (vm=${vm.constructor.name})`
);
}
@@ -122,7 +123,7 @@ $(function () {
var options = {
root: document.querySelector("#webcam_plugins_container"),
rootMargin: "0px",
threshold: 1.0
threshold: 0.01
};
var callback = function (entries) {
var visible = entries[0].isIntersecting;
@@ -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>
@@ -3,10 +3,10 @@
# This file is distributed under the same license as the OctoPrint project.
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.9.0\n"
"Project-Id-Version: OctoPrint 1.9.1\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-13 13:14+0200\n"
"PO-Revision-Date: 2023-04-13 13:14+0200\n"
"POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: 2023-06-26 15:06+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
@@ -1863,16 +1863,16 @@ msgstr ""
" noreferer\">Privacy Policy</a> an.\n"
"</p>\n"
#: src/octoprint/plugins/eventmanager/__init__.py:39
#: src/octoprint/plugins/eventmanager/__init__.py:57
#: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager"
msgstr "Eventmanager"
#: src/octoprint/plugins/eventmanager/__init__.py:48
#: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions."
msgstr "Ermöglicht das Verwalten von Eventsubscriptions."
#: src/octoprint/plugins/eventmanager/__init__.py:61
#: src/octoprint/plugins/eventmanager/__init__.py:64
msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren."
@@ -1964,48 +1964,48 @@ msgstr "Analysiere..."
msgid "Ready!"
msgstr "Fertig!"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:694
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:700
#: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size"
msgstr "Modelgröße"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:704
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
msgid "Estimated layer height"
msgstr "Geschätzte Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:707
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:713
#: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm"
msgstr "mm"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:716
msgid "Estimated total print time"
msgstr "Geschätzte Gesamtdauer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:715
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:721
msgid "Layers with extrusion"
msgstr "Layer mit Extrusion"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:748
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
msgid "Layer number"
msgstr "Schichtnummer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height"
msgstr "Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands"
msgstr "GCODE Befehle"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:769
#: src/octoprint/static/js/app/viewmodels/files.js:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament"
msgstr "Filament"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:765
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:771
#: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357
@@ -2015,7 +2015,7 @@ msgstr "Filament"
msgid "Tool"
msgstr "Tool"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:777
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:783
#: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time"
msgstr "Geschätzte Dauer"
@@ -7867,9 +7867,13 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid ""
"Try checking this if the SD card file list loads improperly after "
"connecting to the printer."
msgstr "Deaktiviere das, falls die SD-Karten Dateiliste fehlerhaft geladen wird."
"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."
msgstr ""
"Deaktiviere das, falls die SD-Karten Dateiliste nach Verbindung zum "
"Drucker nicht geladen wird, weil deine Firmware keinen Capability Report "
"bereit stellt."
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
msgid "Blocked commands"
+14
View File
@@ -21,3 +21,17 @@ class UserManagerTest(unittest.TestCase):
# should not throw an exception
octoprint.access.users.UserManager.create_password_hash(password)
def test_createPasswordHash_is_valid(self):
password = "test1234"
password_hash = octoprint.access.users.UserManager.create_password_hash(password)
user = octoprint.access.users.User(
"username",
password_hash,
True,
permissions=[],
apikey="apikey",
settings={"key": "value"},
)
self.assertTrue(user.check_password(password))
Binary file not shown.
+26 -22
View File
@@ -3,10 +3,10 @@
# This file is distributed under the same license as the OctoPrint project.
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.9.0\n"
"Project-Id-Version: OctoPrint 1.9.1\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-13 13:14+0200\n"
"PO-Revision-Date: 2023-04-13 13:14+0200\n"
"POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: 2023-06-26 15:06+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
@@ -1863,16 +1863,16 @@ msgstr ""
" noreferer\">Privacy Policy</a> an.\n"
"</p>\n"
#: src/octoprint/plugins/eventmanager/__init__.py:39
#: src/octoprint/plugins/eventmanager/__init__.py:57
#: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager"
msgstr "Eventmanager"
#: src/octoprint/plugins/eventmanager/__init__.py:48
#: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions."
msgstr "Ermöglicht das Verwalten von Eventsubscriptions."
#: src/octoprint/plugins/eventmanager/__init__.py:61
#: src/octoprint/plugins/eventmanager/__init__.py:64
msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren."
@@ -1964,48 +1964,48 @@ msgstr "Analysiere..."
msgid "Ready!"
msgstr "Fertig!"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:694
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:700
#: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size"
msgstr "Modelgröße"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:704
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
msgid "Estimated layer height"
msgstr "Geschätzte Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:707
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:713
#: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm"
msgstr "mm"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:716
msgid "Estimated total print time"
msgstr "Geschätzte Gesamtdauer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:715
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:721
msgid "Layers with extrusion"
msgstr "Layer mit Extrusion"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:748
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
msgid "Layer number"
msgstr "Schichtnummer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height"
msgstr "Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands"
msgstr "GCODE Befehle"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:769
#: src/octoprint/static/js/app/viewmodels/files.js:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament"
msgstr "Filament"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:765
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:771
#: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357
@@ -2015,7 +2015,7 @@ msgstr "Filament"
msgid "Tool"
msgstr "Tool"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:777
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:783
#: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time"
msgstr "Geschätzte Dauer"
@@ -7867,9 +7867,13 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid ""
"Try checking this if the SD card file list loads improperly after "
"connecting to the printer."
msgstr "Deaktiviere das, falls die SD-Karten Dateiliste fehlerhaft geladen wird."
"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."
msgstr ""
"Deaktiviere das, falls die SD-Karten Dateiliste nach Verbindung zum "
"Drucker nicht geladen wird, weil deine Firmware keinen Capability Report "
"bereit stellt."
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
msgid "Blocked commands"
+21 -20
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.9.0rc5.dev4+ge7ee1d804\n"
"Project-Id-Version: OctoPrint 1.9.1.dev7+gc847ed9d1\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-13 13:14+0200\n"
"POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1573,16 +1573,16 @@ msgid ""
"</p>\n"
msgstr ""
#: src/octoprint/plugins/eventmanager/__init__.py:39
#: src/octoprint/plugins/eventmanager/__init__.py:57
#: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager"
msgstr ""
#: src/octoprint/plugins/eventmanager/__init__.py:48
#: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions."
msgstr ""
#: src/octoprint/plugins/eventmanager/__init__.py:61
#: src/octoprint/plugins/eventmanager/__init__.py:64
msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr ""
@@ -1667,48 +1667,48 @@ msgstr ""
msgid "Ready!"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:694
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:700
#: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:704
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
msgid "Estimated layer height"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:707
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:713
#: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:716
msgid "Estimated total print time"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:715
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:721
msgid "Layers with extrusion"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:748
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
msgid "Layer number"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:769
#: src/octoprint/static/js/app/viewmodels/files.js:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:765
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:771
#: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357
@@ -1718,7 +1718,7 @@ msgstr ""
msgid "Tool"
msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:777
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:783
#: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time"
msgstr ""
@@ -6820,8 +6820,9 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid ""
"Try checking this if the SD card file list loads improperly after "
"connecting to the printer."
"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."
msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471