Compare commits

...
Author SHA1 Message Date
dependabot[bot] 25984fd555 Bump actions/setup-python from 4 to 5
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 15:06:15 +00:00
dependabot[bot] a93b4d3972 👷 Bump dessant/lock-threads from 4 to 5 (#4910)
Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 4 to 5.
- [Release notes](https://github.com/dessant/lock-threads/releases)
- [Changelog](https://github.com/dessant/lock-threads/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dessant/lock-threads/compare/v4...v5)

---
updated-dependencies:
- dependency-name: dessant/lock-threads
  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-11-22 17:16:58 +01:00
dependabot[bot] b141f79669 👷 Bump actions/github-script from 6 to 7 (#4909)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6 to 7.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/github-script
  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-11-22 17:15:57 +01:00
Gina Häußge dfe2893049 💸 Update FUNDING.yml
Add ko-fi and liberapay links
2023-10-18 15:05:39 +02:00
Gina Häußge f325791ec6 ⏪ Revert the addition of 3.11.2 to test install matrix 2023-10-12 14:14:35 +02:00
Gina Häußge df257eca83 👷 Fix a typo 2023-10-12 10:47:31 +02:00
Gina Häußge 74990e8ee6 👷 Add bookworm python 3 version to test matrix 2023-10-12 10:46:01 +02:00
Gina Häußge 506648c152 🔖 Preparing release of 1.9.3 2023-10-09 14:32:34 +02:00
Gina Häußge d0072cff89 Merge branch 'bug/gcode_script_vuln' into staging/bugfix 2023-10-09 14:31:21 +02:00
Gina Häußge 2b7c01563f 📌 Pin pydantic to 1.10.12
Solves #4893 by working around pydantic/pydantic#7689
2023-10-09 10:49:37 +02:00
Gina Häußge 7bfd77d9eb Merge branch 'master' into staging/bugfix 2023-10-09 10:19:41 +02:00
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 3bde48a9fb 🔒️ Use sandboxed jinja env for gcode scripts
Without this patch, an attacker with admin rights could configure
a specially crafted GCODE Script to allow for code execution during
rendering of that script. An attacker might use this to extract data
managed by OctoPrint, or manipulate data managed by OctoPrint,
as well as execute arbitrary commands with the rights of the
OctoPrint process on the server system.

Fixes a reported security issue, CVE pending.
2023-08-31 16:35:08 +02:00
Sven Richardsandsrlinux 87bea3c7c0 🐛 Fix extrusion rate not being converted to int (#4860)
Closes  #4849

Co-authored-by: srlinux <{ID}+{username}@users.noreply.github.com>
2023-08-28 16:36:59 +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 c59c161d96 🔖 staging/bugfix is now 1.9.3.dev 2023-07-18 13:24:58 +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
Gina Häußge 93e495f921 🔖 Preparing release of 1.9.0 2023-05-22 15:01:15 +02:00
Gina Häußge 498eeb2faf Merge branch 'rc/maintenance' 2023-05-22 14:02:37 +02:00
Gina Häußge 9ba981a2ea 🔖 Preparing release of 1.9.0rc6 2023-05-08 14:37:06 +02:00
Gina Häußge 600e7ca42b Update README.md
Current master actually also supports Python 3.11
2023-04-25 16:34:54 +02:00
jneilliii ff28dd9f26 🐛 Fix missing event name causing issues on the UI (#4796)
Closes #4795
2023-04-17 17:14:00 +02:00
Gina Häußge 12dd7fbff6 👷 Switch to tag for pypi publish action 2023-04-17 16:45:23 +02:00
Gina Häußge f640542c75 🔖 staging/maintenance is now 1.9.0rc6.dev 2023-04-13 16:24:31 +02:00
Gina Häußge 2596a99a24 🐛 Fix "webcam stream not loaded" display
When we don't have a stream URL configured, we need to
fall back to mjpg stream type to make this show up.
2023-04-13 13:52:21 +02:00
Gina Häußge 17c3e7a875 🔖 Preparing release of 1.9.0rc5 2023-04-13 13:24:42 +02:00
Gina Häußge 10d550466e 🌐 Update translations 2023-04-13 13:22:45 +02:00
Gina Häußge e7ee1d8046 💬 Wording tweak
As suggested by @b-morgan in #4778
2023-04-13 11:33:50 +02:00
Gina Häußge c1b658e374 🐛 Fix webcam view w/ one webcam only
In that case the nav container isn't available, and thus
the attempt to select the first link from that to activate
simply failed silently.

Instead we now check whether the nav container is
even there, and if not just activate the first tab pane.

Closes #4791
2023-04-13 11:31:10 +02:00
Gina Häußge 6cd28614d5 ♻️ Migrate plugin settings tests to pytest
Let's see if that helps against the current instability in CI of
specifically `test_deprecated_forward_getter` under Python 3.11.
2023-04-12 18:02:25 +02:00
Gina Häußge 4ac94e099e 🔖 staging/maintenance is now 1.9.0rc5.dev 2023-04-12 16:05:16 +02:00
dependabot[bot] 0fcb15d875 Bump actions/upload-artifact from 1 to 3 (#4742)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 1 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  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-03-07 10:50:21 +01:00
35 changed files with 535 additions and 474 deletions

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# These are supported funding model platforms # These are supported funding model platforms
github: [foosel] github: [foosel]
ko_fi: OctoPrint
patreon: foosel patreon: foosel
liberapay: foosel
custom: https://octoprint.org/support-octoprint/ custom: https://octoprint.org/support-octoprint/
+2 -2
View File
@@ -71,7 +71,7 @@ body:
required: true required: true
- type: input - type: input
attributes: 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: >- description: >-
Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to 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 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 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). 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 - type: markdown
attributes: attributes:
value: | value: |
+10 -2
View File
@@ -2,9 +2,17 @@ approve_label: "approved"
problem_label: "needs some work" problem_label: "needs some work"
ignore_label: "skip validation" ignore_label: "skip validation"
allowed_targets: ["maintenance", "devel", "staging/maintenance", "staging/devel"] allowed_targets:
["maintenance", "devel", "staging/bugfix", "staging/maintenance", "staging/devel"]
forbidden_sources: forbidden_sources:
["master", "maintenance", "devel", "staging/maintenance", "staging/devel"] [
"master",
"maintenance",
"devel",
"staging/bugfix",
"staging/maintenance",
"staging/devel"
]
labels: labels:
docs: docs:
+12 -12
View File
@@ -11,11 +11,11 @@ jobs:
name: 🔨 Build distribution name: 🔨 Build distribution
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
- name: 🏗 Set up Python 3.7 - name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.7 python-version: 3.7
- name: 🏗 Install build dependencies - name: 🏗 Install build dependencies
@@ -34,9 +34,9 @@ jobs:
name: 🧹 Pre-commit name: 🧹 Pre-commit
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: 🏗 Set up Python 3.7 - name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.7 python-version: 3.7
- name: 🏗 Set up dev dependencies - name: 🏗 Set up dev dependencies
@@ -53,9 +53,9 @@ jobs:
python: ["3.7", "3.8", "3.9", "3.10", "3.11"] python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: 🏗 Set up Python ${{ matrix.python }} - name: 🏗 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
- name: 🏗 Set up test dependencies - name: 🏗 Set up test dependencies
@@ -70,7 +70,7 @@ jobs:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: 🏗 Set up test dependencies - name: 🏗 Set up test dependencies
run: | run: |
npm -g install node-qunit-puppeteer@2.1.0 npm -g install node-qunit-puppeteer@2.1.0
@@ -94,7 +94,7 @@ jobs:
name: dist name: dist
path: dist path: dist
- name: 🏗 Set up Python ${{ matrix.python }} - name: 🏗 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python }} python-version: ${{ matrix.python }}
- name: 🚀 Install wheel - name: 🚀 Install wheel
@@ -112,7 +112,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ⬇ Checkout code - name: ⬇ Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: ⬇ Download build result - name: ⬇ Download build result
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
@@ -121,7 +121,7 @@ jobs:
path: dist path: dist
- name: 🏗 Set up Python 3.7 - name: 🏗 Set up Python 3.7
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.7 python-version: 3.7
@@ -209,7 +209,7 @@ jobs:
name: dist name: dist
path: dist path: dist
- name: 📦 Publish to index - name: 📦 Publish to index
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true continue-on-error: true
with: with:
password: ${{ secrets.testpypi_password }} password: ${{ secrets.testpypi_password }}
@@ -227,7 +227,7 @@ jobs:
name: dist name: dist
path: dist path: dist
- name: 📦 Publish to index - name: 📦 Publish to index
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@release/v1
with: with:
password: ${{ secrets.pypi_password }} password: ${{ secrets.pypi_password }}
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
name: 🔒 Lock issues & PRs closed over a year name: 🔒 Lock issues & PRs closed over a year
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: dessant/lock-threads@v4 - uses: dessant/lock-threads@v5
with: with:
github-token: ${{ github.token }} github-token: ${{ github.token }}
issue-comment: "" issue-comment: ""
+2 -2
View File
@@ -7,7 +7,7 @@ jobs:
issue-automation: issue-automation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
@@ -72,7 +72,7 @@ jobs:
# with: # with:
# repo-token: ${{ secrets.GITHUB_TOKEN }} # repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/github-script@v6 - uses: actions/github-script@v7
env: env:
REMINDER: > REMINDER: >
Hi @${{ github.event.issue.user.login }}! Hi @${{ github.event.issue.user.login }}!
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
linkifyBundles: linkifyBundles:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
+1 -1
View File
@@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ⬇ Checkout - name: ⬇ Checkout
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
fetch-depth: 0 fetch-depth: 0
+1 -1
View File
@@ -12,7 +12,7 @@ jobs:
with: with:
repo-token: "${{ secrets.GITHUB_TOKEN }}" repo-token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/github-script@v6 - uses: actions/github-script@v7
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
script: | script: |
+46 -39
View File
@@ -15,21 +15,63 @@ jobs:
matrix: matrix:
os: ["ubuntu-latest"] os: ["ubuntu-latest"]
python: ["3.7", "3.8", "3.9", "3.10", "3.11"] python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
branch: ["master"] branch: ["master", "release"]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: ⬇ Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
path: src
- name: 🐍 Set up Python ${{ matrix.python }} - name: 🐍 Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: ${{ matrix.python }} 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: with:
ref: ${{ matrix.branch }} ref: ${{ matrix.branch }}
fetch-depth: 0 fetch-depth: 0
path: checkout
- name: 👷 Build and install checkout - name: 👷 Build and install checkout
if: ${{ matrix.branch != 'release' }}
working-directory: checkout
run: | run: |
pip install . 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 - name: 📧 Discord success notification
continue-on-error: true continue-on-error: true
env: env:
@@ -45,38 +87,3 @@ jobs:
uses: Ilshidur/action-discord@master uses: Ilshidur/action-discord@master
with: with:
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed" 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"
+6 -6
View File
@@ -24,15 +24,15 @@ maintenance 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
fix/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev fix/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
improve/.* 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 # so are any bug/... branches
staging/bugfix 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev staging/bugfix 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
bug/.* 1.8.8 8e4c1f5246c4245b839ccdcdabf2beee671b08d7 pep440-dev bug/.* 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.9.0rc4 # staging/maintenance is currently the branch for preparation of 1.9.0rc6
# so is regressionfix/... # so is regressionfix/...
staging/maintenance 1.9.0rc4 ed798e4c6f473ed15bfd8ff583f3913b18ab716c pep440-dev staging/maintenance 1.9.0rc6 2596a99a2497e53e3f73399941bda7822bb1ef6f pep440-dev
regressionfix/.* 1.9.0rc4 ed798e4c6f473ed15bfd8ff583f3913b18ab716c pep440-dev regressionfix/.* 1.9.0rc6 2596a99a2497e53e3f73399941bda7822bb1ef6f pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace) # staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
+1
View File
@@ -176,6 +176,7 @@ date of first contribution):
* [Moiz Rasheed](https://github.com/msrasheed) * [Moiz Rasheed](https://github.com/msrasheed)
* [Scott Martin](https://github.com/smartin015) * [Scott Martin](https://github.com/smartin015)
* [Shyam Sunder](https://github.com/sgsunder) * [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 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 [Daid Braam](https://github.com/daid). Parts of its communication layer and
+6 -7
View File
@@ -10,7 +10,6 @@ thanks to everyone who contributed!
* 3DPrinterOS * 3DPrinterOS
* Al Mucci * Al Mucci
* Ash King * Ash King
* Ben Fritsch
* BigTreeTech * BigTreeTech
* Boris Hussein * Boris Hussein
* Brad Jackson * Brad Jackson
@@ -18,12 +17,12 @@ thanks to everyone who contributed!
* Christian Wolf * Christian Wolf
* Christian Würthner * Christian Würthner
* Christoph Sigrist * Christoph Sigrist
* Creality3D
* DeltaMaker 3D Printers * DeltaMaker 3D Printers
* Dennis Breining * Dennis Breining
* Douglas Floyd * Dima Gorbenko
* Ed Crump * Ed Crump
* Ernesto Martinez * Ernesto Martinez
* Fiberpunk
* Franziska Kunsmann * Franziska Kunsmann
* Hog Duske * Hog Duske
* Jacob Renstrom * Jacob Renstrom
@@ -40,17 +39,17 @@ thanks to everyone who contributed!
* Lachlan Bell * Lachlan Bell
* Lefteris Lertas * Lefteris Lertas
* LulzBot * LulzBot
* Makerbase
* Makespace Madrid * Makespace Madrid
* Mark Greenwald * Mark Greenwald
* Mark Walker * Mark Walker
* Martin Majewski
* Michael Aumock * Michael Aumock
* Michael Badagliacco * Michael Badagliacco
* Mike Labanov
* Mosaic Manufacturing * Mosaic Manufacturing
* Norman Jaffe * Norman Jaffe
* Obico * Obico
* Ory Weaver * Ory Weaver
* Peopoly
* Pete Barnwell * Pete Barnwell
* Raise3D * Raise3D
* Randy C. Will * Randy C. Will
@@ -59,10 +58,10 @@ thanks to everyone who contributed!
* Richard Stocks * Richard Stocks
* Robert Gusek * Robert Gusek
* SimplyPrint * SimplyPrint
* Songyin Zheng
* Stefan Krister * Stefan Krister
* Steve Dougherty * Steve Dougherty
* Steve Thompson * Steve Thompson
* Tideline 3D
* Ulrich Kempken * Ulrich Kempken
and 2025 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! and 1918 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
+3 -3
View File
@@ -36,7 +36,7 @@ SETUP_REQUIRES = []
bundled_plugins = [ bundled_plugins = [
"OctoPrint-FileCheck>=2021.2.23", "OctoPrint-FileCheck>=2021.2.23",
"OctoPrint-FirmwareCheck>=2021.10.11", "OctoPrint-FirmwareCheck>=2021.10.11",
"OctoPrint-PiSupport>=2022.6.13", "OctoPrint-PiSupport>=2023.5.24",
] ]
core_deps = [ core_deps = [
"argon2_cffi>=21.3.0,<22", "argon2_cffi>=21.3.0,<22",
@@ -61,10 +61,10 @@ core_deps = [
"pathvalidate>=2.5.2,<3", "pathvalidate>=2.5.2,<3",
"pkginfo>=1.9.6,<2", "pkginfo>=1.9.6,<2",
"psutil>=5.9.4,<6", "psutil>=5.9.4,<6",
"pydantic>=1.10.7,<2", "pydantic==1.10.12", # to be kept pinned until https://github.com/pydantic/pydantic/issues/7689 is resolved
"pylru>=1.2.1,<2", "pylru>=1.2.1,<2",
"pyserial>=3.5,<4", "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", "requests>=2.28.2,<3",
"sarge==0.1.7.post1", "sarge==0.1.7.post1",
"semantic_version>=2.10.0,<3", "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 # test if we can actually hash and verify, if not we won't use this backend
hash = argon2.hash("test") hash = argon2.hash("test")
argon2.verify("test", hash) assert argon2.verify("test", hash)
password_hashers.append(argon2) password_hashers.append(argon2)
except Exception: except Exception:
+11 -4
View File
@@ -577,7 +577,9 @@ class PluginInfo:
self._version self._version
if self._version is not None if self._version is not None
else self._get_instance_attribute( 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: if self.plugin_folders:
try: try:
added, found = self._find_plugins_from_folders( 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_added.update(added)
result_found += found result_found += found
@@ -1791,7 +1795,10 @@ class PluginManager:
plugin_hooks = plugin.hooks.keys() plugin_hooks = plugin.hooks.keys()
return any( 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 @staticmethod
@@ -2168,7 +2175,7 @@ class PluginManager:
plugin_info = self.get_plugin_info(impl[0], require_enabled=False) plugin_info = self.get_plugin_info(impl[0], require_enabled=False)
return ( return (
sv(sorting_value), sv(sorting_value, default_value=self.default_order),
not plugin_info.bundled if plugin_info else True, not plugin_info.bundled if plugin_info else True,
sv(impl[0]), sv(impl[0]),
) )
@@ -44,7 +44,8 @@ $(function () {
return self.determineWebcamStreamType(self.streamUrlEscaped()); return self.determineWebcamStreamType(self.streamUrlEscaped());
} catch (e) { } catch (e) {
console.error(e); console.error(e);
return "test"; self.webcamError(true);
return "mjpg";
} }
}); });
@@ -18,10 +18,10 @@ from octoprint.util.version import (
) )
SENTRY_URL_SERVER = ( SENTRY_URL_SERVER = (
"https://1af1a737d9684867859b6baec346addd@o118517.ingest.sentry.io/1373987" "https://f723fd2a91da40dbae1148193ea49001@o118517.ingest.sentry.io/1373987"
) )
SENTRY_URL_COREUI = ( SENTRY_URL_COREUI = (
"https://9823e9176ee54cf385e31cbbef50dda7@o118517.ingest.sentry.io/1374096" "https://a115318be6faed605c6bfde4e183b7a0@o118517.ingest.sentry.io/1374096"
) )
SETTINGS_DEFAULTS = { SETTINGS_DEFAULTS = {
@@ -16,6 +16,9 @@ class EventManagerPlugin(
"subscriptions": [], "subscriptions": [],
} }
events = self._settings.global_get(["events"]) events = self._settings.global_get(["events"])
for event in events.get("subscriptions", []):
if "name" not in event:
event["name"] = event["command"]
if events: if events:
my_settings["subscriptions"] = sorted( my_settings["subscriptions"] = sorted(
events.get("subscriptions", []), key=(lambda x: x["event"]) events.get("subscriptions", []), key=(lambda x: x["event"])
@@ -505,14 +505,15 @@ $(function () {
}); });
}; };
self.loadFile = function (path, date, size) { self.loadFile = function (path, date, size, force) {
self.enableReload(false); self.enableReload(false);
self.needsLoad = false; self.needsLoad = false;
if ( if (
self.status === "idle" && self.status === "idle" &&
self.cachedPath !== path && (force ||
self.cachedDate !== date && (self.cachedPath !== path &&
self.cachedSize !== size self.cachedDate !== date &&
self.cachedSize !== size))
) { ) {
self.status = "request"; self.status = "request";
@@ -549,7 +550,12 @@ $(function () {
self.reload = function () { self.reload = function () {
if (!self.enableReload()) return; 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) { self.fromHistoryData = function (data) {
@@ -891,8 +897,11 @@ $(function () {
self.onTabChange = function (current, previous) { self.onTabChange = function (current, previous) {
self.tabActive = current === "#gcode"; self.tabActive = current === "#gcode";
if (self.tabActive && self.needsLoad) { if (self.tabActive && self.needsLoad) {
self.loadFile(self.selectedFile.path(), self.selectedFile.date()), self.loadFile(
self.selectedFile.size(); self.selectedFile.path(),
self.selectedFile.date(),
self.selectedFile.size()
);
} }
}; };
@@ -4,10 +4,18 @@
* Time: 12:18 PM * 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() // raw path suitable for fetch()
var url; var url;
// path relative to Local // path relative to Local
var path; var path;
var firstReport; var firstReport;
var toolOffsets = [{x: 0, y: 0}]; var toolOffsets = [{x: 0, y: 0}];
var g90InfluencesExtruder = false; var g90InfluencesExtruder = false;
@@ -455,7 +463,9 @@ var doParse = async function () {
// if skipUntil is set, get skipUntilPresent // if skipUntil is set, get skipUntilPresent
skipUntilPresent = false; skipUntilPresent = false;
if (skipUntil !== undefined && skipUntil !== "") { if (skipUntil !== undefined && skipUntil !== "") {
result = await fetch("/plugin/gcodeviewer/skipuntilcheck/local/" + path); result = await fetch(
baseUrl + "/plugin/gcodeviewer/skipuntilcheck/local/" + path
);
if (result.ok) { if (result.ok) {
response = await result.json(); response = await result.json();
skipUntilPresent = response.present; skipUntilPresent = response.present;
@@ -904,6 +914,8 @@ var runAnalyze = function (message) {
layerCnt = 0; layerCnt = 0;
speeds = {extrude: [], retract: [], move: []}; speeds = {extrude: [], retract: [], move: []};
speedsByLayer = {extrude: {}, retract: {}, move: {}}; speedsByLayer = {extrude: {}, retract: {}, move: {}};
emptyLayers = [];
percentageByLayer = [];
}; };
var setOption = function (options) { var setOption = function (options) {
@@ -61,7 +61,7 @@ class SoftwareUpdatePlugin(
octoprint.plugin.EventHandlerPlugin, octoprint.plugin.EventHandlerPlugin,
): ):
COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit") 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",) RELEASE_TRACKING_TYPES = ("github_release",)
OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin") OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin")
+1
View File
@@ -666,6 +666,7 @@ class PrinterProfileManager:
("axes", "x", "speed"), ("axes", "x", "speed"),
("axes", "y", "speed"), ("axes", "y", "speed"),
("axes", "z", "speed"), ("axes", "z", "speed"),
("axes", "e", "speed"),
): ):
try: try:
convert_value(profile, path, int) convert_value(profile, path, int)
+1 -1
View File
@@ -182,7 +182,7 @@ class SerialConfig(BaseModel):
waitForStartOnConnect: bool = False waitForStartOnConnect: bool = False
"""Whether OctoPrint should wait for the `start` response from the printer before trying to send commands during connect.""" """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.""" """Specifies whether OctoPrint should wait to load the SD card file list until the first firmware capability report is processed."""
alwaysSendChecksum: bool = False alwaysSendChecksum: bool = False
+4 -3
View File
@@ -593,9 +593,10 @@ class Settings:
return folder return folder
def _init_script_templating(self): def _init_script_templating(self):
from jinja2 import BaseLoader, ChoiceLoader, Environment, TemplateNotFound from jinja2 import BaseLoader, ChoiceLoader, TemplateNotFound
from jinja2.ext import Extension from jinja2.ext import Extension
from jinja2.nodes import Include from jinja2.nodes import Include
from jinja2.sandbox import SandboxedEnvironment
from octoprint.util.jinja import FilteredFileSystemLoader from octoprint.util.jinja import FilteredFileSystemLoader
@@ -664,9 +665,9 @@ class Settings:
def list_templates(self): def list_templates(self):
return self._default.list_templates() return self._default.list_templates()
class RelEnvironment(Environment): class RelEnvironment(SandboxedEnvironment):
def __init__(self, prefix_sep=":", *args, **kwargs): def __init__(self, prefix_sep=":", *args, **kwargs):
Environment.__init__(self, *args, **kwargs) super().__init__(*args, **kwargs)
self._prefix_sep = prefix_sep self._prefix_sep = prefix_sep
def join_path(self, template, parent): def join_path(self, template, parent):
@@ -57,19 +57,20 @@ $(function () {
self._visibleWebcam = undefined; self._visibleWebcam = undefined;
self._dispatchWebcamVisibilityChange = function (target, visible) { self._dispatchWebcamVisibilityChange = function (target, visible) {
log.debug(`Webcam visibility of #${target.id} changed to ${visible}`);
var vm = ko.dataFor(target.children[0]); var vm = ko.dataFor(target.children[0]);
if (vm === self) { if (vm === self) {
console.debug( log.debug(
`VM for webcam #${target.id} is not bound, skipping visibility update` `VM for webcam #${target.id} is not bound, skipping visibility update`
); );
} else if (vm === undefined) { } else if (vm === undefined) {
console.debug( log.debug(
`VM for webcam #${target.id} not found, skipping visibility update` `VM for webcam #${target.id} not found, skipping visibility update`
); );
} else if (typeof vm.onWebcamVisibilityChange === "function") { } else if (typeof vm.onWebcamVisibilityChange === "function") {
vm.onWebcamVisibilityChange(visible); vm.onWebcamVisibilityChange(visible);
} else { } else {
console.debug( log.debug(
`VM for webcam #${target.id} does not declare 'onWebcamVisibilityChange(visible)', skipping visibility update (vm=${vm.constructor.name})` `VM for webcam #${target.id} does not declare 'onWebcamVisibilityChange(visible)', skipping visibility update (vm=${vm.constructor.name})`
); );
} }
@@ -77,6 +78,12 @@ $(function () {
const selectedCameraStorageKey = "core.control.selectedCamera"; const selectedCameraStorageKey = "core.control.selectedCamera";
self.selectDefaultWebcam = function () { self.selectDefaultWebcam = function () {
if (!document.querySelector("#webcam_plugins_container .nav")) {
// we only have one webcam plugin, select that and be done (note: this bypasses local storage)
$("#webcam-group .tab-pane:first").addClass("active");
return;
}
let div = localStorage[selectedCameraStorageKey]; let div = localStorage[selectedCameraStorageKey];
if (!div || document.getElementById(div.slice(1)) === null) { if (!div || document.getElementById(div.slice(1)) === null) {
@@ -116,7 +123,7 @@ $(function () {
var options = { var options = {
root: document.querySelector("#webcam_plugins_container"), root: document.querySelector("#webcam_plugins_container"),
rootMargin: "0px", rootMargin: "0px",
threshold: 1.0 threshold: 0.01
}; };
var callback = function (entries) { var callback = function (entries) {
var visible = entries[0].isIntersecting; var visible = entries[0].isIntersecting;
@@ -463,7 +463,7 @@
<div class="controls"> <div class="controls">
<label class="checkbox"> <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.') }} <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> </label>
</div> </div>
</div> </div>
@@ -32,7 +32,7 @@
<h3>{{ _('Fallback Webcam') }}</h3> <h3>{{ _('Fallback Webcam') }}</h3>
{% trans %}<p> {% trans %}<p>
Select the webcam to fall back to to populate the stream and snapshot URLs on the settings Select the webcam to fall back on to populate the stream and snapshot URLs on the settings
API used by old clients that do not yet utilize the webcam plugin API used by old clients that do not yet utilize the webcam plugin
system introduced in OctoPrint 1.9.0. If the selected webcam does not system introduced in OctoPrint 1.9.0. If the selected webcam does not
provide a snapshot or stream URL, it won't be available on the settings API and thus provide a snapshot or stream URL, it won't be available on the settings API and thus
@@ -3,10 +3,10 @@
# This file is distributed under the same license as the OctoPrint project. # This file is distributed under the same license as the OctoPrint project.
msgid "" msgid ""
msgstr "" 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" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-12 12:02+0200\n" "POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: 2023-04-12 12:02+0200\n" "PO-Revision-Date: 2023-06-26 15:06+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n" "Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n" "Language: de\n"
"Language-Team: de <LL@li.org>\n" "Language-Team: de <LL@li.org>\n"
@@ -1863,16 +1863,16 @@ msgstr ""
" noreferer\">Privacy Policy</a> an.\n" " noreferer\">Privacy Policy</a> an.\n"
"</p>\n" "</p>\n"
#: src/octoprint/plugins/eventmanager/__init__.py:39 #: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:57 #: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager" msgid "Event Manager"
msgstr "Eventmanager" msgstr "Eventmanager"
#: src/octoprint/plugins/eventmanager/__init__.py:48 #: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions." msgid "Allows for the management of event subscriptions."
msgstr "Ermöglicht das Verwalten von Eventsubscriptions." 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." msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren." msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren."
@@ -1964,49 +1964,49 @@ msgstr "Analysiere..."
msgid "Ready!" msgid "Ready!"
msgstr "Fertig!" 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 #: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size" msgid "Model size"
msgstr "Modelgröße" 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" msgid "Estimated layer height"
msgstr "Geschätzte Schichthöhe" 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 #: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm" msgid "mm"
msgstr "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" msgid "Estimated total print time"
msgstr "Geschätzte Gesamtdauer" 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" msgid "Layers with extrusion"
msgstr "Layer mit 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" msgid "Layer number"
msgstr "Schichtnummer" msgstr "Schichtnummer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height" msgid "Layer height"
msgstr "Schichthöhe" msgstr "Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands" msgid "GCODE commands"
msgstr "GCODE Befehle" msgstr "GCODE Befehle"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763 #: 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:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097 #: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament" msgid "Filament"
msgstr "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:171 #: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099 #: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357 #: src/octoprint/static/js/app/viewmodels/printerstate.js:357
#: src/octoprint/static/js/app/viewmodels/temperature.js:147 #: src/octoprint/static/js/app/viewmodels/temperature.js:147
@@ -2015,7 +2015,7 @@ msgstr "Filament"
msgid "Tool" msgid "Tool"
msgstr "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 #: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time" msgid "Estimated print time"
msgstr "Geschätzte Dauer" msgstr "Geschätzte Dauer"
@@ -5252,7 +5252,7 @@ msgstr "Bist Du sicher, dass du die Verbindung zum Drucker trennen willst?"
msgid "Stay Connected" msgid "Stay Connected"
msgstr "Verbunden bleiben" msgstr "Verbunden bleiben"
#: src/octoprint/static/js/app/viewmodels/control.js:177 #: src/octoprint/static/js/app/viewmodels/control.js:183
msgid "Hotend" msgid "Hotend"
msgstr "Hotend" msgstr "Hotend"
@@ -7867,9 +7867,13 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid "" msgid ""
"Try checking this if the SD card file list loads improperly after " "Try unchecking this if the SD card file list never gets loaded after "
"connecting to the printer." "connecting to the printer, due to your firmware not providing a "
msgstr "Deaktiviere das, falls die SD-Karten Dateiliste fehlerhaft geladen wird." "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 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
msgid "Blocked commands" msgid "Blocked commands"
@@ -8309,7 +8313,7 @@ msgstr "Fallback-Webcam"
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:34 #: src/octoprint/templates/dialogs/settings/webcam.jinja2:34
msgid "" msgid ""
"<p>\n" "<p>\n"
" Select the webcam to fall back to to populate the stream and snapshot" " Select the webcam to fall back on to populate the stream and snapshot"
" URLs on the settings\n" " URLs on the settings\n"
" API used by old clients that do not yet utilize the webcam plugin\n" " API used by old clients that do not yet utilize the webcam plugin\n"
" system introduced in OctoPrint 1.9.0. If the selected webcam does not" " system introduced in OctoPrint 1.9.0. If the selected webcam does not"
@@ -8327,21 +8331,22 @@ msgid ""
"</p>" "</p>"
msgstr "" msgstr ""
"<p>\n" "<p>\n"
" Wählt die Webcam aus, die als Fallback für die Stream- und Snapshot-URLs" " Wählt die Webcam aus, die als Fallback für die Stream- und Snapshot-"
" auf der Settings-API verwendet werden soll, die von alten Clients verwendet" "URLs auf der Settings-API verwendet werden soll, die von alten Clients "
" wird, die das neue Webcam-Plugin-System von OctoPrint 1.9.0+ noch nicht unterstützen.\n" "verwendet wird, die das neue Webcam-Plugin-System von OctoPrint 1.9.0+ "
" Falls die ausgewählte Webcam keine Snapshot- oder Stream-URL bereitstellt," "noch nicht unterstützen.\n"
" wird sie nicht auf der Settings-API verfügbar sein und somit auch nicht für" " Falls die ausgewählte Webcam keine Snapshot- oder Stream-URL "
" ältere Clients.\n" "bereitstellt, wird sie nicht auf der Settings-API verfügbar sein und "
"somit auch nicht für ältere Clients.\n"
"</p>\n" "</p>\n"
"<p>\n" "<p>\n"
" Beachte, dass diese Einstellung weder die Webcam-Stream-Optionen in OctoPrints Core-UI" " Beachte, dass diese Einstellung weder die Webcam-Stream-Optionen in "
" beeinflusst, noch die Snapshot-Kamera für Zeitrafferaufnahmen.\n" "OctoPrints Core-UI beeinflusst, noch die Snapshot-Kamera für "
" Sie ist ausschließlich relevant für die Kompatibilitäts-Schicht auf der Settings-API relevant.\n" "Zeitrafferaufnahmen.\n"
" Sie ist ausschließlich relevant für die Kompatibilitäts-Schicht auf "
"der Settings-API relevant.\n"
"</p>" "</p>"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:5 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:5
msgid "" msgid ""
"If you do not wish to change your password, just leave the following " "If you do not wish to change your password, just leave the following "
@@ -9299,11 +9304,17 @@ msgstr "Nicht unterstützt"
msgid "" msgid ""
"\n" "\n"
" <p>\n" " <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam in ihren " " You can make changes to this webcam's configuration in "
"Plugineinstellungen vornehmen, so sie welche hat.\n" "its plugin settings if it provides any.\n"
" </p>\n" " </p>\n"
" " " "
msgstr "" msgstr ""
"\n"
" <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam "
"in ihren Plugineinstellungen vornehmen, so sie welche hat.\n"
" </p>\n"
" "
#: src/octoprint/templates/snippets/settings/webcam/ffmpegBitrate.jinja2:1 #: src/octoprint/templates/snippets/settings/webcam/ffmpegBitrate.jinja2:1
msgid "Bitrate to use for encoding the timelapse video" msgid "Bitrate to use for encoding the timelapse video"
@@ -9407,11 +9418,12 @@ msgid ""
msgstr "" msgstr ""
"\n" "\n"
" <p>\n" " <p>\n"
" Wählt die Webcam aus, die für Timelapse-Snapshots verwendet wird.\n" " Wählt die Webcam aus, die für Timelapse-Snapshots "
"verwendet wird.\n"
" </p>\n" " </p>\n"
" <p>\n" " <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam in ihren " " Du kannst Änderungen an der Konfiguration dieser Webcam "
"Plugineinstellungen vornehmen, so sie welche hat.\n" "in ihren Plugineinstellungen vornehmen, so sie welche hat.\n"
" </p>\n" " </p>\n"
" " " "
@@ -9806,9 +9818,9 @@ msgid ""
"this fixed, get in touch with an administrator of this OctoPrint " "this fixed, get in touch with an administrator of this OctoPrint "
"instance." "instance."
msgstr "" msgstr ""
"Ein funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG fehlen. Setz dich mit einem " "Ein funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG "
"Administrator dieser OctoPrint-Instanz in Verbindung, um das korrigieren " "fehlen. Setz dich mit einem Administrator dieser OctoPrint-Instanz in "
"zu lassen." "Verbindung, um das korrigieren zu lassen."
#: src/octoprint/templates/tabs/timelapse.jinja2:96 #: src/octoprint/templates/tabs/timelapse.jinja2:96
msgid "" msgid ""
@@ -9818,10 +9830,11 @@ msgid ""
"don't want to enable timelapse support you can also just disable it " "don't want to enable timelapse support you can also just disable it "
"there." "there."
msgstr "" msgstr ""
"Eine funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG fehlen. Du kannst beide " "Eine funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG "
"unter \"Einstellungen\" > \"Webcam & Zeitraffer\" und in den Einstellungen des gewählten Webcam-Plugins " "fehlen. Du kannst beide unter \"Einstellungen\" > \"Webcam & Zeitraffer\""
"anpassen. Falls du keine Webcam hast oder Zeitrafferunterstützung nicht einschalten willst, " " und in den Einstellungen des gewählten Webcam-Plugins anpassen. Falls du"
"kannst du beides auch dort abschalten." " keine Webcam hast oder Zeitrafferunterstützung nicht einschalten willst,"
" kannst du beides auch dort abschalten."
#: src/octoprint/templates/tabs/timelapse.jinja2:100 #: src/octoprint/templates/tabs/timelapse.jinja2:100
msgid "Currently configured snapshot (from default webcam)" msgid "Currently configured snapshot (from default webcam)"
@@ -10085,3 +10098,14 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgstr "" #~ msgstr ""
#~ "Erlaubt das Löschen von Zeitrafferaufnahmen" #~ "Erlaubt das Löschen von Zeitrafferaufnahmen"
#~ " und ungerenderten Zeitraffern" #~ " und ungerenderten Zeitraffern"
#~ msgid ""
#~ "\n"
#~ " <p>\n"
#~ " Du kannst Änderungen an "
#~ "der Konfiguration dieser Webcam in ihren"
#~ " Plugineinstellungen vornehmen, so sie "
#~ "welche hat.\n"
#~ " </p>\n"
#~ " "
#~ msgstr ""
+14
View File
@@ -21,3 +21,17 @@ class UserManagerTest(unittest.TestCase):
# should not throw an exception # should not throw an exception
octoprint.access.users.UserManager.create_password_hash(password) 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))
+191 -251
View File
@@ -3,118 +3,76 @@ __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agp
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import unittest
import warnings
from unittest import mock from unittest import mock
from ddt import data, ddt, unpack import pytest
import octoprint.plugin import octoprint.plugin
import octoprint.settings import octoprint.settings
plugin_key = "test_plugin"
defaults = {
"some_raw_key": "some_raw_value",
"some_int_key": 1,
"some_float_key": 2.5,
"some_boolean_key": True,
"preprocessed": {"get": "PreProcessed", "set": "PreProcessed"},
}
get_preprocessors = {"preprocessed": {"get": lambda x: x.upper()}}
set_preprocessors = {"preprocessed": {"set": lambda x: x.lower()}}
@ddt
class SettingsTestCase(unittest.TestCase):
def setUp(self):
warnings.simplefilter("always")
self.plugin_key = "test_plugin" @pytest.fixture()
def settings():
yield mock.create_autospec(octoprint.settings.Settings)
self.settings = mock.create_autospec(octoprint.settings.Settings)
self.defaults = { @pytest.fixture()
"some_raw_key": "some_raw_value", def plugin_settings(settings):
"some_int_key": 1, yield octoprint.plugin.PluginSettings(
"some_float_key": 2.5, settings,
"some_boolean_key": True, plugin_key,
"preprocessed": {"get": "PreProcessed", "set": "PreProcessed"}, defaults=defaults,
} get_preprocessors=get_preprocessors,
set_preprocessors=set_preprocessors,
)
self.get_preprocessors = {"preprocessed": {"get": lambda x: x.upper()}}
self.set_preprocessors = {"preprocessed": {"set": lambda x: x.lower()}} @pytest.mark.parametrize(
"getter, getter_args, getter_kwargs, forwarded",
self.plugin_settings = octoprint.plugin.PluginSettings( [
self.settings, ("get", (["some_raw_key"],), {}, "get"),
self.plugin_key, ("get", (["some_raw_key"],), {"merged": True}, "get"),
defaults=self.defaults, ("get", (["some_raw_key"],), {"asdict": True}, "get"),
get_preprocessors=self.get_preprocessors, ("get", (["some_raw_key"],), {"merged": True, "asdict": True}, "get"),
set_preprocessors=self.set_preprocessors,
)
@data(
(
"get",
(
[
"some_raw_key",
],
),
{},
"get",
),
(
"get",
(
[
"some_raw_key",
],
),
{"merged": True},
"get",
),
(
"get",
(
[
"some_raw_key",
],
),
{"asdict": True},
"get",
),
(
"get",
(
[
"some_raw_key",
],
),
{"merged": True, "asdict": True},
"get",
),
("get_int", (["some_int_key,"],), {}, "getInt"), ("get_int", (["some_int_key,"],), {}, "getInt"),
("get_float", (["some_float_key"],), {}, "getFloat"), ("get_float", (["some_float_key"],), {}, "getFloat"),
( ("get_boolean", (["some_boolean_key"],), {}, "getBoolean"),
"get_boolean", ],
( )
[ def test_forwarded_getter(
"some_boolean_key", plugin_settings, settings, getter, getter_args, getter_kwargs, forwarded
], ):
), method_under_test = getattr(plugin_settings, getter)
{}, assert callable(method_under_test)
"getBoolean",
), method_under_test(*getter_args, **getter_kwargs)
forwarded_method = getattr(settings, forwarded)
forwarded_args = (["plugins", plugin_key] + getter_args[0],)
forwarded_kwargs = getter_kwargs
forwarded_kwargs.update(
{
"defaults": {"plugins": {"test_plugin": defaults}},
"preprocessors": {"plugins": {"test_plugin": get_preprocessors}},
}
) )
@unpack forwarded_method.assert_called_once_with(*forwarded_args, **forwarded_kwargs)
def test_forwarded_getter(self, getter, getter_args, getter_kwargs, forwarded):
method_under_test = getattr(self.plugin_settings, getter)
self.assertTrue(callable(method_under_test))
method_under_test(*getter_args, **getter_kwargs)
forwarded_method = getattr(self.settings, forwarded) @pytest.mark.parametrize(
forwarded_args = (["plugins", self.plugin_key] + getter_args[0],) "getter, getter_args, getter_kwargs, forwarded",
forwarded_kwargs = getter_kwargs [
forwarded_kwargs.update(
{
"defaults": {"plugins": {"test_plugin": self.defaults}},
"preprocessors": {"plugins": {"test_plugin": self.get_preprocessors}},
}
)
forwarded_method.assert_called_once_with(*forwarded_args, **forwarded_kwargs)
@data(
("global_get", (["some_raw_key"],), {}, "get"), ("global_get", (["some_raw_key"],), {}, "get"),
("global_get", (["some_raw_key"],), {"merged": True}, "get"), ("global_get", (["some_raw_key"],), {"merged": True}, "get"),
("global_get", (["some_raw_key"],), {"asdict": True}, "get"), ("global_get", (["some_raw_key"],), {"asdict": True}, "get"),
@@ -122,55 +80,60 @@ class SettingsTestCase(unittest.TestCase):
("global_get_int", (["some_int_key"],), {}, "getInt"), ("global_get_int", (["some_int_key"],), {}, "getInt"),
("global_get_float", (["some_float_key"],), {}, "getFloat"), ("global_get_float", (["some_float_key"],), {}, "getFloat"),
("global_get_boolean", (["some_boolean_key"],), {}, "getBoolean"), ("global_get_boolean", (["some_boolean_key"],), {}, "getBoolean"),
) ],
@unpack )
def test_global_getter(self, getter, getter_args, getter_kwargs, forwarded): def test_global_getter(
method_under_test = getattr(self.plugin_settings, getter) plugin_settings, settings, getter, getter_args, getter_kwargs, forwarded
self.assertTrue(callable(method_under_test)) ):
method_under_test = getattr(plugin_settings, getter)
assert callable(method_under_test)
method_under_test(*getter_args, **getter_kwargs) method_under_test(*getter_args, **getter_kwargs)
forwarded_method = getattr(self.settings, forwarded) forwarded_method = getattr(settings, forwarded)
forwarded_method.assert_called_once_with(*getter_args, **getter_kwargs) forwarded_method.assert_called_once_with(*getter_args, **getter_kwargs)
@data(
@pytest.mark.parametrize(
"deprecated, current, forwarded",
[
("getInt", "get_int", "getInt"), ("getInt", "get_int", "getInt"),
("getFloat", "get_float", "getFloat"), ("getFloat", "get_float", "getFloat"),
("getBoolean", "get_boolean", "getBoolean"), ("getBoolean", "get_boolean", "getBoolean"),
],
)
def test_deprecated_forwarded_getter(
plugin_settings, settings, deprecated, current, forwarded
):
called_method = getattr(settings, forwarded)
# further mock out our mocked function so things work as they should
called_method.__name__ = forwarded
called_method.__qualname__ = forwarded
called_method.__annotations__ = {}
method = getattr(plugin_settings, deprecated)
assert callable(method)
with pytest.warns(
DeprecationWarning, match=f"{deprecated} has been renamed to {current}"
):
method(["some_raw_key"])
called_method.assert_called_once_with(
["plugins", plugin_key, "some_raw_key"],
defaults={"plugins": {"test_plugin": defaults}},
preprocessors={"plugins": {"test_plugin": get_preprocessors}},
) )
@unpack
def test_deprecated_forwarded_getter(self, deprecated, current, forwarded):
with warnings.catch_warnings(record=True) as w:
called_method = getattr(self.settings, forwarded)
# further mock out our mocked function so things work as they should
called_method.__name__ = forwarded
called_method.__qualname__ = forwarded
called_method.__annotations__ = {}
method = getattr(self.plugin_settings, deprecated) @pytest.mark.parametrize(
self.assertTrue(callable(method)) "setter, setter_args, setter_kwargs, forwarded",
method(["some_raw_key"]) [
called_method.assert_called_once_with(
["plugins", self.plugin_key, "some_raw_key"],
defaults={"plugins": {"test_plugin": self.defaults}},
preprocessors={"plugins": {"test_plugin": self.get_preprocessors}},
)
self.assertEqual(1, len(w))
self.assertTrue(issubclass(w[-1].category, DeprecationWarning))
self.assertTrue(
f"{deprecated} has been renamed to {current}" in str(w[-1].message)
)
@data(
( (
"set", "set",
( (
[ ["some_raw_key"],
"some_raw_key",
],
"some_value", "some_value",
), ),
{}, {},
@@ -179,9 +142,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set", "set",
( (
[ ["some_raw_key"],
"some_raw_key",
],
"some_value", "some_value",
), ),
{"force": True}, {"force": True},
@@ -190,9 +151,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_int", "set_int",
( (
[ ["some_int_key"],
"some_int_key",
],
23, 23,
), ),
{}, {},
@@ -201,9 +160,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_int", "set_int",
( (
[ ["some_int_key"],
"some_int_key",
],
23, 23,
), ),
{"force": True}, {"force": True},
@@ -212,9 +169,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_float", "set_float",
( (
[ ["some_float_key"],
"some_float_key",
],
2.3, 2.3,
), ),
{}, {},
@@ -223,9 +178,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_float", "set_float",
( (
[ ["some_float_key"],
"some_float_key",
],
2.3, 2.3,
), ),
{"force": True}, {"force": True},
@@ -234,9 +187,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_boolean", "set_boolean",
( (
[ ["some_boolean_key"],
"some_boolean_key",
],
True, True,
), ),
{}, {},
@@ -245,40 +196,41 @@ class SettingsTestCase(unittest.TestCase):
( (
"set_boolean", "set_boolean",
( (
[ ["some_boolean_key"],
"some_boolean_key",
],
True, True,
), ),
{"force": True}, {"force": True},
"setBoolean", "setBoolean",
), ),
],
)
def test_forwarded_setter(
plugin_settings, settings, setter, setter_args, setter_kwargs, forwarded
):
method_under_test = getattr(plugin_settings, setter)
assert callable(method_under_test)
method_under_test(*setter_args, **setter_kwargs)
forwarded_method = getattr(settings, forwarded)
forwarded_args = (["plugins", plugin_key] + setter_args[0], setter_args[1])
forwarded_kwargs = setter_kwargs
forwarded_kwargs.update(
{
"defaults": {"plugins": {"test_plugin": defaults}},
"preprocessors": {"plugins": {"test_plugin": set_preprocessors}},
}
) )
@unpack forwarded_method.assert_called_once_with(*forwarded_args, **forwarded_kwargs)
def test_forwarded_setter(self, setter, setter_args, setter_kwargs, forwarded):
method_under_test = getattr(self.plugin_settings, setter)
self.assertTrue(callable(method_under_test))
method_under_test(*setter_args, **setter_kwargs)
forwarded_method = getattr(self.settings, forwarded) @pytest.mark.parametrize(
forwarded_args = (["plugins", self.plugin_key] + setter_args[0], setter_args[1]) "setter, setter_args, setter_kwargs, forwarded",
forwarded_kwargs = setter_kwargs [
forwarded_kwargs.update(
{
"defaults": {"plugins": {"test_plugin": self.defaults}},
"preprocessors": {"plugins": {"test_plugin": self.set_preprocessors}},
}
)
forwarded_method.assert_called_once_with(*forwarded_args, **forwarded_kwargs)
@data(
( (
"global_set", "global_set",
( (
[ ["some_raw_key"],
"some_raw_key",
],
"some_value", "some_value",
), ),
{}, {},
@@ -287,9 +239,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set", "global_set",
( (
[ ["some_raw_key"],
"some_raw_key",
],
"some_value", "some_value",
), ),
{"force": True}, {"force": True},
@@ -298,9 +248,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_int", "global_set_int",
( (
[ ["some_int_key"],
"some_int_key",
],
23, 23,
), ),
{}, {},
@@ -309,9 +257,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_int", "global_set_int",
( (
[ ["some_int_key"],
"some_int_key",
],
23, 23,
), ),
{"force": True}, {"force": True},
@@ -320,9 +266,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_float", "global_set_float",
( (
[ ["some_float_key"],
"some_float_key",
],
2.3, 2.3,
), ),
{}, {},
@@ -331,9 +275,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_float", "global_set_float",
( (
[ ["some_float_key"],
"some_float_key",
],
2.3, 2.3,
), ),
{"force": True}, {"force": True},
@@ -342,9 +284,7 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_boolean", "global_set_boolean",
( (
[ ["some_boolean_key"],
"some_boolean_key",
],
True, True,
), ),
{}, {},
@@ -353,89 +293,89 @@ class SettingsTestCase(unittest.TestCase):
( (
"global_set_boolean", "global_set_boolean",
( (
[ ["some_boolean_key"],
"some_boolean_key",
],
True, True,
), ),
{"force": True}, {"force": True},
"setBoolean", "setBoolean",
), ),
) ],
@unpack )
def test_global_setter(self, setter, setter_args, setter_kwargs, forwarded): def test_global_setter(
method_under_test = getattr(self.plugin_settings, setter) plugin_settings, settings, setter, setter_args, setter_kwargs, forwarded
self.assertTrue(callable(method_under_test)) ):
method_under_test = getattr(plugin_settings, setter)
assert callable(method_under_test)
method_under_test(*setter_args, **setter_kwargs) method_under_test(*setter_args, **setter_kwargs)
forwarded_method = getattr(self.settings, forwarded) forwarded_method = getattr(settings, forwarded)
forwarded_method.assert_called_once_with(*setter_args, **setter_kwargs) forwarded_method.assert_called_once_with(*setter_args, **setter_kwargs)
@data(
@pytest.mark.parametrize(
"deprecated, current, forwarded, value",
[
("setInt", "set_int", "setInt", 1), ("setInt", "set_int", "setInt", 1),
("setFloat", "set_float", "setFloat", 2.5), ("setFloat", "set_float", "setFloat", 2.5),
("setBoolean", "set_boolean", "setBoolean", True), ("setBoolean", "set_boolean", "setBoolean", True),
],
)
def test_deprecated_forwarded_setter(
plugin_settings, settings, deprecated, current, forwarded, value
):
called_method = getattr(settings, forwarded)
# further mock out our mocked function so things work as they should
called_method.__name__ = forwarded
called_method.__qualname__ = forwarded
called_method.__annotations__ = {}
method = getattr(plugin_settings, deprecated)
assert callable(method)
with pytest.warns(
DeprecationWarning, match=f"{deprecated} has been renamed to {current}"
):
method(["some_raw_key"], value)
called_method.assert_called_once_with(
["plugins", plugin_key, "some_raw_key"],
value,
defaults={"plugins": {"test_plugin": defaults}},
preprocessors={"plugins": {"test_plugin": set_preprocessors}},
) )
@unpack
def test_deprecated_forwarded_setter(self, deprecated, current, forwarded, value):
with warnings.catch_warnings(record=True) as w:
called_method = getattr(self.settings, forwarded)
# further mock out our mocked function so things work as they should
called_method.__name__ = forwarded
called_method.__qualname__ = forwarded
called_method.__annotations__ = {}
method = getattr(self.plugin_settings, deprecated) def test_global_get_basefolder(plugin_settings, settings):
self.assertTrue(callable(method)) plugin_settings.global_get_basefolder("some_folder")
method(["some_raw_key"], value) settings.getBaseFolder.assert_called_once_with("some_folder")
called_method.assert_called_once_with(
["plugins", self.plugin_key, "some_raw_key"],
value,
defaults={"plugins": {"test_plugin": self.defaults}},
preprocessors={"plugins": {"test_plugin": self.set_preprocessors}},
)
self.assertEqual(1, len(w)) def test_logfile_path(plugin_settings, settings):
self.assertTrue(issubclass(w[-1].category, DeprecationWarning)) import os
self.assertTrue(
f"{deprecated} has been renamed to {current}" in str(w[-1].message)
)
def test_global_get_basefolder(self): settings.getBaseFolder.return_value = "/some/folder"
self.plugin_settings.global_get_basefolder("some_folder")
self.settings.getBaseFolder.assert_called_once_with("some_folder")
def test_logfile_path(self): path = plugin_settings.get_plugin_logfile_path()
import os
self.settings.getBaseFolder.return_value = "/some/folder" settings.getBaseFolder.assert_called_once_with("logs")
assert f"/some/folder/plugin_{plugin_key}.log" == path.replace(os.sep, "/")
path = self.plugin_settings.get_plugin_logfile_path()
self.settings.getBaseFolder.assert_called_once_with("logs") def test_logfile_path_with_postfix(plugin_settings, settings):
self.assertEqual( import os
f"/some/folder/plugin_{self.plugin_key}.log",
path.replace(os.sep, "/"),
)
def test_logfile_path_with_postfix(self): settings.getBaseFolder.return_value = "/some/folder"
import os
self.settings.getBaseFolder.return_value = "/some/folder" path = plugin_settings.get_plugin_logfile_path(postfix="mypostfix")
path = self.plugin_settings.get_plugin_logfile_path(postfix="mypostfix") settings.getBaseFolder.assert_called_once_with("logs")
assert f"/some/folder/plugin_{plugin_key}_mypostfix.log" == path.replace(os.sep, "/")
self.settings.getBaseFolder.assert_called_once_with("logs")
self.assertEqual(
f"/some/folder/plugin_{self.plugin_key}_mypostfix.log",
path.replace(os.sep, "/"),
)
def test_unhandled_method(self): def test_unhandled_method(plugin_settings):
try: with pytest.raises(
self.plugin_settings.some_method("some_parameter") AttributeError, match="Mock object has no attribute 'some_method'"
except AttributeError as e: ):
self.assertTrue("Mock object has no attribute 'some_method'" in str(e)) plugin_settings.some_method("some_parameter")
Binary file not shown.
+72 -48
View File
@@ -3,10 +3,10 @@
# This file is distributed under the same license as the OctoPrint project. # This file is distributed under the same license as the OctoPrint project.
msgid "" msgid ""
msgstr "" 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" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-12 12:02+0200\n" "POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: 2023-04-12 12:02+0200\n" "PO-Revision-Date: 2023-06-26 15:06+0200\n"
"Last-Translator: Gina Häußge <gina@octoprint.org>\n" "Last-Translator: Gina Häußge <gina@octoprint.org>\n"
"Language: de\n" "Language: de\n"
"Language-Team: de <LL@li.org>\n" "Language-Team: de <LL@li.org>\n"
@@ -1863,16 +1863,16 @@ msgstr ""
" noreferer\">Privacy Policy</a> an.\n" " noreferer\">Privacy Policy</a> an.\n"
"</p>\n" "</p>\n"
#: src/octoprint/plugins/eventmanager/__init__.py:39 #: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:57 #: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager" msgid "Event Manager"
msgstr "Eventmanager" msgstr "Eventmanager"
#: src/octoprint/plugins/eventmanager/__init__.py:48 #: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions." msgid "Allows for the management of event subscriptions."
msgstr "Ermöglicht das Verwalten von Eventsubscriptions." 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." msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren." msgstr "Plugin, um Eventsubscriptions in config.yaml zu konfigurieren."
@@ -1964,49 +1964,49 @@ msgstr "Analysiere..."
msgid "Ready!" msgid "Ready!"
msgstr "Fertig!" 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 #: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size" msgid "Model size"
msgstr "Modelgröße" 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" msgid "Estimated layer height"
msgstr "Geschätzte Schichthöhe" 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 #: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm" msgid "mm"
msgstr "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" msgid "Estimated total print time"
msgstr "Geschätzte Gesamtdauer" 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" msgid "Layers with extrusion"
msgstr "Layer mit 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" msgid "Layer number"
msgstr "Schichtnummer" msgstr "Schichtnummer"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height" msgid "Layer height"
msgstr "Schichthöhe" msgstr "Schichthöhe"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands" msgid "GCODE commands"
msgstr "GCODE Befehle" msgstr "GCODE Befehle"
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763 #: 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:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097 #: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament" msgid "Filament"
msgstr "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:171 #: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099 #: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357 #: src/octoprint/static/js/app/viewmodels/printerstate.js:357
#: src/octoprint/static/js/app/viewmodels/temperature.js:147 #: src/octoprint/static/js/app/viewmodels/temperature.js:147
@@ -2015,7 +2015,7 @@ msgstr "Filament"
msgid "Tool" msgid "Tool"
msgstr "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 #: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time" msgid "Estimated print time"
msgstr "Geschätzte Dauer" msgstr "Geschätzte Dauer"
@@ -5252,7 +5252,7 @@ msgstr "Bist Du sicher, dass du die Verbindung zum Drucker trennen willst?"
msgid "Stay Connected" msgid "Stay Connected"
msgstr "Verbunden bleiben" msgstr "Verbunden bleiben"
#: src/octoprint/static/js/app/viewmodels/control.js:177 #: src/octoprint/static/js/app/viewmodels/control.js:183
msgid "Hotend" msgid "Hotend"
msgstr "Hotend" msgstr "Hotend"
@@ -7867,9 +7867,13 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid "" msgid ""
"Try checking this if the SD card file list loads improperly after " "Try unchecking this if the SD card file list never gets loaded after "
"connecting to the printer." "connecting to the printer, due to your firmware not providing a "
msgstr "Deaktiviere das, falls die SD-Karten Dateiliste fehlerhaft geladen wird." "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 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
msgid "Blocked commands" msgid "Blocked commands"
@@ -8309,7 +8313,7 @@ msgstr "Fallback-Webcam"
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:34 #: src/octoprint/templates/dialogs/settings/webcam.jinja2:34
msgid "" msgid ""
"<p>\n" "<p>\n"
" Select the webcam to fall back to to populate the stream and snapshot" " Select the webcam to fall back on to populate the stream and snapshot"
" URLs on the settings\n" " URLs on the settings\n"
" API used by old clients that do not yet utilize the webcam plugin\n" " API used by old clients that do not yet utilize the webcam plugin\n"
" system introduced in OctoPrint 1.9.0. If the selected webcam does not" " system introduced in OctoPrint 1.9.0. If the selected webcam does not"
@@ -8327,21 +8331,22 @@ msgid ""
"</p>" "</p>"
msgstr "" msgstr ""
"<p>\n" "<p>\n"
" Wählt die Webcam aus, die als Fallback für die Stream- und Snapshot-URLs" " Wählt die Webcam aus, die als Fallback für die Stream- und Snapshot-"
" auf der Settings-API verwendet werden soll, die von alten Clients verwendet" "URLs auf der Settings-API verwendet werden soll, die von alten Clients "
" wird, die das neue Webcam-Plugin-System von OctoPrint 1.9.0+ noch nicht unterstützen.\n" "verwendet wird, die das neue Webcam-Plugin-System von OctoPrint 1.9.0+ "
" Falls die ausgewählte Webcam keine Snapshot- oder Stream-URL bereitstellt," "noch nicht unterstützen.\n"
" wird sie nicht auf der Settings-API verfügbar sein und somit auch nicht für" " Falls die ausgewählte Webcam keine Snapshot- oder Stream-URL "
" ältere Clients.\n" "bereitstellt, wird sie nicht auf der Settings-API verfügbar sein und "
"somit auch nicht für ältere Clients.\n"
"</p>\n" "</p>\n"
"<p>\n" "<p>\n"
" Beachte, dass diese Einstellung weder die Webcam-Stream-Optionen in OctoPrints Core-UI" " Beachte, dass diese Einstellung weder die Webcam-Stream-Optionen in "
" beeinflusst, noch die Snapshot-Kamera für Zeitrafferaufnahmen.\n" "OctoPrints Core-UI beeinflusst, noch die Snapshot-Kamera für "
" Sie ist ausschließlich relevant für die Kompatibilitäts-Schicht auf der Settings-API relevant.\n" "Zeitrafferaufnahmen.\n"
" Sie ist ausschließlich relevant für die Kompatibilitäts-Schicht auf "
"der Settings-API relevant.\n"
"</p>" "</p>"
#: src/octoprint/templates/dialogs/usersettings/access.jinja2:5 #: src/octoprint/templates/dialogs/usersettings/access.jinja2:5
msgid "" msgid ""
"If you do not wish to change your password, just leave the following " "If you do not wish to change your password, just leave the following "
@@ -9299,11 +9304,17 @@ msgstr "Nicht unterstützt"
msgid "" msgid ""
"\n" "\n"
" <p>\n" " <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam in ihren " " You can make changes to this webcam's configuration in "
"Plugineinstellungen vornehmen, so sie welche hat.\n" "its plugin settings if it provides any.\n"
" </p>\n" " </p>\n"
" " " "
msgstr "" msgstr ""
"\n"
" <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam "
"in ihren Plugineinstellungen vornehmen, so sie welche hat.\n"
" </p>\n"
" "
#: src/octoprint/templates/snippets/settings/webcam/ffmpegBitrate.jinja2:1 #: src/octoprint/templates/snippets/settings/webcam/ffmpegBitrate.jinja2:1
msgid "Bitrate to use for encoding the timelapse video" msgid "Bitrate to use for encoding the timelapse video"
@@ -9407,11 +9418,12 @@ msgid ""
msgstr "" msgstr ""
"\n" "\n"
" <p>\n" " <p>\n"
" Wählt die Webcam aus, die für Timelapse-Snapshots verwendet wird.\n" " Wählt die Webcam aus, die für Timelapse-Snapshots "
"verwendet wird.\n"
" </p>\n" " </p>\n"
" <p>\n" " <p>\n"
" Du kannst Änderungen an der Konfiguration dieser Webcam in ihren " " Du kannst Änderungen an der Konfiguration dieser Webcam "
"Plugineinstellungen vornehmen, so sie welche hat.\n" "in ihren Plugineinstellungen vornehmen, so sie welche hat.\n"
" </p>\n" " </p>\n"
" " " "
@@ -9806,9 +9818,9 @@ msgid ""
"this fixed, get in touch with an administrator of this OctoPrint " "this fixed, get in touch with an administrator of this OctoPrint "
"instance." "instance."
msgstr "" msgstr ""
"Ein funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG fehlen. Setz dich mit einem " "Ein funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG "
"Administrator dieser OctoPrint-Instanz in Verbindung, um das korrigieren " "fehlen. Setz dich mit einem Administrator dieser OctoPrint-Instanz in "
"zu lassen." "Verbindung, um das korrigieren zu lassen."
#: src/octoprint/templates/tabs/timelapse.jinja2:96 #: src/octoprint/templates/tabs/timelapse.jinja2:96
msgid "" msgid ""
@@ -9818,10 +9830,11 @@ msgid ""
"don't want to enable timelapse support you can also just disable it " "don't want to enable timelapse support you can also just disable it "
"there." "there."
msgstr "" msgstr ""
"Eine funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG fehlen. Du kannst beide " "Eine funktionierende Snapshot-Konfiguration und/oder the Pfad zu FFMPEG "
"unter \"Einstellungen\" > \"Webcam & Zeitraffer\" und in den Einstellungen des gewählten Webcam-Plugins " "fehlen. Du kannst beide unter \"Einstellungen\" > \"Webcam & Zeitraffer\""
"anpassen. Falls du keine Webcam hast oder Zeitrafferunterstützung nicht einschalten willst, " " und in den Einstellungen des gewählten Webcam-Plugins anpassen. Falls du"
"kannst du beides auch dort abschalten." " keine Webcam hast oder Zeitrafferunterstützung nicht einschalten willst,"
" kannst du beides auch dort abschalten."
#: src/octoprint/templates/tabs/timelapse.jinja2:100 #: src/octoprint/templates/tabs/timelapse.jinja2:100
msgid "Currently configured snapshot (from default webcam)" msgid "Currently configured snapshot (from default webcam)"
@@ -10086,3 +10099,14 @@ msgstr "Zeitrafferaufnahme rendern"
#~ "Erlaubt das Löschen von Zeitrafferaufnahmen" #~ "Erlaubt das Löschen von Zeitrafferaufnahmen"
#~ " und ungerenderten Zeitraffern" #~ " und ungerenderten Zeitraffern"
#~ msgid ""
#~ "\n"
#~ " <p>\n"
#~ " Du kannst Änderungen an "
#~ "der Konfiguration dieser Webcam in ihren"
#~ " Plugineinstellungen vornehmen, so sie "
#~ "welche hat.\n"
#~ " </p>\n"
#~ " "
#~ msgstr ""
+24 -23
View File
@@ -6,9 +6,9 @@
#, fuzzy #, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: OctoPrint 1.9.0rc4.dev14+g8baf2c3f4.dirty\n" "Project-Id-Version: OctoPrint 1.9.1.dev7+gc847ed9d1\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n" "Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2023-04-12 12:02+0200\n" "POT-Creation-Date: 2023-06-26 15:06+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1573,16 +1573,16 @@ msgid ""
"</p>\n" "</p>\n"
msgstr "" msgstr ""
#: src/octoprint/plugins/eventmanager/__init__.py:39 #: src/octoprint/plugins/eventmanager/__init__.py:42
#: src/octoprint/plugins/eventmanager/__init__.py:57 #: src/octoprint/plugins/eventmanager/__init__.py:60
msgid "Event Manager" msgid "Event Manager"
msgstr "" msgstr ""
#: src/octoprint/plugins/eventmanager/__init__.py:48 #: src/octoprint/plugins/eventmanager/__init__.py:51
msgid "Allows for the management of event subscriptions." msgid "Allows for the management of event subscriptions."
msgstr "" 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." msgid "Plugin to configure event subscriptions available in config.yaml."
msgstr "" msgstr ""
@@ -1667,49 +1667,49 @@ msgstr ""
msgid "Ready!" msgid "Ready!"
msgstr "" 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 #: src/octoprint/static/js/app/viewmodels/files.js:1066
msgid "Model size" msgid "Model size"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:704 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710
msgid "Estimated layer height" msgid "Estimated layer height"
msgstr "" 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 #: src/octoprint/templates/tabs/timelapse.jinja2:69
msgid "mm" msgid "mm"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:710 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:716
msgid "Estimated total print time" msgid "Estimated total print time"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:715 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:721
msgid "Layers with extrusion" msgid "Layers with extrusion"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:748 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754
msgid "Layer number" msgid "Layer number"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:749 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:755
msgid "Layer height" msgid "Layer height"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:750 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:756
msgid "GCODE commands" msgid "GCODE commands"
msgstr "" msgstr ""
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:754 #: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:760
#: src/octoprint/plugins/gcodeviewer/static/js/gcodeviewer.js:763 #: 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:1081
#: src/octoprint/static/js/app/viewmodels/files.js:1097 #: src/octoprint/static/js/app/viewmodels/files.js:1097
msgid "Filament" msgid "Filament"
msgstr "" 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:171 #: src/octoprint/static/js/app/viewmodels/control.js:177
#: src/octoprint/static/js/app/viewmodels/files.js:1099 #: src/octoprint/static/js/app/viewmodels/files.js:1099
#: src/octoprint/static/js/app/viewmodels/printerstate.js:357 #: src/octoprint/static/js/app/viewmodels/printerstate.js:357
#: src/octoprint/static/js/app/viewmodels/temperature.js:147 #: src/octoprint/static/js/app/viewmodels/temperature.js:147
@@ -1718,7 +1718,7 @@ msgstr ""
msgid "Tool" msgid "Tool"
msgstr "" 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 #: src/octoprint/static/js/app/viewmodels/files.js:1109
msgid "Estimated print time" msgid "Estimated print time"
msgstr "" msgstr ""
@@ -4521,7 +4521,7 @@ msgstr ""
msgid "Stay Connected" msgid "Stay Connected"
msgstr "" msgstr ""
#: src/octoprint/static/js/app/viewmodels/control.js:177 #: src/octoprint/static/js/app/viewmodels/control.js:183
msgid "Hotend" msgid "Hotend"
msgstr "" msgstr ""
@@ -6820,8 +6820,9 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:466
msgid "" msgid ""
"Try checking this if the SD card file list loads improperly after " "Try unchecking this if the SD card file list never gets loaded after "
"connecting to the printer." "connecting to the printer, due to your firmware not providing a "
"capability report."
msgstr "" msgstr ""
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471 #: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:471
@@ -7178,7 +7179,7 @@ msgstr ""
#: src/octoprint/templates/dialogs/settings/webcam.jinja2:34 #: src/octoprint/templates/dialogs/settings/webcam.jinja2:34
msgid "" msgid ""
"<p>\n" "<p>\n"
" Select the webcam to fall back to to populate the stream and snapshot" " Select the webcam to fall back on to populate the stream and snapshot"
" URLs on the settings\n" " URLs on the settings\n"
" API used by old clients that do not yet utilize the webcam plugin\n" " API used by old clients that do not yet utilize the webcam plugin\n"
" system introduced in OctoPrint 1.9.0. If the selected webcam does not" " system introduced in OctoPrint 1.9.0. If the selected webcam does not"