Compare commits
49
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25984fd555 | ||
|
|
a93b4d3972 | ||
|
|
b141f79669 | ||
|
|
dfe2893049 | ||
|
|
f325791ec6 | ||
|
|
df257eca83 | ||
|
|
74990e8ee6 | ||
|
|
506648c152 | ||
|
|
d0072cff89 | ||
|
|
2b7c01563f | ||
|
|
7bfd77d9eb | ||
|
|
5ca7f07cb7 | ||
|
|
25d9c44d55 | ||
|
|
3bde48a9fb | ||
|
|
87bea3c7c0 | ||
|
|
ed4a2646fb | ||
|
|
c59c161d96 | ||
|
|
f027aaa730 | ||
|
|
cf86f08d04 | ||
|
|
c4fab1b7e6 | ||
|
|
fd1c6b2e7d | ||
|
|
b366ab4653 | ||
|
|
ed4db2453e | ||
|
|
1d519a2170 | ||
|
|
584483a23a | ||
|
|
d08393d450 | ||
|
|
c847ed9d13 | ||
|
|
fb75e911e6 | ||
|
|
e3c09568fd | ||
|
|
9d94889a45 | ||
|
|
da3ab33a0a | ||
|
|
b0a1884982 | ||
|
|
2397867d28 | ||
|
|
0753c1ef6f | ||
|
|
93e495f921 | ||
|
|
498eeb2faf | ||
|
|
9ba981a2ea | ||
|
|
600e7ca42b | ||
|
|
ff28dd9f26 | ||
|
|
12dd7fbff6 | ||
|
|
f640542c75 | ||
|
|
2596a99a24 | ||
|
|
17c3e7a875 | ||
|
|
10d550466e | ||
|
|
e7ee1d8046 | ||
|
|
c1b658e374 | ||
|
|
6cd28614d5 | ||
|
|
4ac94e099e | ||
|
|
0fcb15d875 |
No files matched your search
@@ -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/
|
||||||
@@ -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: |
|
||||||
|
|||||||
@@ -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
@@ -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 }}
|
||||||
|
|
||||||
|
|||||||
@@ -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: ""
|
||||||
|
|||||||
@@ -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 }}!
|
||||||
|
|||||||
@@ -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: |
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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: |
|
||||||
|
|||||||
@@ -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
@@ -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
|
||||||
|
|||||||
@@ -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
@@ -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)!
|
||||||
@@ -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",
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
@@ -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")
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Binary file not shown.
@@ -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 ""
|
||||||
@@ -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
@@ -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.
@@ -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
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user