Compare commits

...
62 Commits
Author SHA1 Message Date
Gina Häußge 73f7c4d8a1 🔖 Preparing release of 1.4.0rc5 2020-02-10 17:02:07 +01:00
Gina Häußge 10079b8d9d 🐛 PGMR: Fix UI representation of incompatible plugins
Second part of fixing #3442
2020-02-04 15:53:56 +01:00
Gina Häußge c31566a626 🐛 Fix incompatible plugins to be marked as compatible
First part of fixing #3442
2020-02-04 15:52:53 +01:00
Gina Häußge 0cfc7a2976 Merge remote-tracking branch 'origin/staging/maintenance' into staging/maintenance 2020-02-04 13:17:11 +01:00
Gina Häußge de5a10163e 🐛 Reintroduce message backlog on socket
Was present in forcelogin and made sure that plugins triggering a
message on the socket immediately after connect would get through right
after auth.

Without this a lot of plugins out there run into issues, so this is a
backwards compatibility fix for a regression in 1.4.x.

See also #3400
2020-02-04 13:15:44 +01:00
Gina Häußge 0a22c4e66c ♻ Fix a duplicated line of code 2020-01-31 14:28:27 +01:00
Gina Häußge a88d95af77 🐛 Fix autologin
We need to actually try to identify the user just like we used to do
with the forcelogin plugin. Just checking permissions will only work
if we already have a session.

Closes #3434
2020-01-29 11:37:07 +01:00
Gina Häußge 010221ab5b 🐛 Fix handling of unset remote addresses 2020-01-29 11:35:56 +01:00
Gina Häußge 6471a04a86 staging/maintenance is now 1.4.0rc5.dev
And maintenance is now 1.4.1.dev
2020-01-28 15:16:19 +01:00
Gina Häußge 7b2762c590 🐛 Remove accidentally commited debug statement 2020-01-27 18:06:02 +01:00
Gina Häußge de0b97b99c 🐛 Fix first run setup 2020-01-27 17:32:52 +01:00
Gina Häußge 60d2bd1ac1 🔖 Preparing release of 1.4.0rc4 2020-01-27 15:51:27 +01:00
Gina Häußge 4d716647e5 🐛 Fix socket connect timeout handling
Was triggering even though it should have been cleared due to a
self vs this issue.

Also protect against undefined connection deferred.
2020-01-27 15:03:18 +01:00
Gina Häußge 43ab47a260 ✨ pi support: Permission check for API endpoint 2020-01-27 13:46:09 +01:00
Gina Häußge 88ecfbdb65 🐛 Fix another py2 vs 3 issue
Closes #3431
2020-01-27 11:58:17 +01:00
Gina Häußge 8087967683 🐛 Fix behaviour when page cached & server down
E.g. in Firefox reopen tab while server is down - FF will use a cached
copy and for some reason sockjs won't notice that stuff is down. So now
we have a timeout of 5s for initial connection that takes care of that.
2020-01-24 16:54:52 +01:00
Gina Häußge cb43197105 🐛 Fix endpoint in docs 2020-01-24 13:08:10 +01:00
Gina Häußge b1b9329614 ♻ Move /api/access/user to /api/currentuser
Update documentation accordingly.

See also #3418
2020-01-24 13:05:06 +01:00
Gina Häußge 7317814ce0 📝 Document needed permissions & fix some stuff 2020-01-23 13:21:52 +01:00
Gina Häußge 66ef7b66bb 📝 Documentation for the access API 2020-01-22 18:39:32 +01:00
Gina Häußge be3ff5f043 ✨ API endpoint to retrieve info about current user
As suggested by @fieldOfView.

Implements #3418
2020-01-22 14:58:29 +01:00
Gina Häußge c36fa6da90 🐛 Fix readonly group permissions
Those were accidentally stripped.
2020-01-22 14:55:35 +01:00
Gina Häußge aadcf650c7 🐛 Fix UI caching again
Was broken by 3f3cb556a7 in between server
restarts due to the wrong stuff being fetched by the preemptive cache.
2020-01-21 17:26:45 +01:00
Gina Häußge 95c3fa0b04 🐛 Readd requires line that somehow got missing
Addendum to 3f3cb556a7

Closes #3425
2020-01-21 16:03:48 +01:00
Gina Häußge 1d0829a1db 🐛 Introduce ClientAuthed event
May act as entry point for any kind of push messages a plugin might
wish to send to the client after a connect happened. Since depending
on the current permission configuration this might only be possible
once the client has authenticated on the socket, this is required.

Should close #3400
2020-01-21 15:53:52 +01:00
Gina Häußge 8d31d6687e 🐛 Also trigger login dialog eval on permission change
Not just on logout.

Follow-up to #3425
2020-01-21 15:00:20 +01:00
Gina Häußge 3f3cb556a7 🐛 Fix guest access to settings
Needed its own permission, which in turn needed some changes in how the
whole "guest without read permission" situation is handled. I've
reintroduced a custom login view since the main UI would not be able
to fully load up without settings access. Said login view will override
the default UI view if the account in question does not have
Permissions.STATUS and also Permissions.SETTINGS_READ. It pretty much is
the forcelogin plugin from 1.3.x.

Closes #3425
2020-01-21 14:49:46 +01:00
Gina Häußge 4460c8bee0 🐛 env needs to be native strings
So, bytes under py2 and unicode under py3.

Closes #3428
2020-01-20 13:36:02 +01:00
Gina Häußge 89b597a656 🐛 Fix remember me checkbox
Closes #3426
2020-01-17 16:34:13 +01:00
Gina Häußge e1a25a8913 🐛 Fix caching issue for freshly rendered timelapses
Closes #3396
2020-01-16 12:13:38 +01:00
Gina Häußge 482c2f7115 🐛 Fix timelapse progress under Py3
Closes #3409
2020-01-15 16:53:54 +01:00
Gina Häußge 7fa4ebd1ec Merge pull request #3414 from fieldOfView/fix_allows_multiple_needs
Fix checking against multiple Needs on OctoPrintPermission
2020-01-14 12:44:18 +01:00
Gina Häußge 9c3b552aa8 🔥 Remove unused leftover code 2020-01-14 11:24:22 +01:00
Gina Häußge 3229e65a8d ♻ Remove assumptions about UI from permission model
Implements #3419
2020-01-14 11:22:54 +01:00
fieldOfView 7191d39b51 Fix multiple Needs on OctoPrintPermission
fixes #3398
2020-01-03 08:41:59 -08:00
Gina Häußge 58bc5171ee ✏ Adjusted plugin tutorial for py3 2019-12-13 13:43:29 +01:00
Gina Häußge 74f3bc9ae6 🔖 staging/devel is now 1.4.0rc4.dev 2019-12-12 15:01:53 +01:00
Gina Häußge 464d9c0757 🔖 Preparing release of 1.4.0rc3 2019-12-12 13:00:35 +01:00
Gina Häußge 94ae90ab80 ♻ Cleaned up a pre-py3 leftover comment 2019-12-12 12:43:45 +01:00
Gina Häußge 33b89550a4 🐛 Fix a unicode issue under win32
subprocess env must not contain unicode strings but could now after some
py3 related refactorings.
2019-12-12 12:43:13 +01:00
Gina Häußge 9661469532 🐛 Fix some permission bindings
Closes #3388
2019-12-11 15:01:57 +01:00
Gina Häußge b06c222a7d 🐛 Fix checksum calculation in stk500v2 under py3
See #3382
2019-12-11 10:50:40 +01:00
Gina Häußge 9f85b54681 🐛 Convert decoded header to unicode
See #3382
2019-12-11 10:28:32 +01:00
Gina Häußge 5d1ad5d75d 🐛 Add blinker dependency for flask_principal
Was forgotten in 928d62a517
2019-12-10 16:35:07 +01:00
Gina Häußge dc32f955b7 🐛 Fix forwarding of HTTPExceptions on SimpleApiPlugins
Part of #3375
2019-12-10 16:16:40 +01:00
Gina Häußge 220592c267 🐛 IspError should be a proper Exception
Otherwise our try-catch-blocks won't catch it anymore.
2019-12-10 12:56:23 +01:00
Gina Häußge 0faa6879b4 ☂ Resilience against issue in Printoid
Closes #3381
2019-12-10 12:55:47 +01:00
Gina Häußge 71b5de91bf 🐛 Fix 403 response
Dumping string representations of the permission objects doesn't make
sense, and neither does rewriting the error description in the first
place.
2019-12-09 19:06:53 +01:00
Gina Häußge 928d62a517 ♻ Vendoring flask_principal
It no longer seems to be maintained and there's an issue in the code
we need fixed.
2019-12-09 19:06:52 +01:00
Gina Häußge 78bd3b1a52 🐛 "remember" does not need to be set on session
Be able to deal with that.

Follow up to #3370
2019-12-09 19:06:51 +01:00
Gina Häußge b9bab0577b ♻ Remove monkey patch that's no longer needed 2019-12-09 17:32:31 +01:00
Gina Häußge c41551a643 🐛 Fix wrong handling of session protection signal
We should only clear out the identity when the session has actually
been deemed deleted, not just on staleness due to e.g. a client IP
change.

Closes #3370
2019-12-09 17:31:53 +01:00
Gina Häußge 6c92dd1303 🐛 PNotify needs position:fixed
Closes #3377
2019-12-09 14:19:16 +01:00
Gina Häußge 124f01ca2d 🐛 py3: ensure an int as rolling window size
Closes #3371
2019-12-06 13:40:03 +01:00
Gina Häußge 0dece85fa7 🐛 Fix notifications being visible w/ needed login 2019-12-04 15:24:08 +01:00
Gina Häußge caebf90ee9 🐛 Fix short UI flicker before loading animation 2019-12-04 14:37:16 +01:00
Gina Häußge 0c77014903 ☔ Make sure js/css mime types are always correct
Even if we are running on windows and something is borked in the
registry...

Closes #3367
2019-12-03 18:03:11 +01:00
Gina Häußge 231a796200 ☔ Limit legal plugin permission keys 2019-12-03 17:26:29 +01:00
Gina Häußge fe755405e8 📝 Add docs for octoprint.access.permissions hook
As mentioned in #3365
2019-12-03 17:14:00 +01:00
Gina Häußge 2200f2186c 🐛 Fix permissions of global API key
Closes #3365
2019-12-03 14:55:32 +01:00
Gina Häußge b57b7cb606 🐛 appkeys: fix key gen under Python 2
And refactor key generation to be located in ONE central utility method
to avoid issues like that in the future.

Closes #3366
2019-12-03 12:56:14 +01:00
Gina Häußge f2b2496e58 🔖 staging/devel is now 1.4.0rc3.dev 2019-12-02 16:23:02 +01:00
77 changed files with 2741 additions and 1131 deletions

No files matched your search

+9 -9
View File
@@ -18,19 +18,19 @@ prerelease
HEAD
\(detached.*
# maintenance is currently the branch for preparation of maintenance release 1.3.13
# maintenance is currently the branch for preparation of maintenance release 1.4.1
# so are any fix/... and improve/... branches
maintenance 1.3.13 2a42f02aecaedf2c55579984e0bc94e44402cc15 pep440-dev
fix/.* 1.3.13 2a42f02aecaedf2c55579984e0bc94e44402cc15 pep440-dev
improve/.* 1.3.13 2a42f02aecaedf2c55579984e0bc94e44402cc15 pep440-dev
maintenance 1.4.1 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
fix/.* 1.4.1 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
improve/.* 1.4.1 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.3.12rc4
# staging/maintenance is currently the branch for preparation of 1.4.0rc5
# so is regressionfix/...
staging/maintenance 1.3.12rc4 a70a45f062687beb510fb3192e4227754e1dff39 pep440-dev
regressionfix/.* 1.3.12rc4 a70a45f062687beb510fb3192e4227754e1dff39 pep440-dev
staging/maintenance 1.4.0rc5 7b2762c5904595111b77f6e5dda283663b6e325f pep440-dev
regressionfix/.* 1.4.0rc5 7b2762c5904595111b77f6e5dda283663b6e325f pep440-dev
# staging/devel is currently the branch for preparation of 1.4.0rc2
staging/devel 1.4.0rc2 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
# staging/devel is currently the branch for preparation of 1.4.0rc5
staging/devel 1.4.0rc5 7b2762c5904595111b77f6e5dda283663b6e325f pep440-dev
# every other branch is a development branch and thus gets resolved to 1.5.0-dev for now
.* 1.5.0 2da7aa358d950b4567aaab8f18d6b5779193e077 pep440-dev
+13 -10
View File
@@ -6,57 +6,60 @@ thanks to everyone who contributed!
## Patreon Patrons
* Andre Bubel
* Andrew Moorby
* ANTONIO AUGUSTO DE LIMA PONTES
* Arnljot Arntsen
* BigTreeTech
* Boris Hussein
* Brad Jackson
* Christian Petropolis
* Christian Wolf
* COLLE+McVOY
* D Brian Kimmel
* DeltaMaker 3D Printers
* Dennis Breining
* Dorian Gray
* E3D BigBox
* Eric Betts
* Ernesto Martinez
* Franziska Kunsmann
* GadgetAngel
* George Robles
* Greg Holloway
* Hugh Blemings
* jean-claude migneault
* Jeff Renfer
* Jeremiah Avery
* John Robinson (JRo)
* Joshua Wills
* Justin Kaufman
* Kaile Riser
* Kale Stedman
* Kazuhiro Ogura
* Kenneth Jiang
* Kurt Wubbels
* Kyle Menigoz
* LA 3D Printer Repair
* Lee Dohm
* LulzBot®
* Makespace Madrid
* Mark Walker
* Martin Majewski
* Michael Aumock
* Miles Flavel
* Mosaic Manufacturing
* OMER MEHMET SUTAS
* Neil R. Goldberg
* Patrick Glyré
* Patrick McGinnis
* Prof Yuh Wen Chen
* Randy C. Will
* Ranjib Dey
* Richard Michaud
* Rigid3D
* Robert Gusek
* Samer Najia
* Ronald Griehsler
* Sacha Telgenhof
* sghnsk
* Shawn Lewis
* Simon Hallam
* Stefan Krister
* Sven Mueller
* Trent Shumay
* Ulrich Kempken
* Vladislav Kuzemchik
and 1653 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
and 1746 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
+529
View File
@@ -0,0 +1,529 @@
.. _sec-api-access:
**************
Access control
**************
.. contents::
.. _sec-api-access-permissions:
Permissions
===========
.. _sec-api-access-permissions-list:
List all permissions
--------------------
.. http:get:: /api/access/permissions
Retrieves all permissions available in the system.
Will return a :http:statuscode:`200` with a :ref:`permission list <sec-api-access-datamodel-permissions-list>`
as body.
:status 200: No error
.. _sec-api-access-groups:
Groups
======
.. _sec-api-access-groups-list:
Get group list
--------------
.. http:get:: /api/access/groups
Retrieves all groups registered in the system.
Will return a :http:statuscode:`200` with a :ref:`group list <sec-api-access-datamodel-groups-list>`
as body.
Requires the ``SETTINGS`` permission.
:status 200: No error
.. _sec-api-access-groups-add:
Add a new group
---------------
.. http:post:: /api/access/groups
Adds a new group to the system.
Expects a :ref:`group registration request <sec-api-access-datamodel-groups-addgrouprequest>` as request body.
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
Requires the ``SETTINGS`` permission.
:json key: The group's identifier
:json name: The user's name
:json description: A human readable description of the group
:json permissions: The permissions to assign to the group
:json subgroups: Subgroups assigned to the group
:json default: Whether the group should be assigned to new users by default or not
:status 200: No error
:status 400: If any of the mandatory fields is missing or the request is otherwise
invalid
:status 409: A group with the provided key does already exist
.. _sec-api-access-groups-retrieve:
Retrieve a group
----------------
.. http:get:: /api/access/groups/(string:key)
Retrieves an individual group record.
Will return a :http:statuscode:`200` with a :ref:`group record <sec-api-access-datamodel-groups-grouprecord>`
as body.
Requires the ``SETTINGS`` permission.
:status 200: No error
.. _sec-api-access-groups-modify:
Update a group
--------------
.. http:put:: /api/access/groups/(string:key)
Updates an existing group.
Expects a :ref:`group update request <sec-api-access-datamodel-groups-updategrouprequest>` as request body.
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
Requires the ``SETTINGS`` permission.
:json description: A human readable description of the group
:json permissions: The permissions to assign to the group
:json subgroups: Subgroups assigned to the group
:json default: Whether the group should be assigned to new users by default or not
:status 200: No error
:status 400: If any of the mandatory fields is missing or the request is otherwise
invalid
.. _sec-api-access-groups-delete:
Delete a group
--------------
.. http:delete:: /api/access/groups/(string:key)
Deletes a group.
Will return a :ref:`group list response <sec-api-access-datamodel-groups-list>` on success.
Requires the ``SETTINGS`` permission.
:status 200: No error
.. _sec-api-access-users:
Users
=====
.. _sec-api-access-users-list:
Retrieve a list of users
========================
.. http:get:: /api/access/users
Retrieves a list of all registered users in OctoPrint.
Will return a :http:statuscode:`200` with a :ref:`user list response <sec-api-access-datamodel-users-userlistresponse>`
as body.
Requires the ``SETTINGS`` permission.
:status 200: No error
.. _sec-api-access-users-retrieve:
Retrieve a user
---------------
.. http:get:: /api/access/users/(string:username)
Retrieves information about a user.
Will return a :http:statuscode:`200` with a :ref:`user record <sec-api-access-datamodel-users-userrecord>`
as body.
Requires either the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user which to retrieve
:status 200: No error
:status 404: Unknown user
.. _sec-api-access-users-add:
Add a new user
--------------
.. http:post:: /api/access/users
Adds a user to OctoPrint.
Expects a :ref:`user registration request <sec-api-access-datamodel-users-adduserrequest>`
as request body.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
Requires the ``SETTINGS`` permission.
:json name: The user's name
:json password: The user's password
:json active: Whether to activate the account (true) or not (false)
:json admin: Whether to give the account admin rights (true) or not (false)
:status 200: No error
:status 400: If any of the mandatory fields is missing or the request is otherwise
invalid
:status 409: A user with the provided name does already exist
.. _sec-api-access-users-modify:
Update a user
-------------
.. http:put:: /api/access/users/(string:username)
Updates a user record.
Expects a :ref:`user update request <sec-api-access-datamodel-users-updateuserrequest>`
as request body.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
Requires the ``SETTINGS`` permission.
:param username: Name of the user to update
:json admin: Whether to mark the user as admin (true) or not (false), can be left out (no change)
:json active: Whether to mark the account as activated (true) or deactivated (false), can be left out (no change)
:status 200: No error
:status 404: Unknown user
.. _sec-api-access-users-delete:
Delete a user
-------------
.. http:delete:: /api/access/users/(string:username)
Delete a user record.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-access-users-list>`.
Requires the ``SETTINGS`` permission.
:param username: Name of the user to delete
:status 200: No error
:status 404: Unknown user
.. _sec-api-access-users-password:
Change a user's password
------------------------
.. http:put:: /api/access/users/(string:username)/password
Changes the password of a user.
Expects a JSON object with a single property ``password`` as request body.
Requires the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user to change the password for
:json password: The new password to set
:status 200: No error
:status 400: If the request doesn't contain a ``password`` property or the request
is otherwise invalid
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-access-users-settings-get:
Get a user's settings
---------------------
.. http:get:: /api/access/users/(string:username)/settings
Retrieves a user's settings.
Will return a :http:statuscode:`200` with a JSON object representing the user's
personal settings (if any) as body.
Requires the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 200: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-access-users-settings-set:
Update a user's settings
------------------------
.. http:patch:: /api/access/users/(string:username)/settings
Updates a user's settings.
Expects a new settings JSON object to merge with the current settings as
request body.
Requires the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 204: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-access-users-apikey-generate:
Regenerate a user's api key
---------------------------
.. http:post:: /api/access/users/(string:username)/apikey
Generates a new API key for the user.
Does not expect a body. Will return the generated API key as ``apikey``
property in the JSON object contained in the response body.
Requires the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 200: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-access-users-apikey-delete:
Delete a user's api key
-----------------------
.. http:delete:: /api/access/users/(string:username)/apikey
Deletes a user's personal API key.
Requires the ``SETTINGS`` permission or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 204: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-access-datamodel:
Data model
==========
.. _sec-api-access-datamodel-permissions:
Permissions
-----------
.. _sec-api-access-datamodel-permissions-list:
Permission list response
~~~~~~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``permissions``
- 0..n
- List of :ref:`permission records <sec-api-datamodel-access-permissions>`
- The list of permissions
.. _sec-api-access-datamodel-groups:
Groups
------
.. _sec-api-access-datamodel-groups-list:
Group list response
~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``groups``
- 0..n
- List of :ref:`group records <sec-api-datamodel-access-groups>`
- The list of groups
.. _sec-api-access-datamodel-groups-addgrouprequest:
Group registration request
~~~~~~~~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``key``
- 1
- string
- The group's identifier
* - ``name``
- 1
- string
- The group's name
* - ``description``
- 0..1
- string
- The group's description. Set to empty if not provided.
* - ``permissions``
- 1..n
- List of string
- A list of identifier's of permissions to assign to the group
* - ``subgroups``
- 0..n
- List of string
- A list of identifier's of groups to assign to the group as subgroups
* - ``default``
- 0..1
- boolean
- Whether to assign the group to new users by default (true) or not (false, default value)
.. _sec-api-access-datamodel-groups-updategrouprequest:
Group update request
~~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``description``
- 0..1
- string
- The group's description. Set to empty if not provided.
* - ``permissions``
- 1..n
- List of string
- A list of identifier's of permissions to assign to the group
* - ``subgroups``
- 0..n
- List of string
- A list of identifier's of groups to assign to the group as subgroups
* - ``default``
- 0..1
- boolean
- Whether to assign the group to new users by default (true) or not (false, default value)
.. _sec-api-access-datamodel-users:
Users
-----
.. _sec-api-access-datamodel-users-userlistresponse:
User list response
~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``users``
- 0..n
- List of :ref:`user records <sec-api-datamodel-access-users>`
- The list of users
.. _sec-api-access-datamodel-users-adduserrequest:
User registration request
~~~~~~~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``name``
- 1
- string
- The user's name
* - ``password``
- 1
- string
- The user's password
* - ``active``
- 1
- bool
- Whether to activate the account (true) or not (false)
* - ``groups``
- 0..n
- List of string
- A list of identifiers of groups to assign to the user
* - ``permissions``
- 0..n
- List of string
- A list of identifiers of permissions to assign to the user
.. _sec-api-access-datamodel-users-updateuserrequest:
User update request
~~~~~~~~~~~~~~~~~~~
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``active``
- 0..1
- bool
- If present will set the user's active flag to the provided value. True for
activating the account, false for deactivating it.
* - ``groups``
- 0..n
- List of string
- A list of identifiers of groups to assign to the user
* - ``permissions``
- 0..n
- List of string
- A list of identifiers of permissions to assign to the user
+3 -1
View File
@@ -16,6 +16,8 @@ Get connection settings
Retrieve the current connection settings, including information regarding the available baudrates and
serial ports and the current connection state.
Requires the ``STATUS`` permission.
**Example**
.. sourcecode:: http
@@ -81,7 +83,7 @@ Issue a connection command
for the lost acknowledgment should always be properly investigated and removed instead of depending on this
"symptom solver".
Requires user rights.
Requires the ``CONNECTION`` permission.
**Example Connect Request**
+170
View File
@@ -480,3 +480,173 @@ References
- URL
- The model from which this file was generated (e.g. an STL, currently not used). Never present for
folders.
.. _sec-api-datamodel-access:
Access control
==============
.. _sec-api-datamodel-access-users:
User record
-----------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``name``
- 1
- string
- The user's name
* - ``active``
- 1
- bool
- Whether the user's account is active (true) or not (false)
* - ``user``
- 1
- bool
- Whether the user has user rights. Should always be true. Deprecated as of 1.4.0, use the ``users`` group instead.
* - ``admin``
- 1
- bool
- Whether the user has admin rights (true) or not (false). Deprecated as of 1.4.0, use the ``admins`` group instead.
* - ``apikey``
- 0..1
- string
- The user's personal API key
* - ``settings``
- 1
- object
- The user's personal settings, might be an empty object.
* - ``groups``
- 1..n
- List of string
- Groups assigned to the user
* - ``needs``
- 1
- :ref:`Needs object <sec-api-datamodel-access-needs>`
- Effective needs of the user
* - ``permissions``
- 0..n
- List of :ref:`Permissions <sec-api-datamodel-access-permissions>`
- The list of permissions assigned to the user (note: this does not include implicit permissions inherit from groups).
.. _sec-api-datamodel-access-permissions:
Permission record
-----------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``key``
- 1
- string
- The permission's identifier
* - ``name``
- 1
- string
- The permission's name
* - ``dangerous``
- 1
- boolean
- Whether the permission should be considered dangerous due to a high reponsibility (true) or not (false).
* - ``default_groups``
- 1
- List of string
- List of group identifiers for which this permission is enabled by default
* - ``description``
- 1
- string
- Human readable description of the permission
* - ``needs``
- 1
- :ref:`Needs object <sec-api-access-datamodel-general-needs>`
- Needs assigned to the permission
.. _sec-api-datamodel-access-groups:
Group record
------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``key``
- 1
- string
- The group's identifier
* - ``name``
- 1
- string
- The group's name
* - ``description``
- 1
- string
- A human readable description of the group
* - ``permissions``
- 0..n
- List of :ref:`Permissions <sec-api-datamodel-access-permissions>`
- The list of permissions assigned to the group (note: this does not include implicit permissions inherited from
subgroups).
* - ``subgroups``
- 0..n
- List of :ref:`Groups <sec-api-datamodel-access-groups>`
- Subgroups assigned to the group
* - ``needs``
- 1
- :ref:`Needs object <sec-api-datamodel-access-needs>`
- Effective needs of the group
* - ``default``
- 1
- boolean
- Whether this is a default group (true) or not (false)
* - ``removable``
- 1
- boolean
- Whether this group can be removed (true) or not (false)
* - ``changeable``
- 1
- boolean
- Whether this group can be modified (true) or not (false)
* - ``toggleable``
- 1
- boolean
- Whether this group can be assigned to users or other groups (true) or not (false)
.. _sec-api-datamodel-access-needs:
Needs
-----
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``role``
- 0..1
- List of string
- List of ``role`` needs
* - ``group``
- 0..1
- List of string
- List of ``group`` needs
+15 -3
View File
@@ -21,6 +21,8 @@ Retrieve all files
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
Requires the ``FILES_LIST`` permission.
**Example 1**:
Fetch only the files and folders from the root folder.
@@ -250,6 +252,8 @@ Retrieve files from specific location
Returns a :ref:`Retrieve response <sec-api-fileops-datamodel-retrieveresponse>`.
Requires the ``FILES_LIST`` permission.
**Example**:
.. sourcecode:: http
@@ -327,7 +331,7 @@ Upload file or create folder
Returns a :http:statuscode:`201` response with a ``Location`` header set to the management URL of the uploaded
file and an :ref:`Upload Response <sec-api-fileops-datamodel-uploadresponse>` as the body upon successful completion.
Requires user rights.
Requires the ``FILES_UPLOAD`` permission.
**Example for uploading a file**
@@ -504,6 +508,8 @@ Retrieve a specific file's or folder's information
On success, a :http:statuscode:`200` is returned, with a :ref:`file information item <sec-api-datamodel-files-file>`
as the response body.
Requires the ``FILES_LIST`` permission.
**Example**
.. sourcecode:: http
@@ -568,6 +574,8 @@ Issue a file command
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
Requires the ``FILES_SELECT`` permission.
slice
Slices an STL file into GCODE. Note that this is an asynchronous operation that will take place in the background
after the response has been sent back to the client. Additional parameters are:
@@ -598,6 +606,8 @@ Issue a file command
Upon success, a status code of :http:statuscode:`202` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
body will be returned.
Requires the ``SLICE`` permission.
copy
Copies the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
@@ -609,6 +619,8 @@ Issue a file command
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
body will be returned.
Requires the ``FILES_UPLOAD`` permission.
move
Moves the file or folder to a new ``destination`` on the same ``location``. Additional parameters are:
@@ -622,7 +634,7 @@ Issue a file command
Upon success, a status code of :http:statuscode:`201` and a :ref:`sec-api-datamodel-files-fileabridged` in the response
body will be returned.
Requires user rights.
Requires the ``FILES_UPLOAD`` permission.
**Example Select Request**
@@ -773,7 +785,7 @@ Delete file
Returns a :http:statuscode:`204` after successful deletion.
Requires user rights.
Requires the ``FILES_DELETE`` permission.
**Example Request**
+47 -29
View File
@@ -180,6 +180,20 @@ Logout
:status 204: No error
.. _sec-api-general-currentuser:
Current User
============
.. http:get:: /api/currentuser
Retrieves information about the current user.
Will return a :http:statuscode:`200` with a :ref:`current user object <sec-api-general-datamodel-currentuser>`
as body.
:status 200: No error
.. _sec-api-general-datamodel:
Data model
@@ -190,6 +204,30 @@ Data model
Login response
--------------
The Login response is a :ref:`user record <sec-api-datamodel-access-users>` extended by the following fields:
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``session``
- 1
- string
- The session key, can be used to authenticate with the ``auth`` message on the :ref:`push API <sec-api-push>`.
* - ``_is_external_client``
- 1
- boolean
- Whether the client that made the request got detected as external from the local network or not.
.. _sec-api-general-datamodel-currentuser:
Current user
------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
@@ -201,32 +239,12 @@ Login response
* - ``name``
- 1
- string
- the user's name/id
* - ``active``
- 1
- boolean
- Whether the user's account is active or not
* - ``admin``
- 1
- boolean
- Whether the user has admin rights or not
* - ``user``
- 1
- boolean
- Whether the user has user rights or not (always ``true``)
* - ``apikey``
- 1
- string or None
- The user's API key, if set
* - ``settings``
- 1
- dict
- The user's settings, if any
* - ``session``
- 1
- string
- The session key, can be used to authenticate with the ``auth`` message on the :ref:`push API <sec-api-push>`.
* - ``_is_external_client``
- 1
- boolean
- Whether the client that made the request got detected as external from the local network or not.
- The id of the current user. Unset if guest.
* - ``permissions``
- 0..n
- List of :ref:`permission records <sec-api-datamodel-access-permissions>`
- The effective list of permissions assigned to the user
* - ``groups``
- 0..n
- List of :ref:`permission records <sec-api-datamodel-access-groups>`
- The list of groups assigned to the user
+1 -1
View File
@@ -20,7 +20,7 @@ REST API
slicing.rst
system.rst
timelapse.rst
users.rst
access.rst
util.rst
wizard.rst
push.rst
+3 -1
View File
@@ -57,7 +57,7 @@ Issue a job command
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
Requires user rights.
Requires the ``PRINT`` permission.
**Example Start Request**
@@ -180,6 +180,8 @@ Retrieve information about the current job
Returns a :http:statuscode:`200` with a :ref:`sec-api-job-datamodel-response` in the body.
Requires the ``STATUS`` permission.
**Example**
.. sourcecode:: http
+1 -1
View File
@@ -6,7 +6,7 @@ Languages
.. note::
All language pack management operations require admin rights.
All language pack management operations require the ``SETTINGS`` permission.
.. contents::
+54 -6
View File
@@ -80,6 +80,8 @@ Retrieve the current printer state
Returns a :http:statuscode:`200` with a :ref:`Full State Response <sec-api-printer-datamodel-fullstate>` in the
body upon success.
Requires the ``STATUS`` permission.
**Example 1**
Include temperature history data, but limit it to two entries.
@@ -241,7 +243,7 @@ Issue a print head command
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example Jog Request**
@@ -380,7 +382,7 @@ Issue a tool command
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example Target Temperature Request**
@@ -555,6 +557,8 @@ Retrieve the current tool state
Returns a :http:statuscode:`200` with a Temperature Response in the body upon success.
Requires the ``STATUS`` permission.
.. note::
If you want both tool and bed temperature information at the same time, take a look at
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
@@ -645,7 +649,7 @@ Issue a bed command
If no heated bed is configured for the currently selected printer profile, the resource will return
an :http:statuscode:`409`.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example Target Temperature Request**
@@ -714,6 +718,8 @@ Retrieve the current bed state
If no heated bed is configured for the currently selected printer profile, the resource will return
an :http:statuscode:`409`.
Requires the ``STATUS`` permission.
.. note::
If you want tool, bed and chamber temperature information at the same time, take a look at
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
@@ -793,7 +799,7 @@ Issue a chamber command
If no heated chamber is configured for the currently selected printer profile, the resource will return
an :http:statuscode:`409`.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example Target Temperature Request**
@@ -862,6 +868,8 @@ Retrieve the current chamber state
If no heated chamber is configured for the currently selected printer profile, the resource will return
an :http:statuscode:`409`.
Requires the ``STATUS`` permission.
.. note::
If you want tool, bed and chamber temperature information at the same time, take a look at
:ref:`Retrieve the current printer state <sec-api-printer-state>`.
@@ -944,7 +952,7 @@ Issue an SD command
Upon success, a status code of :http:statuscode:`204` and an empty body is returned.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example Init Request**
@@ -1022,6 +1030,8 @@ Retrieve the current SD state
Returns a :http:statuscode:`200` with an :ref:`SD State Response <sec-api-printer-datamodel-sdstate>` in the body
upon success.
Requires the ``STATUS`` permission.
**Example**
Read the current state of the SD card.
@@ -1058,7 +1068,7 @@ Send an arbitrary command to the printer
If successful returns a :http:statuscode:`204` and an empty body.
Requires user rights.
Requires the ``CONTROL`` permission.
**Example for sending a single command**
@@ -1101,6 +1111,26 @@ Send an arbitrary command to the printer
:json string commands: List of commands to send to the printer, mutually exclusive with ``command``.
:statuscode 204: No error
.. _sec-api-printer-customcontrols:
Retrieve custom controls
========================
.. http:get:: /api/printer/command/custom
Retrieves the :ref:`custom controls <sec-features-custom_controls>` as configured in
:ref:`config.yaml <sec-configuration-config_yaml>`.
Please refer to the documentation of :ref:`custom controls <sec-features-custom_controls>` on what
data structure to expect here.
Returns a :http:statuscode:`200` with an :ref:`Custom Controls Response <sec-api-printer-datamodel-customcontrols>`
in the body upon success.
Requires the ``CONTROL`` permission.
:statuscode 200: No error
.. _sec-api-printer-datamodel:
Data model
@@ -1211,3 +1241,21 @@ Arbitrary Command Request
- 0..1
- Map of key value pairs
- (only if ``script`` is set) additional template variables to provide to the script renderer
.. _sec-api-printer-datamodel-customcontrols:
Custom Controls Response
------------------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``controls``
- 0..n
- List of :ref:`custom controls <sec-features-custom_controls>`
- A list of custom control definitions as defined in ``config.yaml``.
+21 -3
View File
@@ -21,6 +21,8 @@ Retrieve all printer profiles
Returns a :http:statuscode:`200` with a list of :ref:`profiles <sec-api-printerprofiles-datamodel-profile>`.
Requires the ``CONNECTION`` permission.
**Example**
.. sourcecode:: http
@@ -124,6 +126,22 @@ Retrieve all printer profiles
}
.. _sec-api-printerprofiles-get:
Retrieve a single printer profile
=================================
.. http:get:: /api/printerprofiles/(string:identifier)
Retrieves an existing single printer profile.
Returns a :http:statuscode:`200` with a :ref:`profile <sec-api-printerprofiles-datamodel-profile>`.
Requires the ``CONNECTION`` permission.
:statuscode 200: No error
:statuscode 404: The profile does not exist
.. _sec-api-printerprofiles-add:
Add a new printer profile
@@ -143,7 +161,7 @@ Add a new printer profile
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
in the JSON body upon success.
Requires admin rights.
Requires the ``SETTINGS`` permission.
**Example 1**
@@ -314,7 +332,7 @@ Update an existing printer profile
Returns a :http:statuscode:`200` with the saved profile as property ``profile``
in the JSON body upon success.
Requires admin rights.
Requires the ``SETTINGS`` permission.
**Example**
@@ -400,7 +418,7 @@ Remove an existing printer profile
Returns a :http:statuscode:`204` an empty body upon success.
Requires admin rights.
Requires the ``SETTINGS`` permission.
**Example**
+2 -3
View File
@@ -51,9 +51,8 @@ OctoPrint's SockJS socket also accepts two commands from the client to the serve
* ``auth`` (since 1.3.10): With the ``auth`` message, clients may associate an
existing user session with the socket. That is of special importance to receive
any kind of messages if the bundled :ref:`Forcelogin Plugin <sec-bundledplugins-forcelogin>` is enabled
(as it is by default), since it will prevent any kind of status messages to be sent to connected unauthenticated
clients.
any kind of messages, since the permission system will prevent any kind of status messages to be sent to connected
clients lacking the ``STATUS`` permission.
The ``auth`` message expects the user id of the user to authenticate followed by ``:`` and a session key to be
obtained from the successful payload of a :ref:`(passive or active) login via the API <sec-api-general-login>`.
+3 -1
View File
@@ -21,6 +21,8 @@ Retrieve current settings
The :ref:`data model <sec-api-settings-datamodel>` is similar to what can be found in
:ref:`config.yaml <sec-configuration-config_yaml>`, see below for details.
Requires the ``SETTINGS_READ`` permission.
.. _sec-api-settings-save:
Save settings
@@ -36,7 +38,7 @@ Save settings
Returns the currently active settings on success, as part of a :http:statuscode:`200` response.
Requires admin rights.
Requires the ``SETTINGS`` permission.
**Example**
+62 -2
View File
@@ -28,6 +28,8 @@ List All Slicers and Slicing Profiles
Returns a :http:statuscode:`200` response with a :ref:`Slicer list <sec-api-slicing-datamodel-slicerlist>`
as the body upon successful completion.
Requires the ``SLICE`` permission.
**Example**
.. sourcecode:: http
@@ -77,6 +79,8 @@ List Slicing Profiles of a Specific Slicer
Returns a :http:statuscode:`200` response with a :ref:`Profile list <sec-api-slicing-datamodel-profilelist>`
as the body upon successful completion.
Requires the ``SLICE`` permission.
**Example**
.. sourcecode:: http
@@ -121,6 +125,8 @@ Retrieve Specific Profile
Returns a :http:statuscode:`200` response with a :ref:`full Profile <sec-api-slicing-datamodel-profile>`
as the body upon successful completion.
Requires the ``SLICE`` permission.
**Example**
.. sourcecode:: http
@@ -168,7 +174,7 @@ Add Slicing Profile
Returns a :http:statuscode:`201` and an :ref:`abridged Profile <sec-api-slicing-datamodel-profile>` in the body
upon successful completion.
Requires admin rights.
Requires the ``SETTINGS`` permission.
**Example**
@@ -206,6 +212,31 @@ Add Slicing Profile
:statuscode 201: No error
:statuscode 404: If the ``slicer`` was unknown to the system.
.. _sec-api-slicing-patch:
Update Slicing Profile
======================
.. http:patch:: /api/slicing/(string:slicer)/profiles/(string:key)
Updates the slicing profile identified by ``key`` for the slicer ``slicer``.
Expects a :ref:`profile update request <sec-api-slicing-datamodel-profileupdate>` as body.
Returns a :http:statuscode:`201` and an :ref:`abridged Profile <sec-api-slicing-datamodel-profile>` in the body
upon successful completion.
Requires the ``SETTINGS`` permission.
:param slicer: The identifying key of the slicer for which to update the profile
:param key: The identifying key of the profile to update
:json data: New profile overrides to apply
:json displayName: New display name
:json description: New description
:json default: Whether to make the profile default (true) or not (false) for the slicer
:statuscode 200: No error
:statuscode 404: Slicer or profile do not exist
.. _sec-api-slicing-delete:
Delete Slicing Profile
@@ -216,7 +247,7 @@ Delete Slicing Profile
Delete the slicing profile identified by ``key`` for the slicer ``slicer``. If the profile doesn't exist, the
request will succeed anyway.
Requires admin rights.
Requires the ``SETTINGS`` permission.
:param slicer: The identifying key of the slicer for which to delete the profile
:param key: The identifying key of the profile to delete
@@ -340,3 +371,32 @@ Profile
only the keys differing from the defaults when saving/updating a profile. The keys to be found in here a slicer
specific. Will be left out for list responses.
.. _sec-api-slicing-datamodel-profileupdate:
Profile Update Request
----------------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``data``
- 0..1
- Object
- The profile data
* - ``displayName``
- 0..1
- ``string``
- The new display name for the profile
* - ``description``
- 0..1
- ``string``
- The new description for the profile
* - ``default``
- 0..1
- ``boolean``
- Whether to mark the profile as default for the slicer (true) or not (false)
+3 -1
View File
@@ -6,7 +6,7 @@ System
.. note::
All system operations require admin rights.
All system operations require the ``SYSTEM`` permission.
.. _sec-api-system-command-list:
@@ -20,6 +20,8 @@ List all registered system commands
A :http:statuscode:`200` with a :ref:`List all response <sec-api-system-commands-listall>`
will be returned.
Requires the ``SYSTEM`` permission.
**Example**
.. sourcecode:: http
+6 -4
View File
@@ -18,6 +18,8 @@ Retrieve a list of timelapses and the current config
Returns a :ref:`timelapse list <sec-api-timelapse-datamodel-list>` in the
response body.
Requires the ``TIMELAPSE_LIST`` permission.
:param unrendered: If provided and true, also include unrendered timelapses
.. _sec-api-timelapse-delete:
@@ -29,7 +31,7 @@ Delete a timelapse
Delete the timelapse ``filename``.
Requires user rights.
Requires the ``TIMELAPSE_DELETE`` permission.
.. _sec-api-timelapse-render:
@@ -41,7 +43,7 @@ Issue a command for an unrendered timelapse
Current only supports to render the unrendered timelapse ``name`` via the
``render`` command.
Requires user rights.
Requires the ``TIMELAPSE_ADMIN`` permission.
:json command: The command to issue, currently only ``render`` is supported
@@ -54,7 +56,7 @@ Delete an unrendered timelapse
Delete the unrendered timelapse ``name``.
Requires user rights.
Requires the ``TIMELAPSE_DELETE`` permission.
.. _sec-api-timelapse-saveconfig:
@@ -67,7 +69,7 @@ Change current timelapse config
The configuration is expected as the request body.
Requires user rights.
Requires the ``TIMELAPSE_ADMIN`` permission.
.. _sec-api-timelapse-datamodel:
+2 -307
View File
@@ -4,311 +4,6 @@
User
****
.. contents::
.. note::
.. _sec-api-users-list:
Retrieve a list of users
========================
.. http:get:: /api/users
Retrieves a list of all registered users in OctoPrint.
Will return a :http:statuscode:`200` with a :ref:`user list response <sec-api-users-datamodel-userlistresponse>`
as body.
Requires admin rights.
:status 200: No error
.. _sec-api-users-retrieve:
Retrieve a user
===============
.. http:get:: /api/users/(string:username)
Retrieves information about a user.
Will return a :http:statuscode:`200` with a :ref:`user record <sec-api-users-datamodel-userrecord>`
as body.
Requires either admin rights or to be logged in as the user.
:param username: Name of the user which to retrieve
:status 200: No error
:status 404: Unknown user
.. _sec-api-users-add:
Add a user
==========
.. http:post:: /api/users
Adds a user to OctoPrint.
Expects a :ref:`user registration request <sec-api-users-datamodel-adduserrequest>`
as request body.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
Requires admin rights.
:json name: The user's name
:json password: The user's password
:json active: Whether to activate the account (true) or not (false)
:json admin: Whether to give the account admin rights (true) or not (false)
:status 200: No error
:status 400: If any of the mandatory fields is missing or the request is otherwise
invalid
:status 409: A user with the provided name does already exist
.. _sec-api-users-update:
Update a user
=============
.. http:put:: /api/users/(string:username)
Updates a user record.
Expects a :ref:`user update request <sec-api-users-datamodel-updateuserrequest>`
as request body.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
Requires admin rights.
:param username: Name of the user to update
:json admin: Whether to mark the user as admin (true) or not (false), can be left out (no change)
:json active: Whether to mark the account as activated (true) or deactivated (false), can be left out (no change)
:status 200: No error
:status 404: Unknown user
.. _sec-api-users-delete:
Delete a user
=============
.. http:delete:: /api/users/(string:username)
Delete a user record.
Returns a list of registered users on success, see :ref:`Retrieve a list of users <sec-api-users-list>`.
Requires admin rights.
:param username: Name of the user to delete
:status 200: No error
:status 404: Unknown user
.. _sec-api-users-resetpassword:
Reset a user's password
=======================
.. http:put:: /api/users/(string:username)/password
Changes the password of a user.
Expects a JSON object with a single property ``password`` as request body.
Requires admin rights or to be logged in as the user.
:param username: Name of the user to change the password for
:json password: The new password to set
:status 200: No error
:status 400: If the request doesn't contain a ``password`` property or the request
is otherwise invalid
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-users-getsettings:
Retrieve a user's settings
==========================
.. http:get:: /api/users/(string:username)/settings
Retrieves a user's settings.
Will return a :http:statuscode:`200` with a JSON object representing the user's
personal settings (if any) as body.
Requires admin rights or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 200: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-users-updatesettings:
Update a user's settings
========================
.. http:patch:: /api/users/(string:username)/settings
Updates a user's settings.
Expects a new settings JSON object to merge with the current settings as
request body.
Requires admin rights or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 204: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-users-generateapikey:
Regenerate a user's personal API key
====================================
.. http:post:: /api/users/(string:username)/apikey
Generates a new API key for the user.
Does not expect a body. Will return the generated API key as ``apikey``
property in the JSON object contained in the response body.
Requires admin rights or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 200: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-users-deleteapikey:
Delete a user's personal API key
================================
.. http:delete:: /api/users/(string:username)/apikey
Deletes a user's personal API key.
Requires admin rights or to be logged in as the user.
:param username: Name of the user to retrieve the settings for
:status 204: No error
:status 403: No admin rights and not logged in as the user
:status 404: The user is unknown
.. _sec-api-users-datamodel:
Data model
==========
.. _sec-api-users-datamodel-userlistresponse:
User list response
------------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``users``
- 0..n
- List of :ref:`user records <sec-api-users-datamodel-userrecord>`
- The list of registered users
.. _sec-api-users-datamodel-userrecord:
User record
-----------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``name``
- 1
- string
- The user's name
* - ``active``
- 1
- bool
- Whether the user's account is active (true) or not (false)
* - ``user``
- 1
- bool
- Whether the user has user rights. Should always be true.
* - ``admin``
- 1
- bool
- Whether the user has admin rights (true) or not (false)
* - ``apikey``
- 0..1
- string
- The user's personal API key
* - ``settings``
- 1
- object
- The user's personal settings, might be an empty object.
.. _sec-api-users-datamodel-adduserrequest:
User registration request
-------------------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``name``
- 1
- string
- The user's name
* - ``password``
- 1
- string
- The user's password
* - ``active``
- 1
- bool
- Whether to activate the account (true) or not (false)
* - ``admin``
- 0..1
- bool
- Whether to give the user admin rights (true) or not (false or not present)
.. _sec-api-users-datamodel-updateuserrequest:
User update request
-------------------
.. list-table::
:widths: 15 5 10 30
:header-rows: 1
* - Name
- Multiplicity
- Type
- Description
* - ``active``
- 0..1
- bool
- If present will set the user's active flag to the provided value. True for
activating the account, false for deactivating it.
* - ``admin``
- 0..1
- bool
- If present will set the user's admin flag to the provided value. True for
admin rights, false for no admin rights.
This API endpoint has been moved and is now part of :ref:`Access Control <sec-api-access-users>`.
+1 -1
View File
@@ -99,7 +99,7 @@ Test paths or URLs
The ``server`` command returns :http:statuscode:`200` with a :ref:`Server test result <sec-api-util-datamodel-servertestresult>`
when the test could be performed. The status code of the response does NOT reflect the test result!
Requires admin rights.
Requires the ``ADMIN`` permission.
**Example 1**
+1 -1
View File
@@ -6,7 +6,7 @@ Wizard
.. note::
All wizard operations require either admin rights or the ``firstRun`` flag to be ``true``.
All wizard operations require either the ``ADMIN`` permission or the ``firstRun`` flag to be ``true``.
.. contents::
+14 -4
View File
@@ -100,7 +100,7 @@ Shutdown
The server is shutting down.
ClientOpened
A client has connected to the web server.
A client has connected to the push socket.
Payload:
@@ -109,12 +109,22 @@ ClientOpened
**Note:** Name changed in version 1.1.0
ClientClosed
A client has disconnected from the webserver
ClientAuthed
A client has authenticated a user session on the push socket.
Payload:
* ``remoteAddress``: the remote address (IP) of the client that disconnected
* ``remoteAddress``: the remote address (IP) of the client that authed. On the push socket only available with a
valid login session.
* ``username``: the name of the user who authed. On the push socket only available with a valid login session.
ClientClosed
A client has disconnected from the push socket.
Payload:
* ``remoteAddress``: the remote address (IP) of the client that disconnected. On the push socket only available
with a valid login session.
UserLoggedIn
A user logged in. On the push socket only available with a valid login session with admin rights.
+17 -3
View File
@@ -60,6 +60,7 @@ We'll start at the most basic form a plugin can take - just a few simple lines o
__plugin_name__ = "Hello World"
__plugin_version__ = "1.0.0"
__plugin_description__ = "A quick \"Hello World\" example plugin for OctoPrint"
__plugin_pythoncompat__ = ">=2.7,<4"
Saving this as ``helloworld.py`` in ``~/.octoprint/plugins`` yields you something resembling these log entries upon server startup::
@@ -75,7 +76,10 @@ Saving this as ``helloworld.py`` in ``~/.octoprint/plugins`` yields you somethin
OctoPrint found that plugin in the folder and took a look into it. The name and the version it displays in that log
entry it got from the ``__plugin_name__`` and ``__plugin_version__`` lines. It also read the description from
``__plugin_description__`` and stored it in an internal data structure, but we'll just ignore this for now.
``__plugin_description__`` and stored it in an internal data structure, but we'll just ignore this for now. Additionally
there is ``__plugin_pythoncompat__`` which tells OctoPrint here that your plugin can be run under any Python versions
between 2.7 and 4. That is necessary so that your plugin will be loadable in OctoPrint instances running under either
Python 2 or Python 3, and compatibility to both should be your goal.
.. _sec-plugins-gettingstarted-sayinghello:
@@ -86,7 +90,7 @@ Apart from being discovered by OctoPrint, our plugin does nothing yet. We want t
"Hello World!" to the log upon server startup. Modify our ``helloworld.py`` like this:
.. code-block:: python
:emphasize-lines: 4-8,13
:emphasize-lines: 4-8,14
:linenos:
# -*- coding: utf-8 -*-
@@ -101,6 +105,7 @@ Apart from being discovered by OctoPrint, our plugin does nothing yet. We want t
__plugin_name__ = "Hello World"
__plugin_version__ = "1.0.0"
__plugin_description__ = "A quick \"Hello World\" example plugin for OctoPrint"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
and restart OctoPrint. You now get this output in the log::
@@ -284,7 +289,7 @@ of information now defined twice:
The nice thing about our plugin now being a proper Python package is that OctoPrint can and will access the metadata defined
within ``setup.py``! So, we don't really need to define all this data twice. Remove ``__plugin_name__``, ``__plugin_version__``
and ``__plugin_description__`` from ``__init__.py``:
and ``__plugin_description__`` from ``__init__.py``, but leave ``__plugin_implementation__`` and ``__plugin_pythoncompat__``:
.. code-block:: python
:linenos:
@@ -298,6 +303,7 @@ and ``__plugin_description__`` from ``__init__.py``:
def on_after_startup(self):
self._logger.info("Hello World!")
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
and restart OctoPrint::
@@ -324,6 +330,7 @@ Our "Hello World" Plugin still gets detected fine, but it's now listed under the
self._logger.info("Hello World!")
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
@@ -373,6 +380,7 @@ add the :class:`TemplatePlugin` to our ``HelloWorldPlugin`` class:
self._logger.info("Hello World!")
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
Next, we'll create a sub folder ``templates`` underneath our ``octoprint_helloworld`` folder, and within that a file
@@ -443,6 +451,7 @@ Let's take a look at how all that would look in our plugin's ``__init__.py``:
return dict(url="https://en.wikipedia.org/wiki/Hello_world")
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
Restart OctoPrint. You should see something like this::
@@ -480,6 +489,7 @@ Adjust your plugin's ``__init__.py`` like this:
return dict(url=self._settings.get(["url"]))
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
Also adjust your plugin's ``templates/helloworld_navbar.jinja2`` like this:
@@ -590,6 +600,7 @@ again since we don't use that anymore:
]
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
Restart OctoPrint and shift-reload your browser. Your link in the navigation bar should still point to the URL we
@@ -693,6 +704,7 @@ like so:
)
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
Note how we did not add another entry to the return value of :func:`~octoprint.plugin.TemplatePlugin.get_template_configs`.
@@ -875,6 +887,7 @@ a reference to our CSS file:
)
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
OctoPrint by default bundles all CSS, JavaScript and LESS files to reduce the amount of requests necessary to fully
@@ -961,6 +974,7 @@ Then adjust our returned assets to include our LESS file as well:
)
__plugin_name__ = "Hello World"
__plugin_pythoncompat__ = ">=2.7,<4"
__plugin_implementation__ = HelloWorldPlugin()
+88 -34
View File
@@ -200,6 +200,94 @@ Available plugin hooks
.. contents::
:local:
.. _sec-plugins-hook-permissions:
octoprint.access.permissions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. py:function:: additional_permissions_hook(*args, **kwargs)
Return a list of additional permissions to register in the system on behalf of the plugin. Use this
to add granular permissions to your plugin which can be configured for users and user groups in the general
access control settings of OctoPrint.
Additional permissions must be modelled as ``dict``s with at least a ``key`` and ``name`` field. Possible
fields are as follows:
* ``key``: A key for the permission to be used for referring to it from source code. This will turned uppercase
and prefixed with ``PLUGIN_<PLUGIN IDENTIFIER>_`` before being made available on ``octoprint.access.permissions.Permissions``,
e.g. ``my_permission`` on the plugin with identifier ``example`` turns into ``PLUGIN_EXAMPLE_MY_PERMISSION`` and
can be accessed as ``octoprint.access.permissions.Permissions.PLUGIN_EXAMPLE_MY_PERMISSION`` on the server and
``permissions.PLUGIN_EXAMPLE_MY_PERMISSION`` on the ``AccessViewModel`` on the client. Must only contain a-z, A-Z, 0-9 and _.
* ``name``: A human readable name for the permission.
* ``description``: A human readable description of the permission.
* ``permissions``: A list of permissions this permission includes, by key.
* ``roles``: A list of roles this permission includes. Roles are simple strings you define. Usually one role will
suffice.
* ``dangerous``: Whether this permission should be considered dangerous (``True``) or not (``False``)
* ``default_groups``: A list of standard groups this permission should be apply to by default. Standard groups
are ``admins``, ``users``, ``readonly`` and ``guests``
The following example is based on some actual code included in the bundled Application Keys plugin and defines
one additional permission called ``ADMIN`` with a role ``admin`` which is marked as dangerous (since it gives
access to the management to other user's application keys) and by default will only be given to the standard admin
group:
.. code-block:: python
def get_additional_permissions(*args, **kwargs):
return [
dict(key="ADMIN",
name="Admin access",
description=gettext("Allows administrating all application keys"),
roles=["admin"],
dangerous=True,
default_groups=[ADMIN_GROUP])
]
__plugin_hooks__ = {
"octoprint.access.permissions": get_additional_permissions
}
Once registered it can be referenced under the key ``PLUGIN_APPKEYS_ADMIN``.
:return: A list of additional permissions to register in the system.
:rtype: A list of dicts.
.. _sec-plugins-hook-users-factory:
octoprint.access.users.factory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. py:function:: user_manager_factory_hook(components, settings, *args, **kwargs)
Return a :class:`~octoprint.access.users.UserManager` instance to use as global user manager object. This will
be called only once during initial server startup.
The provided ``components`` is a dictionary containing the already initialized system components:
* ``plugin_manager``: The :class:`~octoprint.plugin.core.PluginManager`
* ``printer_profile_manager``: The :class:`~octoprint.printer.profile.PrinterProfileManager`
* ``event_bus``: The :class:`~octoprint.events.EventManager`
* ``analysis_queue``: The :class:`~octoprint.filemanager.analysis.AnalysisQueue`
* ``slicing_manager``: The :class:`~octoprint.slicing.SlicingManager`
* ``file_manager``: The :class:`~octoprint.filemanager.FileManager`
* ``plugin_lifecycle_manager``: The :class:`~octoprint.server.LifecycleManager`
* ``preemptive_cache``: The :class:`~octoprint.server.util.flask.PreemptiveCache`
If the factory returns anything but ``None``, it will be assigned to the global ``userManager`` instance.
If none of the registered factories return a user manager instance, the class referenced by the ``config.yaml``
entry ``accessControl.userManager`` will be initialized if possible, otherwise a stock
:class:`~octoprint.access.users.FilebasedUserManager` will be instantiated, linked to the default user storage
file ``~/.octoprint/users.yaml``.
:param dict components: System components to use for user manager instance initialization
:param SettingsManager settings: The global settings manager instance to fetch configuration values from if necessary
:return: The ``userManager`` instance to use globally.
:rtype: UserManager subclass or None
.. _sec-plugins-hook-accesscontrol-keyvalidator:
octoprint.accesscontrol.keyvalidator
@@ -1525,40 +1613,6 @@ octoprint.ui.web.templatetypes
:return: a list of 3-tuples (template type, rule, sorting spec)
:rtype: list
.. _sec-plugins-hook-users-factory:
octoprint.access.users.factory
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. py:function:: user_manager_factory_hook(components, settings, *args, **kwargs)
Return a :class:`~octoprint.access.users.UserManager` instance to use as global user manager object. This will
be called only once during initial server startup.
The provided ``components`` is a dictionary containing the already initialized system components:
* ``plugin_manager``: The :class:`~octoprint.plugin.core.PluginManager`
* ``printer_profile_manager``: The :class:`~octoprint.printer.profile.PrinterProfileManager`
* ``event_bus``: The :class:`~octoprint.events.EventManager`
* ``analysis_queue``: The :class:`~octoprint.filemanager.analysis.AnalysisQueue`
* ``slicing_manager``: The :class:`~octoprint.slicing.SlicingManager`
* ``file_manager``: The :class:`~octoprint.filemanager.FileManager`
* ``plugin_lifecycle_manager``: The :class:`~octoprint.server.LifecycleManager`
* ``preemptive_cache``: The :class:`~octoprint.server.util.flask.PreemptiveCache`
If the factory returns anything but ``None``, it will be assigned to the global ``userManager`` instance.
If none of the registered factories return a user manager instance, the class referenced by the ``config.yaml``
entry ``accessControl.userManager`` will be initialized if possible, otherwise a stock
:class:`~octoprint.access.users.FilebasedUserManager` will be instantiated, linked to the default user storage
file ``~/.octoprint/users.yaml``.
:param dict components: System components to use for user manager instance initialization
:param SettingsManager settings: The global settings manager instance to fetch configuration values from if necessary
:return: The ``userManager`` instance to use globally.
:rtype: UserManager subclass or None
.. _sec-plugins-hook-timelapse-capture-pre:
octoprint.timelapse.capture.pre
+1 -1
View File
@@ -37,9 +37,9 @@ INSTALL_REQUIRES = [
# anything below this should be checked on releases for new versions
"Flask-Login>=0.4.1,<0.5",
"Flask-Principal>=0.4,<0.5",
"Flask-Babel>=0.12,<0.13",
"Flask-Assets>=0.12,<0.13",
"blinker>=1.4,<1.5", # dependency of the now vendor bundled flask_principal
"werkzeug>=0.16,<0.17",
"cachelib>=0.1,<0.2",
"PyYAML>=5.1,<6",
-4
View File
@@ -2,10 +2,6 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
#import sys
#if sys.version_info[0] >= 3:
# raise RuntimeError("Sorry, OctoPrint does not yet support Python 3")
if __name__ == "__main__":
import octoprint
octoprint.main()
+1 -26
View File
@@ -18,32 +18,7 @@ from octoprint.settings import settings
from octoprint.util import atomic_write
from octoprint.access import ADMIN_GROUP, USER_GROUP, GUEST_GROUP, READONLY_GROUP
from octoprint.access.permissions import Permissions, OctoPrintPermission
from flask_principal import Need, Permission
DEFAULT_ADMIN_PERMISSIONS = [Permissions.ADMIN]
"""Default admin permissions are the legacy permissions from before 1.4.0"""
DEFAULT_USER_PERMISSIONS = [Permissions.STATUS,
Permissions.CONNECTION,
Permissions.WEBCAM,
Permissions.FILES_UPLOAD,
Permissions.FILES_DOWNLOAD,
Permissions.FILES_DELETE,
Permissions.FILES_SELECT,
Permissions.PRINT,
Permissions.MONITOR_TERMINAL,
Permissions.CONTROL,
Permissions.SLICE,
Permissions.TIMELAPSE_LIST,
Permissions.TIMELAPSE_ADMIN]
"""Default user permissions are the legacy permissions from before 1.4.0"""
DEFAULT_GUEST_PERMISSIONS = [Permissions.STATUS,
Permissions.WEBCAM,
Permissions.FILES_DOWNLOAD,
Permissions.TIMELAPSE_LIST,
Permissions.MONITOR_TERMINAL]
"""Default guest permissions are the legacy permissions from before 1.4.0"""
from octoprint.vendor.flask_principal import Need, Permission
GroupNeed = partial(Need, 'group')
+35 -14
View File
@@ -8,7 +8,7 @@ __copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms
from future.utils import with_metaclass
from flask import g, abort
from flask_babel import gettext
from flask_principal import Permission, PermissionDenied, RoleNeed, Need
from octoprint.vendor.flask_principal import Permission, PermissionDenied, RoleNeed, Need
from functools import wraps
from collections import OrderedDict, defaultdict
@@ -79,6 +79,22 @@ class OctoPrintPermission(Permission):
def get_description(self):
return self._description
def allows(self, identity):
"""Whether the identity can access this permission.
Overridden from Permission.allows to make sure the Identity provides ALL
required needs instead of ANY required need.
:param identity: The identity
"""
if self.needs and len(self.needs.intersection(identity.provides)) != len(self.needs):
return False
if self.excludes and self.excludes.intersection(identity.provides):
return False
return True
def union(self, other):
"""Create a new OctoPrintPermission with the requirements of the union of this
and other.
@@ -259,8 +275,9 @@ class Permissions(with_metaclass(PermissionsMetaClass)):
default_groups=[ADMIN_GROUP])
STATUS = OctoPrintPermission("Status",
gettext("Allows to gather status information, e.g. job progress, "
"printer state, temperatures, ..."),
gettext("Allows to gather basic status information, e.g. job progress, "
"printer state, temperatures, ... Mandatory for the default UI "
"to work"),
RoleNeed("status"),
default_groups=[USER_GROUP, READONLY_GROUP])
@@ -292,27 +309,26 @@ class Permissions(with_metaclass(PermissionsMetaClass)):
FILES_DOWNLOAD = OctoPrintPermission("File Download",
gettext("Allows users to download files. The GCODE viewer is "
"affected by this as well."),
RoleNeed("files_download"), FILES_LIST,
RoleNeed("files_download"),
default_groups=[USER_GROUP, READONLY_GROUP])
FILES_DELETE = OctoPrintPermission("File Delete",
gettext("Allows users to delete files"),
RoleNeed("files_delete"), FILES_LIST,
RoleNeed("files_delete"),
default_groups=[USER_GROUP])
FILES_SELECT = OctoPrintPermission("File Select",
gettext("Allows to select a file for printing"),
RoleNeed("files_select"), FILES_LIST,
RoleNeed("files_select"),
default_groups=[USER_GROUP])
PRINT = OctoPrintPermission("Print",
gettext("Allows to start, pause and cancel a print job. Includes the \"Select\" "
"permission"),
RoleNeed("print"), FILES_SELECT,
gettext("Allows to start, pause and cancel a print job"),
RoleNeed("print"),
default_groups=[USER_GROUP])
GCODE_VIEWER = OctoPrintPermission("GCODE viewer",
gettext("Allows access to the GCODE viewer. Includes the \"File Download\""
"permission."),
RoleNeed("gcodeviewer"), FILES_DOWNLOAD,
gettext("Allows access to the GCODE viewer if the \"File Download\""
"permission is also set."),
RoleNeed("gcodeviewer"),
default_groups=[USER_GROUP, READONLY_GROUP])
MONITOR_TERMINAL = OctoPrintPermission("Terminal",
@@ -351,8 +367,13 @@ class Permissions(with_metaclass(PermissionsMetaClass)):
RoleNeed("timelapse_admin"), TIMELAPSE_LIST, TIMELAPSE_DOWNLOAD,
default_groups=[USER_GROUP])
SETTINGS = OctoPrintPermission("Settings",
gettext("Allows to manage settings"),
SETTINGS_READ = OctoPrintPermission("Settings Access",
gettext("Allows to read non sensitive settings. Mandatory for the "
"default UI to work."),
RoleNeed("settings_read"),
default_groups=[USER_GROUP, READONLY_GROUP])
SETTINGS = OctoPrintPermission("Settings Admin",
gettext("Allows to manage settings and also to read sensitive settings"),
RoleNeed("settings"),
dangerous=True)
+12 -5
View File
@@ -21,7 +21,7 @@ from builtins import range, bytes
from octoprint.settings import settings as s
from octoprint.util import atomic_write, to_bytes, deprecated, monotonic_time
from octoprint.util import atomic_write, to_bytes, deprecated, monotonic_time, generate_api_key
from octoprint.util import get_fully_qualified_classname as fqcn
from octoprint.access.permissions import Permissions, OctoPrintPermission
@@ -55,7 +55,10 @@ class UserManager(GroupChangeListener, object):
if self.enabled:
return AnonymousUser([self._group_manager.guest_group])
else:
return AdminUser([self._group_manager.admin_group])
return AdminUser([self._group_manager.admin_group, self._group_manager.user_group])
def api_user_factory(self):
return ApiUser([self._group_manager.admin_group, self._group_manager.user_group])
@property
def enabled(self):
@@ -743,7 +746,7 @@ class FilebasedUserManager(UserManager):
raise UnknownUser(username)
user = self._users[username]
user._apikey = ''.join('%02X' % z for z in bytes(uuid.uuid4().bytes))
user._apikey = generate_api_key()
self._dirty = True
self._save()
return user._apikey
@@ -1122,6 +1125,12 @@ class User(UserMixin):
def groups(self):
return list(self._groups)
@property
def effective_permissions(self):
if self._permissions is None:
return []
return list(filter(lambda p: p is not None and self.has_permission(p), Permissions.all()))
@property
def needs(self):
needs = set()
@@ -1140,8 +1149,6 @@ class User(UserMixin):
return self.has_needs(*permission.needs)
def has_needs(self, *needs):
if Permissions.ADMIN in self._permissions:
return True
return set(needs).issubset(self.needs)
def __repr__(self):
+2
View File
@@ -46,6 +46,8 @@ class Events(object):
# connect/disconnect by client
CLIENT_OPENED = "ClientOpened"
CLIENT_CLOSED = "ClientClosed"
CLIENT_AUTHED = "ClientAuthed"
CLIENT_DEAUTHED = "ClientDeauthed"
# user login/logout
USER_LOGGED_IN = "UserLoggedIn"
+2 -2
View File
@@ -1008,7 +1008,7 @@ class PluginManager(object):
# 1st pass: loading the plugins
for name, plugin in added.items():
try:
if not plugin.blacklisted and not plugin.forced_disabled:
if not plugin.blacklisted and not plugin.forced_disabled and not plugin.incompatible:
self.load_plugin(name, plugin, startup=startup, initialize_implementation=initialize_implementations)
except PluginNeedsRestart:
pass
@@ -1022,7 +1022,7 @@ class PluginManager(object):
# 2nd pass: enabling those plugins that need enabling
for name, plugin in added.items():
try:
if plugin.loaded and not plugin.forced_disabled:
if plugin.loaded and not plugin.forced_disabled and not plugin.incompatible:
if plugin.blacklisted:
self.logger.warning("Plugin {} is blacklisted. Not enabling it.".format(plugin))
continue
+2 -3
View File
@@ -15,12 +15,11 @@ import octoprint.plugin
from octoprint.settings import valid_boolean_trues
from octoprint.server.util.flask import restricted_access, no_firstrun_access
from octoprint.server import NO_CONTENT, current_user, admin_permission
from octoprint.util import atomic_write, monotonic_time, ResettableTimer
from octoprint.util import atomic_write, monotonic_time, ResettableTimer, generate_api_key
from octoprint.access import ADMIN_GROUP
from octoprint.access.permissions import Permissions
CUTOFF_TIME = 10 * 60 # 10min
POLL_TIMEOUT = 5 # 5 seconds
@@ -399,7 +398,7 @@ class AppKeysPlugin(octoprint.plugin.AssetPlugin,
return result
def _generate_key(self):
return ''.join('%02X' % z for z in bytes(uuid.uuid4().bytes))
return generate_api_key()
def _load_keys(self):
with self._keys_lock:
@@ -13,8 +13,8 @@ from octoprint.util.version import get_octoprint_version_string, is_released_oct
from flask import jsonify
from flask_babel import gettext
SENTRY_URL_SERVER = "https://bcd62166a2b145aa9818947bfb76706f@sentry.io/1373987"
SENTRY_URL_COREUI = "https://217a5d75940b443eaaec347bb30c128d@sentry.io/1374096"
SENTRY_URL_SERVER = "https://a09b5f846ab8459c88b61d01dfc97664@sentry.io/1373987"
SENTRY_URL_COREUI = "https://86119a0040914e13b37b8bf47c35fffc@sentry.io/1374096"
SETTINGS_DEFAULTS = dict(enabled=False,
enabled_unreleased=False,
+18 -1
View File
@@ -12,6 +12,9 @@ import sarge
from flask_babel import gettext
from octoprint.util import RepeatedTimer
from octoprint.access.permissions import Permissions
from octoprint.access.groups import USER_GROUP
import octoprint.plugin
import octoprint.events
@@ -187,6 +190,17 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
self._throttle_overheat = False
self._throttle_functional = True
# Additional permissions hook
def get_additional_permissions(self):
return [
dict(key="STATUS",
name="Status",
description=gettext("Allows to check for the Pi's throttling status and environment info"),
roles=["check"],
default_groups=[USER_GROUP])
]
#~~ EnvironmentDetectionPlugin
def get_additional_environment(self):
@@ -200,6 +214,8 @@ class PiSupportPlugin(octoprint.plugin.EnvironmentDetectionPlugin,
#~~ SimpleApiPlugin
def on_api_get(self, request):
if not Permissions.PLUGIN_PI_SUPPORT_STATUS.can():
return flask.abort(403)
result = dict(throttle_state=self._throttle_state.as_dict())
result.update(self.get_additional_environment())
return flask.jsonify(**result)
@@ -336,7 +352,8 @@ def __plugin_load__():
global __plugin_hooks__
__plugin_hooks__ = {
"octoprint.events.register_custom_events": register_custom_events
"octoprint.events.register_custom_events": register_custom_events,
"octoprint.access.permissions": __plugin_implementation__.get_additional_permissions
}
global __plugin_helpers__
@@ -3,6 +3,9 @@ $(function() {
function PiSupportViewModel(parameters) {
var self = this;
self.loginState = parameters[0];
self.access = parameters[1];
self.model = ko.observable();
self.currentUndervoltage = ko.observable(false);
@@ -13,6 +16,10 @@ $(function() {
self.pastIssue = ko.observable(false);
self.requestData = function() {
if (!self.loginState.hasPermission(self.access.permissions.PLUGIN_PI_SUPPORT_STATUS)) {
return;
}
OctoPrint.plugins.pi_support.get()
.done(function(response) {
// Raspberry Pi model
@@ -70,11 +77,7 @@ $(function() {
+ "<p><small>" + gettext("Click the symbol in the navbar for more information.") + "</small></p>";
});
self.onStartup = function() {
self.requestData();
};
self.onServerReconnect = function() {
self.onStartup = self.onServerReconnect = self.onUserLoggedIn = self.onUserLoggedOut = function() {
self.requestData();
};
@@ -82,6 +85,7 @@ $(function() {
if (plugin !== "pi_support") return;
if (!data.hasOwnProperty("state") || !data.hasOwnProperty("type")) return;
if (data.type !== "throttle_state") return;
if (!self.loginState.hasPermission(self.access.permissions.PLUGIN_PI_SUPPORT_STATUS)) return;
self.fromThrottleState(data.state);
}
@@ -89,6 +93,7 @@ $(function() {
OCTOPRINT_VIEWMODELS.push({
construct: PiSupportViewModel,
elements: ["#navbar_plugin_pi_support"]
elements: ["#navbar_plugin_pi_support"],
dependencies: ["loginStateViewModel", "accessViewModel"]
});
});
@@ -1182,6 +1182,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
enabled=plugin.enabled,
blacklisted=plugin.blacklisted,
forced_disabled=plugin.forced_disabled,
incompatible=plugin.incompatible,
safe_mode_victim=getattr(plugin, "safe_mode_victim", False),
pending_enable=(not plugin.enabled and not getattr(plugin, "safe_mode_victim", False) and plugin.key in self._pending_enable),
pending_disable=((plugin.enabled or getattr(plugin, "safe_mode_victim", False)) and plugin.key in self._pending_disable),
@@ -191,15 +191,16 @@ $(function() {
var command = self._getToggleCommand(data);
var not_safemode_victim = !data.safe_mode_victim;
var not_blacklisted = !data.blacklisted;
return self.enableManagement() && (command == "disable" || (not_safemode_victim && not_blacklisted)) && data.key != 'pluginmanager';
var not_incompatible = !data.incompatible;
return self.enableManagement() && (command === "disable" || (not_safemode_victim && not_blacklisted && not_incompatible)) && data.key != 'pluginmanager';
};
self.enableUninstall = function(data) {
return self.enableManagement()
&& (data.origin != "entry_point" || self.pipAvailable())
&& (data.origin !== "entry_point" || self.pipAvailable())
&& data.managable
&& !data.bundled
&& data.key != 'pluginmanager'
&& data.key !== 'pluginmanager'
&& !data.pending_uninstall;
};
@@ -84,7 +84,7 @@
<tbody data-bind="foreach: plugins.paginatedItems">
<tr>
<td class="settings_plugin_plugin_manager_plugins_name">
<div data-bind="css: {muted: !enabled}"><span data-bind="text: name"></span> <span data-bind="visible: version">(<span data-bind="text: version"></span>)</span> <i title="{{ _('Bundled with OctoPrint')|edq }}" class="fa fa-th-large" data-bind="visible: bundled"></i> <i class="fa fa-lock" title="{{ _('Cannot be uninstalled through OctoPrint')|edq }}" data-bind="visible: !managable"></i> <i title="{{ _('Restart of OctoPrint needed for changes to take effect')|edq }}" class="fa fa-refresh" data-bind="visible: pending_enable || pending_disable || pending_install || pending_uninstall"></i> <i title="{{ _('Pending install')|edq }}" class="fa fa-plus" data-bind="visible: pending_install"></i> <i title="{{ _('Pending uninstall')|edq }}" class="fa fa-minus" data-bind="visible: pending_uninstall"></i> <i title="{{ _('Disabled due to safe mode')|edq }}" class="fa fa-medkit" data-bind="visible: safe_mode_victim"></i> <i class="fa fa-exclamation-triangle" title="{{ _('There are notices available regarding this plugin')|edq }}" data-bind="visible: notifications && notifications.length"></i> <i class="fa fa-ban" title="{{ _('This plugin is blacklisted')|edq }}" data-bind="visible: blacklisted"></i></div>
<div data-bind="css: {muted: !enabled}"><span data-bind="text: name"></span> <span data-bind="visible: version">(<span data-bind="text: version"></span>)</span> <i title="{{ _('Bundled with OctoPrint')|edq }}" class="fa fa-th-large" data-bind="visible: bundled"></i> <i class="fa fa-lock" title="{{ _('Cannot be uninstalled through OctoPrint')|edq }}" data-bind="visible: !managable"></i> <i class="fa fa-bolt" title="{{ _('Incompatible to OctoPrint or the underlying Python environment')|edq }}" data-bind="visible: incompatible"></i> <i title="{{ _('Restart of OctoPrint needed for changes to take effect')|edq }}" class="fa fa-refresh" data-bind="visible: pending_enable || pending_disable || pending_install || pending_uninstall"></i> <i title="{{ _('Pending install')|edq }}" class="fa fa-plus" data-bind="visible: pending_install"></i> <i title="{{ _('Pending uninstall')|edq }}" class="fa fa-minus" data-bind="visible: pending_uninstall"></i> <i title="{{ _('Disabled due to safe mode')|edq }}" class="fa fa-medkit" data-bind="visible: safe_mode_victim"></i> <i class="fa fa-exclamation-triangle" title="{{ _('There are notices available regarding this plugin')|edq }}" data-bind="visible: notifications && notifications.length"></i> <i class="fa fa-ban" title="{{ _('This plugin is blacklisted')|edq }}" data-bind="visible: blacklisted"></i></div>
<div data-bind="visible: notifications && notifications.length"><a href="javascript:void(0)" class="text-error" style="text-decoration: underline" data-bind="click: function() { $root.showPluginNotifications($data) }, text: $root.showPluginNotificationsLinkText($data)"></a></div>
<div><small class="muted" data-bind="text: description">&nbsp;</small></div>
<div data-bind="css: {muted: !enabled}">
+1 -1
View File
@@ -36,7 +36,7 @@ class PrintTimeEstimator(object):
interval = settings().getFloat(["serial", "timeout", "sdStatus"])
if interval <= 0:
interval = 1.0
rolling_window = 15 / interval
rolling_window = int(15 // interval)
if rolling_window < 1:
rolling_window = 1
+28 -9
View File
@@ -9,7 +9,7 @@ import uuid
from octoprint.vendor.sockjs.tornado import SockJSRouter
from flask import Flask, g, request, session, Blueprint, Request, Response, current_app
from flask_login import LoginManager, current_user, session_protected, user_logged_out
from flask_principal import Principal, Permission, RoleNeed, identity_loaded, identity_changed, UserNeed, Identity, AnonymousIdentity
from octoprint.vendor.flask_principal import Principal, Permission, RoleNeed, identity_loaded, identity_changed, UserNeed, Identity, AnonymousIdentity
from flask_babel import Babel, gettext, ngettext
from flask_assets import Environment, Bundle
from babel import Locale
@@ -31,9 +31,11 @@ import os
import sys
import logging
import logging.config
import mimetypes
import atexit
import signal
import base64
import re
try:
import fcntl
@@ -123,8 +125,7 @@ def on_identity_loaded(sender, identity):
def _clear_identity(sender):
# Remove session keys set by Flask-Principal
for key in ('identity.id', 'identity.name', 'identity.auth_type'):
if key in session:
del session[key]
session.pop(key, None)
# switch to anonymous identity
identity_changed.send(sender, identity=AnonymousIdentity())
@@ -132,8 +133,9 @@ def _clear_identity(sender):
@session_protected.connect_via(app)
def on_session_protected(sender):
# session was protected, that means the user is no more and we need to clear our identity
_clear_identity(sender)
# session was deleted by session protection, that means the user is no more and we need to clear our identity
if session.get("remember", None) == "clear":
_clear_identity(sender)
@user_logged_out.connect_via(app)
@@ -147,7 +149,7 @@ def load_user(id):
return None
if id == "_api":
return users.ApiUser([groupManager.admin_group])
return userManager.api_user_factory()
if session and "usersession.id" in session:
sessionid = session["usersession.id"]
@@ -278,10 +280,12 @@ class Server(object):
self._setup_heartbeat_logging()
pluginManager = self._plugin_manager
# monkey patch some stuff
# monkey patch/fix some stuff
util.tornado.fix_json_encode()
util.flask.fix_flask_jsonify()
self._setup_mimetypes()
additional_translation_folders = []
if not safe_mode:
additional_translation_folders += [self._settings.getBaseFolder("translations")]
@@ -1368,6 +1372,17 @@ class Server(object):
self._logger.exception("Error processing after_request hooks from plugin {}".format(plugin),
extra=dict(plugin=plugin))
def _setup_mimetypes(self):
# Safety measures for Windows... apparently the mimetypes module takes its translation from the windows
# registry, and if for some weird reason that gets borked the reported MIME types can be all over the place.
# Since at least in Chrome that can cause hilarious issues with JS files (refusal to run them and thus a
# borked UI) we make sure that .js always maps to the correct application/javascript, and also throw in a
# .css -> text/css for good measure.
#
# See #3367
mimetypes.add_type("application/javascript", ".js")
mimetypes.add_type("text/css", ".css")
def _setup_assets(self):
global app
global assets
@@ -1700,8 +1715,6 @@ class Server(object):
assets.register("less_app", less_app_bundle)
def _setup_login_manager(self):
util.flask.fix_flask_login_remote_address()
global loginManager
loginManager = LoginManager()
@@ -1870,6 +1883,8 @@ class Server(object):
from octoprint.access.permissions import PluginOctoPrintPermission
key_whitelist = re.compile(r"[A-Za-z0-9_]*")
def permission_key(plugin, definition):
return "PLUGIN_{}_{}".format(plugin.upper(), definition["key"].upper())
@@ -1942,6 +1957,10 @@ class Server(object):
if not "key" in p or not "name" in p:
continue
if not key_whitelist.match(p["key"]):
self._logger.warn("Got permission with invalid key from plugin {}: {}".format(name, p["key"]))
continue
if not process_regular_permission(plugin_info, p):
postponed.append((plugin_info, p))
except Exception:
+15 -3
View File
@@ -10,7 +10,8 @@ import logging
from flask import Blueprint, request, jsonify, abort, current_app, session, make_response, g
from flask_login import login_user, logout_user, current_user
from flask_principal import Identity, identity_changed, AnonymousIdentity
from werkzeug.exceptions import HTTPException
from octoprint.vendor.flask_principal import Identity, identity_changed, AnonymousIdentity
import octoprint.access.users
import octoprint.util.net as util_net
@@ -72,6 +73,8 @@ def pluginData(name):
if response is not None:
return response
return NO_CONTENT
except HTTPException:
raise
except Exception:
logging.getLogger(__name__).exception("Error calling SimpleApiPlugin {}".format(name),
extra=dict(plugin=name))
@@ -107,6 +110,8 @@ def pluginCommand(name):
if response is not None:
return response
return NO_CONTENT
except HTTPException:
raise
except Exception:
logging.getLogger(__name__).exception("Error while executing SimpleApiPlugin {}".format(name),
extra=dict(plugin=name))
@@ -205,7 +210,7 @@ def apiVersion():
@api.route("/login", methods=["POST"])
def login():
data = request.get_json()
if data is None:
if not data:
data = request.values
if octoprint.server.userManager.enabled and "user" in data and "pass" in data:
@@ -284,6 +289,13 @@ def _logout(user):
octoprint.server.userManager.logout_user(user)
@api.route("/currentuser", methods=["GET"])
def get_current_user():
return jsonify(name=current_user.get_name(),
permissions=[permission.key for permission in current_user.effective_permissions],
groups=[group.key for group in current_user.groups])
#~~ Test utils
@@ -375,7 +387,7 @@ def _test_path(data):
try:
test_path = os.path.join(path, ".testballoon.txt")
with io.open(test_path, 'wb') as f:
f.write("Test")
f.write(b"Test")
os.remove(test_path)
except Exception:
logging.getLogger(__name__).exception("Error while testing if {} is really writable".format(path))
+1 -1
View File
@@ -471,7 +471,7 @@ def uploadGcodeFile(target):
@api.route("/files/<string:target>/<path:filename>", methods=["GET"])
@Permissions.FILES_DOWNLOAD.require(403)
@Permissions.FILES_LIST.require(403)
def readGcodeFile(target, filename):
if not target in [FileDestinations.LOCAL, FileDestinations.SDCARD]:
return make_response("Unknown target: %s" % target, 404)
+4 -8
View File
@@ -14,7 +14,6 @@ from octoprint.access.permissions import Permissions
@api.route("/job", methods=["POST"])
@no_firstrun_access
@Permissions.PRINT.require(403)
def controlJob():
if not printer.is_operational():
return make_response("Printer is not operational", 409)
@@ -57,13 +56,10 @@ def controlJob():
printer.resume_print(tags=tags, user=user)
else:
return make_response("Unknown action '{}', allowed values for action parameter are 'pause', 'resume' and 'toggle'".format(action), 400)
# Safety first, everyone can cancel a print, but log who canceled the print
# to prevent fraudulent use
if command == "cancel":
if not activePrintjob:
return make_response("Printer is neither printing nor paused, 'cancel' command cannot be performed", 409)
printer.cancel_print(tags=tags, user=user)
elif command == "cancel":
if not activePrintjob:
return make_response("Printer is neither printing nor paused, 'cancel' command cannot be performed", 409)
printer.cancel_print(tags=tags, user=user)
return NO_CONTENT
-1
View File
@@ -478,7 +478,6 @@ def printerCommand():
@no_firstrun_access
@Permissions.CONTROL.require(403)
def getCustomControls():
# TODO: document me
customControls = settings().get(["controls"])
return jsonify(controls=customControls)
+5 -2
View File
@@ -7,7 +7,7 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
import logging
from flask import request, jsonify, make_response
from flask import request, jsonify, make_response, abort
from flask_login import current_user
from werkzeug.exceptions import BadRequest
@@ -75,8 +75,11 @@ def _etag(lm=None):
@api.route("/settings", methods=["GET"])
@with_revalidation_checking(etag_factory=_etag,
lastmodified_factory=_lastmodified,
unless=lambda: request.values.get("force", "false") in valid_boolean_trues)
unless=lambda: request.values.get("force", "false") in valid_boolean_trues or settings().getBoolean(["server", "firstRun"]))
def getSettings():
if not Permissions.SETTINGS_READ.can() and not settings().getBoolean(["server", "firstRun"]):
abort(403)
s = settings()
connectionOptions = printer.__class__.get_connection_options()
+4 -5
View File
@@ -12,14 +12,13 @@ PY3 = sys.version_info[0] == 3
from octoprint.settings import settings
import octoprint.timelapse
import octoprint.server
from octoprint.access.users import ApiUser
from octoprint.util import deprecated
from octoprint.util import deprecated, to_unicode
from octoprint.plugin import plugin_manager
import flask as _flask
import flask_login
import flask_principal
import octoprint.vendor.flask_principal as flask_principal
import logging
from . import flask
@@ -180,7 +179,7 @@ def get_user_for_apikey(apikey):
if apikey is not None:
if apikey == settings().get(["api", "key"]):
# master key was used
return ApiUser([octoprint.server.groupManager.admin_group])
return octoprint.server.userManager.api_user_factory()
if octoprint.server.userManager.enabled:
user = octoprint.server.userManager.find_user(apikey=apikey)
@@ -234,7 +233,7 @@ def get_user_for_authorization_header(header):
header = header.replace('Basic ', '', 1)
try:
header = base64.b64decode(header)
header = to_unicode(base64.b64decode(header))
except TypeError:
return None
+3 -16
View File
@@ -11,7 +11,7 @@ import tornado.web
import flask
import flask.json
import flask_login
import flask_principal
import octoprint.vendor.flask_principal as flask_principal
import flask_assets
import webassets.updater
import webassets.utils
@@ -242,20 +242,6 @@ def fix_webassets_filtertool():
FilterTool._wrap_cache = fixed_wrap_cache
def fix_flask_login_remote_address():
def fixed_get_remote_addr():
"""Backported from https://github.com/maxcountryman/flask-login/pull/217"""
from flask import request
address = request.headers.get('X-Forwarded-For', request.remote_addr)
if address is not None:
# An 'X-Forwarded-For' header includes a comma separated list of the
# addresses, the first address being the actual remote address.
address = address.encode('utf-8').split(b',')[0].strip()
return address
flask_login._get_remote_addr = fixed_get_remote_addr
def fix_flask_jsonify():
def fixed_jsonify(*args, **kwargs):
"""Backported from https://github.com/pallets/flask/blob/7e714bd28b6e96d82b2848b48cf8ff48b517b09b/flask/json/__init__.py#L257"""
@@ -598,7 +584,8 @@ def passive_login():
elif settings().getBoolean(["accessControl", "autologinLocal"]) \
and settings().get(["accessControl", "autologinAs"]) is not None \
and settings().get(["accessControl", "localNetworks"]) is not None \
and not "active_logout" in flask.request.cookies:
and not "active_logout" in flask.request.cookies \
and remote_address:
# attempt local autologin
autologin_as = settings().get(["accessControl", "autologinAs"])
local_networks = _local_networks()
+31
View File
@@ -78,12 +78,15 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
"*": []}
_event_payload_processors = {Events.CLIENT_OPENED: [lambda user, payload: payload if user.has_permission(Permissions.ADMIN) else dict()],
Events.CLIENT_AUTHED: [lambda user, payload: payload if user.has_permission(Permissions.ADMIN) else dict()],
"*": []}
_emit_permissions = {"connected": [],
"reauthRequired": [],
"*": [Permissions.STATUS]}
_unauthed_backlog_max = 100
def __init__(self, printer, fileManager, analysisQueue, userManager, groupManager, eventManager, pluginManager, session):
if isinstance(session, octoprint.vendor.sockjs.tornado.session.Session):
session = JsonEncodingSessionWrapper(session)
@@ -99,6 +102,9 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
self._messageBacklog = []
self._messageBacklogMutex = threading.Lock()
self._unauthed_backlog = []
self._unauthed_backlog_mutex = threading.RLock()
self._printer = printer
self._fileManager = fileManager
self._analysisQueue = analysisQueue
@@ -119,6 +125,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
self._emit_hooks = self._pluginManager.get_hooks("octoprint.server.sockjs.emit")
self._registered = False
self._authed = False
@staticmethod
def _get_remote_address(info):
@@ -411,6 +418,13 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
permissions = [x() if callable(x) else x for x in permissions]
if not self._user or not all(map(lambda p: self._user.has_permission(p), permissions)):
if not self._authed:
with self._unauthed_backlog_mutex:
if len(self._unauthed_backlog) < self._unauthed_backlog_max:
self._unauthed_backlog.append((type, payload))
self._logger.debug("Socket message held back until permissions cleared, added to backlog: {}".format(type))
else:
self._logger.debug("Socket message held back, but backlog full. Throwing message away: {}".format(type))
return
self._do_emit(type, payload)
@@ -428,6 +442,7 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
self._user = user
self._logger.info("User {} logged in on the socket from client {}".format(user.get_name(),
self._remoteAddress))
self._authed = True
for name, hook in self._authed_hooks.items():
try:
@@ -436,8 +451,24 @@ class PrinterStateConnection(octoprint.vendor.sockjs.tornado.SockJSConnection,
self._logger.exception("Error processing authed hook handler for plugin {}".format(name),
extra=dict(plugin=name))
# if we have a backlog from being unauthed, process that now
with self._unauthed_backlog_mutex:
backlog = self._unauthed_backlog
self._unauthed_backlog = []
if len(backlog):
self._logger.debug("Sending {} messages on the socket that were held back".format(len(backlog)))
for message, payload in backlog:
self._do_emit(message, payload)
# trigger ClientAuthed event
octoprint.events.eventManager().fire(octoprint.events.Events.CLIENT_AUTHED,
payload=dict(username=user.get_name(),
remoteAddress=self._remoteAddress))
def _on_logout(self):
self._user = self._userManager.anonymous_user_factory()
self._authed = False
for name, hook in self._authed_hooks.items():
try:
+30 -3
View File
@@ -367,7 +367,7 @@ def index():
return view(now, request, render_kwargs)
def default_view():
def ui_view():
filtered_templates = _filter_templates(_templates[locale], default_template_filter)
wizard = wizard_active(filtered_templates)
@@ -407,6 +407,33 @@ def index():
dict())
return preemptively_cached()
def login_view():
return util.flask.add_non_caching_response_headers(make_response(render_template("forcelogin.jinja2")))
def evaluate_login():
from octoprint.server.util import loginUserFromApiKey, loginUserFromAuthorizationHeader, InvalidApiKeyException
from octoprint.server.util.flask import passive_login
# first try to login via api key & authorization header, just in case that's set
try:
loginUserFromApiKey()
except InvalidApiKeyException:
pass # ignored
loginUserFromAuthorizationHeader()
# then try a passive login
passive_login()
def default_view():
evaluate_login()
if request.headers.get("X-Preemptive-Record", None) == "no" \
or (Permissions.STATUS.can() and Permissions.SETTINGS_READ.can()) \
or settings().getBoolean(["server", "firstRun"]):
return ui_view()
else:
return login_view()
response = None
forced_view = request.headers.get("X-Force-View", None)
@@ -591,9 +618,9 @@ def fetch_template_data(refresh=False):
# tabs
templates["tab"]["entries"] = dict(
temperature=(gettext("Temperature"), dict(template="tabs/temperature.jinja2", _div="temp", styles=["display: none;"], data_bind="visible: loginState.hasAnyPermissionKo(access.permissions.STATUS, access.permissions.CONTROL) && visible()")),
temperature=(gettext("Temperature"), dict(template="tabs/temperature.jinja2", _div="temp", styles=["display: none;"], data_bind="visible: loginState.hasAnyPermissionKo(access.permissions.STATUS, access.permissions.CONTROL)() && visible()")),
control=(gettext("Control"), dict(template="tabs/control.jinja2", _div="control", styles=["display: none;"], data_bind="visible: loginState.hasAnyPermissionKo(access.permissions.WEBCAM, access.permissions.CONTROL)")),
gcodeviewer=(gettext("GCode Viewer"), dict(template="tabs/gcodeviewer.jinja2", _div="gcode", styles=["display: none;"], data_bind="visible: loginState.hasPermissionKo(access.permissions.GCODE_VIEWER)")),
gcodeviewer=(gettext("GCode Viewer"), dict(template="tabs/gcodeviewer.jinja2", _div="gcode", styles=["display: none;"], data_bind="visible: loginState.hasAllPermissionsKo(access.permissions.GCODE_VIEWER, access.permissions.FILES_DOWNLOAD)")),
terminal=(gettext("Terminal"), dict(template="tabs/terminal.jinja2", _div="term", styles=["display: none;"], data_bind="visible: loginState.hasPermissionKo(access.permissions.MONITOR_TERMINAL)")),
timelapse=(gettext("Timelapse"), dict(template="tabs/timelapse.jinja2", _div="timelapse", styles=["display: none;"], data_bind="visible: loginState.hasPermissionKo(access.permissions.TIMELAPSE_LIST)"))
)
+2 -2
View File
@@ -49,7 +49,7 @@ try:
except ImportError:
from collections import KeysView
from octoprint.util import atomic_write, is_hidden_path, dict_merge, CaseInsensitiveSet
from octoprint.util import atomic_write, is_hidden_path, dict_merge, CaseInsensitiveSet, generate_api_key
_APPNAME = "OctoPrint"
@@ -1811,7 +1811,7 @@ class Settings(object):
f.write(script)
def generateApiKey(self):
apikey = ''.join('%02X' % z for z in bytes(uuid.uuid4().bytes))
apikey = generate_api_key()
self.set(["api", "key"], apikey)
self.save(force=True)
return apikey
+1 -1
View File
@@ -1 +1 @@
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
.btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.btn.active,.btn.disabled,.btn:active,.btn:focus,.btn:hover,.btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.btn.active,.btn:active{background-color:#ccc \9}.btn:first-child{*margin-left:0}.btn:focus,.btn:hover{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.btn:focus{outline:#333 dotted thin;outline:-webkit-focus-ring-color auto 5px;outline-offset:-2px}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.btn.disabled,.btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.btn-large [class*=" icon-"],.btn-large [class^=icon-]{margin-top:4px}.btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-small [class*=" icon-"],.btn-small [class^=icon-]{margin-top:0}.btn-mini [class*=" icon-"],.btn-mini [class^=icon-]{margin-top:-1px}.btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-primary.active,.btn-primary.disabled,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.btn-primary.active,.btn-primary:active{background-color:#039 \9}.btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.btn-warning.active,.btn-warning.disabled,.btn-warning:active,.btn-warning:focus,.btn-warning:hover,.btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.btn-warning.active,.btn-warning:active{background-color:#c67605 \9}.btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeaLine truncated
@@ -0,0 +1 @@
body{padding-top:40px;padding-bottom:40px;background-color:#f5f5f5}.form-signin{max-width:300px;padding:19px 29px 29px;margin:0 auto 20px;background-color:#fff;border:1px solid #e5e5e5;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.form-signin .form-signin-heading,.form-signin .checkbox{margin-bottom:10px}.form-signin input[type=text],.form-signin input[type=password]{font-size:16px;height:auto;margin-bottom:15px;padding:7px 9px}#login-error,#login-offline{display:none}#login-error.in,#login-offline.in{display:block}#login-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10000;display:none}#login-overlay.in{display:block}#login-overlay .background{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000;filter:alpha(opacity=50);-moz-opacity:.5;-khtml-opacity:.5;opacity:.5}#login-overlay .wrapper{position:absolute;top:0;bottom:0;left:0;right:0}#login-overlay .wrapper .outer{display:table;width:100%;height:100%}#login-overlay .wrapper .outer .inner{display:table-cell;vertical-align:middle}#login-overlay .wrapper .outer .inner .content{text-align:center;color:#fff}
@@ -0,0 +1,71 @@
/*
* Will get included into the login dialog, NOT into the regular OctoPrint
* web application.
*/
$(function() {
var overlayElement = $("#login-overlay");
var errorElement = $("#login-error");
var offlineElement = $("#login-offline");
var buttonElement = $("#login-button");
var reconnectElement = $("#login-reconnect");
buttonElement.click(function() {
var usernameElement = $("#login-user");
var passwordElement = $("#login-password");
var rememberElement = $("#login-remember");
var username = usernameElement.val();
var password = passwordElement.val();
var remember = rememberElement.prop("checked");
overlayElement.addClass("in");
errorElement.removeClass("in");
OctoPrint.browser.login(username, password, remember)
.done(function() {
location.reload();
})
.fail(function() {
usernameElement.val("");
passwordElement.val("");
overlayElement.removeClass("in");
errorElement.addClass("in");
});
return false;
});
var OctoPrint = window.OctoPrint;
OctoPrint.options.baseurl = BASE_URL;
var offlineTimer = undefined;
var clearOfflineTimer = function() {
if (offlineTimer !== undefined) {
window.clearTimeout(offlineTimer);
offlineTimer = undefined;
}
};
OctoPrint.socket.onConnected = function() {
clearOfflineTimer();
buttonElement.prop("disabled", false);
offlineElement.removeClass("in");
};
OctoPrint.socket.onDisconnected = function() {
clearOfflineTimer();
offlineTimer = window.setTimeout(function() {
buttonElement.prop("disabled", true);
offlineElement.addClass("in");
}, 1000);
};
reconnectElement.click(function() {
OctoPrint.socket.reconnect();
});
OctoPrint.socket.connect();
});
@@ -0,0 +1,90 @@
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-signin {
max-width: 300px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
box-shadow: 0 1px 2px rgba(0,0,0,.05);
.form-signin-heading, .checkbox {
margin-bottom: 10px;
}
input[type="text"], input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
}
#login-error,
#login-offline {
display: none;
&.in {
display: block;
}
}
#login-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: none;
&.in {
display: block;
}
.background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000000;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
}
.wrapper {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
.outer {
display: table;
width: 100%;
height: 100%;
.inner {
display: table-cell;
vertical-align: middle;
.content {
text-align: center;
color: white;
}
}
}
}
}
+31 -10
View File
@@ -9,10 +9,13 @@
var normalClose = 1000;
var OctoPrintSocketClient = function(base) {
var self = this;
this.base = base;
this.options = {
timeouts: [0, 1, 1, 2, 3, 5, 8, 13, 20, 40, 100],
connectTimeout: 5000,
rateSlidingWindowSize: 20
};
@@ -24,6 +27,16 @@
this.rateThrottleFactor = 1;
this.rateBase = 500;
this.rateLastMeasurements = [];
this.connectTimeout = undefined;
this.onMessage("connected", function() {
// Make sure to clear connection timeout on connect
if (self.connectTimeout) {
clearTimeout(self.connectTimeout);
self.connectTimeout = undefined;
}
})
};
OctoPrintSocketClient.prototype.propagateMessage = function(event, data) {
@@ -98,15 +111,15 @@
OctoPrintSocketClient.prototype.connect = function(opts) {
opts = opts || {};
this.disconnect();
var self = this;
var url = this.base.options.baseurl;
self.disconnect();
var url = self.base.options.baseurl;
if (!_.endsWith(url, "/")) {
url += "/";
}
var self = this;
var onOpen = function() {
self.reconnecting = false;
self.reconnectTrial = 0;
@@ -114,7 +127,7 @@
};
var onClose = function(e) {
if (e.code == normalClose) {
if (e.code === normalClose) {
return;
}
@@ -139,10 +152,17 @@
});
};
this.socket = new SockJS(url + "sockjs", undefined, opts);
this.socket.onopen = onOpen;
this.socket.onclose = onClose;
this.socket.onmessage = onMessage;
if (self.connectTimeout) {
clearTimeout(self.connectTimeout);
}
self.connectTimeout = setTimeout(function() {
self.onConnectTimeout();
}, self.options.connectTimeout);
self.socket = new SockJS(url + "sockjs", undefined, opts);
self.socket.onopen = onOpen;
self.socket.onclose = onClose;
self.socket.onmessage = onMessage;
};
OctoPrintSocketClient.prototype.reconnect = function() {
@@ -152,7 +172,7 @@
};
OctoPrintSocketClient.prototype.disconnect = function() {
if (this.socket != undefined) {
if (this.socket !== undefined) {
this.socket.close();
}
};
@@ -169,6 +189,7 @@
OctoPrintSocketClient.prototype.onReconnectFailed = function() {};
OctoPrintSocketClient.prototype.onConnected = function() {};
OctoPrintSocketClient.prototype.onDisconnected = function(code) {};
OctoPrintSocketClient.prototype.onConnectTimeout = function() {};
OctoPrintSocketClient.prototype.onRateTooLow = function(measured, minimum) {
this.increaseRate();
+9 -2
View File
@@ -45,7 +45,7 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) {
self.connect = function() {
if (self._connectedDeferred) {
self._connectedDeferred.reject();
self._connectedDeferred.reject("reconnect");
}
self._connectedDeferred = $.Deferred();
OctoPrint.socket.connect({debug: !!SOCKJS_DEBUG});
@@ -54,7 +54,7 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) {
self.reconnect = function() {
if (self._connectedDeferred) {
self._connectedDeferred.reject();
self._connectedDeferred.reject("reconnect");
}
self._connectedDeferred = $.Deferred();
OctoPrint.socket.reconnect();
@@ -121,6 +121,12 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) {
}
};
self._onConnectTimeout = function() {
if (self._connectedDeferred) {
self._connectedDeferred.reject("timeout");
}
};
self._onConnectMessage = function(event) {
if (self._initializedDeferred) {
self._initializedDeferred.reject();
@@ -399,6 +405,7 @@ function DataUpdater(allViewModels, connectCallback, disconnectCallback) {
OctoPrint.socket.onDisconnected = self._onDisconnected;
OctoPrint.socket.onReconnectAttempt = self._onReconnectAttempt;
OctoPrint.socket.onReconnectFailed = self._onReconnectFailed;
OctoPrint.socket.onConnectTimeout = self._onConnectTimeout;
OctoPrint.socket.onRateTooHigh = self._onDecreaseRate;
OctoPrint.socket.onRateTooLow = self._onIncreaseRate;
OctoPrint.socket
+5
View File
@@ -227,6 +227,7 @@ $(function() {
PNotify.prototype.options.stack.firstpos2 = 20;
PNotify.prototype.options.stack.spacing1 = 20;
PNotify.prototype.options.stack.spacing2 = 20;
PNotify.prototype.options.stack.context = $("#page-container-main");
PNotify.prototype.options.delay = 5000;
PNotify.prototype.options.animate_speed = "fast";
@@ -807,6 +808,10 @@ $(function() {
// make sure we trigger onServerConnect should we dis- and reconnect to the server
dataUpdater.connectCallback = onServerConnect;
// we are now connected to the server and need to change the loading message - jquery instead of
// binding because no bindings yet
$("#page-container-loading-header").html(gettext("Loading OctoPrint's UI, please wait..."));
// perform passive login first
onServerConnect()
.done(function() {
@@ -8,7 +8,7 @@ $(function() {
self.loading = ko.observable(CONFIG_LOADINGANIMATION);
self.loading_error = ko.observable(false);
self.needlogin = ko.computed(function() {
return !self.loading() && !self.loginState.hasPermissionKo(self.access.permissions.STATUS)();
return !self.loading() && !self.loginState.hasAllPermissionsKo(self.access.permissions.STATUS, self.access.permissions.SETTINGS_READ)();
});
self.visible = ko.pureComputed(function() {
return !self.loading() && !self.needlogin();
@@ -40,13 +40,19 @@ $(function() {
});
};
self.onUserLoggedOut = self.onUserPermissionsChanged = function() {
if (!self.loginState.hasAllPermissions(self.access.permissions.STATUS, self.access.permissions.SETTINGS_READ) && !CONFIG_FIRST_RUN) {
location.reload();
}
};
self.showLoadingError = function(error) {
log.error("Loading error: " + error + " Please check prior messages and 'octoprint.log' for possible reasons.");
// we can't do this with bindings since the bindings are not initialized yet if we need this
$("#page-container-loading-header").text("Loading failed");
$("#page-container-loading-spinner").removeClass("fa-spinner fa-spin").addClass("fa-exclamation-triangle text-error");
$("#page-container-loading-error").html(error + " " + _.sprintf("Please check your <a href='%(browser)s' target='_blank' rel='noopener noreferrer'>browser's error console</a> and <code><a href='%(octoprint)s' target='_blank' rel='noopener noreferrer'>octoprint.log</a></code> for possible reasons.", {browser: "https://faq.octoprint.org/browser-console", octoprint: "https://faq.octoprint.org/logs"})).show();
$("#page-container-loading-error").html(error + " " + _.sprintf("Please check your <a href='%(browser)s' target='_blank' rel='noopener noreferrer'>browser's error console</a> and <code><a href='%(octoprint)s' target='_blank' rel='noopener noreferrer'>octoprint.log</a></code> for possible reasons.Also make sure that the server is actually running by reloading this page.", {browser: "https://faq.octoprint.org/browser-console", octoprint: "https://faq.octoprint.org/logs"})).show();
};
}
+4 -1
View File
@@ -1004,6 +1004,10 @@ ul.dropdown-menu li a {
/** Notifications */
.ui-pnotify{
position:fixed;
}
.ui-pnotify .alert a {
color: #c09853;
}
@@ -1543,7 +1547,6 @@ input[type="number"].input-nospin {
// page wide login form
#page-container-needlogin {
background-color: #ffffff;
z-index: 12300;
.form-signin {
max-width: 300px;
padding: 19px 29px 29px;
+70
View File
@@ -0,0 +1,70 @@
<html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>OctoPrint Login</title>
<link rel="shortcut icon" href="{{ url_for('static', filename='img/tentacle-32x32.png') }}">
<link rel="mask-icon" href="{{ url_for('static', filename='img/mask.svg') }}" color="#56BE37">
<link rel="mask-icon-theme" href="{{ url_for('static', filename='img/mask-theme.svg') }}" color="#56BE37">
<link rel="apple-touch-icon" sizes="114x114" href="{{ url_for('static', filename='img/apple-touch-icon-114x114.png') }}">
<link rel="apple-touch-icon" sizes="144x144" href="{{ url_for('static', filename='img/apple-touch-icon-144x144.png') }}">
<!-- le CSS -->
<link rel="stylesheet" href="{{ url_for("static", filename="css/bootstrap.min.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="css/bootstrap-responsive.min.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="vendor/font-awesome-4.7.0/css/font-awesome.min.css") }}">
<link rel="stylesheet" href="{{ url_for("static", filename="forcelogin/css/forcelogin.css") }}">
{% for url in forcelogin_theming %}
<link rel="stylesheet" href="{{ url }}">
{% endfor %}
<!-- le javascript -->
<script>
var BASE_URL = "{{ url_for('index') }}";
</script>
<script src="{{ url_for("static", filename="js/lib/jquery/jquery.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/lib/sockjs.min.js") }}"></script>
<script src="{{ url_for("static", filename="js/lib/bootstrap/bootstrap.js") }}"></script>
<script src="{{ url_for("static", filename="js/lib/lodash.min.js") }}"></script>
{% assets "js_client" %}
<script type="text/javascript" src="{{ ASSET_URL }}"></script>
{% endassets %}
<script src="{{ url_for("static", filename="forcelogin/js/forcelogin.js") }}"></script>
</head>
<body>
<div class="container">
<form class="form-signin">
<h2 class="form-signin-heading">{{ _('Please log in') }}</h2>
<div id="login-error" class="alert alert-error">{{ _('Incorrect username or password.') }}</div>
<div id="login-offline" class="alert alert-error">{{ _('Server is currently offline.') }} <a id="login-reconnect" href="javascript:void(0)">{{ _('Reconnect...') }}</a></div>
<input type="text" id="login-user" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus>
<input type="password" id="login-password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" id="login-forgotpassword" target="_blank" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label class="checkbox">
<input type="checkbox" id="login-remember"> {{ _('Remember me') }}
</label>
<button class="btn btn-block btn-large btn-primary" id="login-button" type="submit">{{ _('Log in') }}</button>
</form>
</div>
<div id="login-overlay">
<div class="background"></div>
<div class="wrapper">
<div class="outer">
<div class="inner">
<div class="content">
<i class="fa fa-spinner fa-spin fa-4x"></i>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
+18 -34
View File
@@ -20,8 +20,7 @@
<noscript>
<style type="text/css">
#page-container-main,
#page-container-loading,
#page-container-needlogin {
#page-container-loading {
display:none;
}
</style>
@@ -39,7 +38,23 @@
</div>
</noscript>
<div class="page-container" id="page-container-main" {% if enableLoadAnimation -%}style="display: none"{%- endif %} data-bind="visible: visible">
{% if enableLoadingAnimation %}
<div id="page-container-loading" data-bind="visible: loading">
<div class="wrapper">
<div class="outer">
<div class="inner">
<div class="content">
<h1 id="page-container-loading-header">{{ _('Connecting to OctoPrint\'s server...') }}</h1>
<i id="page-container-loading-spinner" class="fa fa-spinner fa-spin fa-4x"></i>
<p id="page-container-loading-error" style="display: none"></p>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class="page-container" id="page-container-main" {% if enableLoadAnimation %}style="display: none"{% endif %} data-bind="visible: visible">
<!-- ko allowBindings: false -->
<div id="navbar" class="navbar navbar-static-top">
<div class="navbar-inner" data-bind="css: appearanceClasses">
@@ -176,36 +191,5 @@
<!-- /ko -->
</div>
{% if enableLoadingAnimation %}
<div id="page-container-loading" data-bind="visible: loading">
<div class="wrapper">
<div class="outer">
<div class="inner">
<div class="content">
<h1 id="page-container-loading-header">{{ _('Loading OctoPrint\'s UI, please wait...') }}</h1>
<i id="page-container-loading-spinner" class="fa fa-spinner fa-spin fa-4x"></i>
<p id="page-container-loading-error" style="display: none"></p>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<div class="container" id="page-container-needlogin" style="display: none" data-bind="visible: needlogin">
<form class="form-signin">
<h2 class="form-signin-heading">{{ _('Please log in') }}</h2>
<div class="alert alert-error" style="display: none" data-bind="visible: login_error, text: login_error"></div>
<input type="text" data-bind="value: login_username" class="input-block-level" placeholder="{{ _('Username')|edq }}" autofocus>
<input type="password" data-bind="value: login_password" class="input-block-level" placeholder="{{ _('Password')|edq }}">
<span class="pull-right"><small><a href="https://faq.octoprint.org/forgotten-password" id="login-forgotpassword" target="_blank" tabindex="-1">{{ _('Forgot password?') }}</a></small></span>
<label class="checkbox">
<input type="checkbox" data-bind="value: login_remember"> {{ _('Remember me') }}
</label>
<button class="btn btn-block btn-large btn-primary" type="submit" data-bind="click: login">{{ _('Log in') }}</button>
</form>
</div>
</body>
</html>
+3 -3
View File
@@ -1,10 +1,10 @@
<form class="form-search" data-bind="submit: performSearch">
<form class="form-search" data-bind="submit: performSearch, visible: $root.loginState.hasPermissionKo($root.access.permissions.FILES_LIST)">
<div class="search-query-with-clear" data-bind="css: {'active-clear': searchQuery}">
<input type="search" class="input-block search-query" data-bind="value: searchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...')|edq }}">
<span class="search-clear" data-bind="click: clearSearchQuery"><i class="fa fa-remove"></i></span>
</div>
</form>
<div class="gcode_files">
<div class="gcode_files" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.FILES_LIST)">
<div class="entry back clickable" data-bind="visible: currentPath() != '', click: function() { $root.navigateUp(); }" style="display: none">
<div class="back-arrow"><i class="fa fa-arrow-left"></i> {{ _('Back') }}</div>
<div class="back-path"><small class="muted">{{ _('Currently in') }} <span data-bind="text: currentPath"></span></small></div>
@@ -50,7 +50,7 @@
</div>
</script>
</div>
<div class="text-right muted" data-bind="attr: {title: diskusageString}, css: {'text-error': diskusageCritical}, style: {'font-weight': diskusageCritical() || diskusageWarning() ? 'bold' : 'normal'}">
<div class="text-right muted" data-bind="attr: {title: diskusageString}, css: {'text-error': diskusageCritical}, style: {'font-weight': diskusageCritical() || diskusageWarning() ? 'bold' : 'normal'}, visible: $root.loginState.hasPermissionKo($root.access.permissions.FILES_LIST)">
<small>{{ _('Free') }}: <span data-bind="text: freeSpaceString"></span> / {{ _('Total') }}: <span data-bind="text: totalSpaceString"></span> <i class="fa fa-exclamation-triangle" data-bind="visible: diskusageWarning" style="display: none"></i></small>
</div>
<div style="display: none;" data-bind="visible: loginState.hasPermissionKo(access.permissions.FILES_UPLOAD)">
@@ -39,7 +39,7 @@
</div>
{% if enableSdSupport %}
<div class="sd-trigger accordion-heading-button btn-group" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.CONTROL) && $root.filesListVisible()">
<div class="sd-trigger accordion-heading-button btn-group" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.CONTROL)() && $root.filesListVisible()">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" title="{{ _('SD Card operations')|edq }}">
<span class="icon-sd-black-14"></span>
</a>
+2 -2
View File
@@ -34,7 +34,7 @@
</div>
</div>
</div>
<div data-bind="visible: keycontrolPossible && loginState.hasPermissionKo(access.permissions.WEBCAM) && loginState.hasPermissionKo(access.permissions.CONTROL)">
<div data-bind="visible: keycontrolPossible() && loginState.hasPermissionKo(access.permissions.WEBCAM)() && loginState.hasPermissionKo(access.permissions.CONTROL)()">
<small class="muted">{{ _("Hint: If you move your mouse over the picture, you enter keyboard control mode.") }}</small>
</div>
{% endif %}
@@ -85,7 +85,7 @@
</div>
</div>
<!-- Extrusion control panel -->
<div id="control-jog-extrusion" class="jog-panel" style="display: none;" data-bind="visible: loginState.hasPermissionKo(access.permissions.CONTROL) && tools().length > 0">
<div id="control-jog-extrusion" class="jog-panel" style="display: none;" data-bind="visible: loginState.hasPermissionKo(access.permissions.CONTROL)() && tools().length > 0">
<h1>Tool (E)</h1>
<div>
<div class="btn-group control-box">
+14 -6
View File
@@ -859,10 +859,12 @@ class TimelapseRenderJob(object):
input = os.path.join(self._capture_dir,
self._capture_format.format(prefix=self._prefix,
postfix=self._postfix if self._postfix is not None else ""))
output = os.path.join(self._output_dir,
self._output_format.format(prefix=self._prefix,
postfix=self._postfix if self._postfix is not None else "",
extension=extension))
output_name = self._output_format.format(prefix=self._prefix,
postfix=self._postfix if self._postfix is not None else "",
extension=extension)
temporary = os.path.join(self._output_dir, ".{}".format(output_name))
output = os.path.join(self._output_dir, output_name)
for i in range(4):
if os.path.exists(input % i):
@@ -885,7 +887,7 @@ class TimelapseRenderJob(object):
watermark = watermark.replace("\\", "/").replace(":", "\\\\:")
# prepare ffmpeg command
command_str = self._create_ffmpeg_command_string(ffmpeg, self._fps, bitrate, self._threads, input, output,
command_str = self._create_ffmpeg_command_string(ffmpeg, self._fps, bitrate, self._threads, input, temporary,
self._videocodec, hflip=hflip, vflip=vflip, rotate=rotate,
watermark=watermark)
self._logger.debug("Executing command: {}".format(command_str))
@@ -898,11 +900,12 @@ class TimelapseRenderJob(object):
c = CommandlineCaller()
c.on_log_stderr = self._process_ffmpeg_output
returncode, stdout_text, stderr_text = c.call(command_str, universal_newlines=True)
returncode, stdout_text, stderr_text = c.call(command_str, delimiter=b'\r', buffer_size=512)
self._logger.debug("Done with parsing")
if returncode == 0:
shutil.move(temporary, output)
self._notify_callback("success", output)
else:
self._logger.warning("Could not render movie, got return code %r: %s" % (returncode, stderr_text))
@@ -911,6 +914,11 @@ class TimelapseRenderJob(object):
self._logger.exception("Could not render movie due to unknown error")
self._notify_callback("fail", output, reason="unknown")
finally:
try:
if os.path.exists(temporary):
os.remove(temporary)
except Exception:
self._logger.warn("Could not delete temporary timelapse {}".format(temporary))
self._notify_callback("always", output)
def _process_ffmpeg_output(self, *lines):
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2019-11-22 18:38+0100\n"
"PO-Revision-Date: 2019-11-25 10:47+0100\n"
"POT-Creation-Date: 2020-02-10 16:58+0100\n"
"PO-Revision-Date: 2020-02-10 16:59+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -19,86 +19,89 @@ msgstr ""
"Generated-By: Babel 2.6.0\n"
"X-Generator: Poedit 2.0.4\n"
#: src/octoprint/access/permissions.py:256
#: src/octoprint/access/permissions.py:272
msgid "Admin is allowed to do everything"
msgstr "Admins dürfen alles tun"
#: src/octoprint/access/permissions.py:262
msgid "Allows to gather status information, e.g. job progress, printer state, temperatures, ..."
msgstr "Erlaubt Zugriff auf Statusinformationen wie Druckfortschritt, Druckerstatus, Temperaturen, ..."
#: src/octoprint/access/permissions.py:278
msgid "Allows to gather basic status information, e.g. job progress, printer state, temperatures, ... Mandatory for the default UI to work"
msgstr "Erlaubt Zugriff auf Statusinformationen wie Druckfortschritt, Druckerstatus, Temperaturen, ... Obligatorisch für die korrekte Funktion des Userinterfaces."
#: src/octoprint/access/permissions.py:268
#: src/octoprint/access/permissions.py:285
msgid "Allows to connect to and disconnect from a printer"
msgstr "Erlaubt Verbindung und Verbindungstrennung zum Drucker"
#: src/octoprint/access/permissions.py:273
#: src/octoprint/access/permissions.py:290
msgid "Allows to watch the webcam stream"
msgstr "Erlaubt Einbettung des Webcamstreams"
#: src/octoprint/access/permissions.py:278
#: src/octoprint/access/permissions.py:295
msgid "Allows to run system commands, e.g. restart OctoPrint, shutdown or reboot the system"
msgstr "Erlaubt die Ausführung von Systembefehlen, z.B. OctoPrint neu starten, System herunterfahren oder neu starten, ..."
#: src/octoprint/access/permissions.py:284
#: src/octoprint/access/permissions.py:301
msgid "Allows to retrieve a list of all uploaded files, includingtheir metadata (e.g. date, file size, analysis results, ...)"
msgstr "Erlaubt das Abrufen eines Liste aller Uploads, inkl. ihrer Metadaten (z.B. Datum, Dateigröße, Analyseergebnisse, …)"
#: src/octoprint/access/permissions.py:289
#: src/octoprint/access/permissions.py:306
msgid "Allows users to upload new files"
msgstr "Erlaubt das Hochladen neuer Dateien"
#: src/octoprint/access/permissions.py:293
#: src/octoprint/access/permissions.py:310
msgid "Allows users to download files. The GCODE viewer is affected by this as well."
msgstr "Erlaubt das Herunterladen von Dateien. Der GCODE viewer benötigt dieses Recht."
#: src/octoprint/access/permissions.py:298
#: src/octoprint/access/permissions.py:315
msgid "Allows users to delete files"
msgstr "Erlaubt Nutzern, Dateien zu löschen"
#: src/octoprint/access/permissions.py:302
#: src/octoprint/access/permissions.py:319
msgid "Allows to select a file for printing"
msgstr "Erlaubt die Auswahl einer Datei zum Drucken"
#: src/octoprint/access/permissions.py:307
msgid "Allows to start, pause and cancel a print job. Includes the \"Select\" permission"
msgstr "Erlaubt das starten, pausieren und abbrechen eines Druckauftrags. Beinhaltet die \"Select\" Berechtigung."
#: src/octoprint/access/permissions.py:324
msgid "Allows to start, pause and cancel a print job"
msgstr "Erlaubt das starten, pausieren und abbrechen eines Druckauftrags"
#: src/octoprint/access/permissions.py:313
msgid "Allows access to the GCODE viewer. Includes the \"File Download\"permission."
msgstr "Erlaubt den Zugriff auf den GCODE viewer. Beinhaltet die \"File Download\" Berechtigung."
#: src/octoprint/access/permissions.py:329
msgid "Allows access to the GCODE viewer if the \"File Download\"permission is also set."
msgstr "Erlaubt den Zugriff auf den GCODE viewer falls die \"File Download\" Berechtigung ebenfalls gesetzt ist."
#: src/octoprint/access/permissions.py:319
#: src/octoprint/access/permissions.py:335
msgid "Allows to watch the terminal tab but not to send commands to the printer from it"
msgstr "Erlaubt lesenden Zugriff auf das Terminal Tab. Das Senden von Befehlen zum Drucker ist nicht gestattet."
#: src/octoprint/access/permissions.py:325
#: src/octoprint/access/permissions.py:341
msgid "Allows to control of the printer by using the temperature controls,the control tab or sending commands through the terminal."
msgstr "Erlaubt vollen Zugriff auf den Drucker, inkl. Temperatur, Steuerung oder Senden individueller Befehle über das Terminal."
#: src/octoprint/access/permissions.py:331
#: src/octoprint/access/permissions.py:347
msgid "Allows to slice files"
msgstr "Erlaubt das Slicen von Dateien"
#: src/octoprint/access/permissions.py:336
#: src/octoprint/access/permissions.py:352
msgid "Allows to list timelapse videos"
msgstr "Erlaubt die Auflistung von Zeitrafferaufnahmen"
#: src/octoprint/access/permissions.py:340
#: src/octoprint/access/permissions.py:356
msgid "Allows to download timelapse videos"
msgstr "Erlaubt das Herunterladen von Zeitrafferaufnahmen"
#: src/octoprint/access/permissions.py:344
#, python-format
#: src/octoprint/access/permissions.py:360
msgid "Allows to delete timelapse videos and unrendered timelapses"
msgstr "Erlaubt das Löschen von Zeitrafferaufnahmen und ungerenderten Zeitraffern"
#: src/octoprint/access/permissions.py:348
#: src/octoprint/access/permissions.py:364
msgid "Allows to change the timelapse settings and delete or render unrendered timelapses. Includes the \"Timelapse List\",\"Timelapse Delete\" and \"Timelapse Download\" permissions"
msgstr "Erlaubt die Änderung von Zeitraffereinstellungen sowie das Löschen oder Rendern unprozessierter Zeitrafferaufnahmen."
#: src/octoprint/access/permissions.py:355
msgid "Allows to manage settings"
msgstr "Erlaubt die Verwaltung der Einstellungen"
#: src/octoprint/access/permissions.py:371
msgid "Allows to read non sensitive settings. Mandatory for the default UI to work."
msgstr "Erlaubt lesenden Zugriff auf allgemeine Einstellungen (jedoch keine kritischen). Obligatorisch für die korrekte Funktion des Userinterfaces."
#: src/octoprint/access/permissions.py:376
msgid "Allows to manage settings and also to read sensitive settings"
msgstr "Erlaubt vollen Zugriff auf alle Einstellungen"
#: src/octoprint/plugins/action_command_prompt/__init__.py:69
msgid "Allows to see and interact with printer prompts"
@@ -210,13 +213,13 @@ msgid "You can edit your announcement subscriptions under Settings > Announcemen
msgstr "Du kannst deine Benachrichtigungsabonnements unter Einstellungen > Benachrichtigungen konfigurieren."
#: src/octoprint/plugins/announcements/static/js/announcements.js:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1084
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1085
#: src/octoprint/static/js/app/viewmodels/loginstate.js:117
msgid "Later"
msgstr "Später"
#: src/octoprint/plugins/announcements/static/js/announcements.js:282
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1091
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1092
msgid "Mark read"
msgstr "Gelesen"
@@ -269,16 +272,16 @@ msgstr "Aktionen"
msgid "Refresh Announcements"
msgstr "Ankündigungen aktualisieren"
#: src/octoprint/plugins/appkeys/__init__.py:123
#: src/octoprint/plugins/appkeys/__init__.py:122
msgid "Allows administrating all application keys"
msgstr "Erlaubt die Administration aller Applicationkeys"
#: src/octoprint/plugins/appkeys/__init__.py:131
#: src/octoprint/plugins/appkeys/__init__.py:132
#: src/octoprint/plugins/appkeys/__init__.py:133
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:439
#: src/octoprint/plugins/appkeys/__init__.py:438
msgid "Without this plugin third party clients will no longer be able to obtain an API key without you manually copy-pasting it."
msgstr "Ohne dieses Plugin können Third Party Clients keine API Keys mehr erlangen, ohne dass du sie manuell übertragen musst."
@@ -664,13 +667,13 @@ msgid "Server Commands"
msgstr "Serverbefehle"
#: src/octoprint/plugins/corewizard/subwizards.py:50
#: src/octoprint/server/views.py:603
#: src/octoprint/server/views.py:642
msgid "Webcam & Timelapse"
msgstr "Webcam & Zeitraffer"
#: src/octoprint/plugins/corewizard/subwizards.py:65
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:609
#: src/octoprint/server/views.py:648
msgid "Access Control"
msgstr "Zugangsbeschränkung"
@@ -1221,36 +1224,40 @@ msgstr "Entfernen"
msgid "Add"
msgstr "Hinzufügen"
#: src/octoprint/plugins/pi_support/__init__.py:219
#: src/octoprint/plugins/pi_support/__init__.py:199
msgid "Allows to check for the Pi's throttling status and environment info"
msgstr "Erlaubt die Abfrage des Throttlestatus und der Umgebungsinformationen des Raspberry Pis."
#: src/octoprint/plugins/pi_support/__init__.py:235
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr "Pi Support"
#: src/octoprint/plugins/pi_support/__init__.py:317
#: src/octoprint/plugins/pi_support/__init__.py:333
msgid "Without this plugin OctoPrint will no longer be able to provide additional information about your Pi, which will make it more tricky to help you if you need support."
msgstr "Ohne dieses Plugin kann OctoPrint nicht mehr zusätzliche Informationen über deinen Pi Instanz zur Verfügung stellen, was es ggf. schwieriger macht, dir zu helfen, falls du Support brauchst."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "running on"
msgstr "auf"
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "OctoPi"
msgstr "OctoPi"
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:74
msgid "Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi."
msgstr "Zu niedrige Spannung. Stelle sicher, dass dein Netzteil und die Verkabelung dem Pi genug Strom liefern."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:75
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
msgstr "Heruntertaktung aufgrund von Überhitzung. Verbessere die Kühlung von CPU und GPU."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:76
msgid "A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up."
msgstr "Ein blinkendes Symbol zeigt ein aktuelles Problem an, ein nicht blinkendes ein Problem, das irgendwann seit dem Bootup des Pis aufgetreten ist."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:77
msgid "Click the symbol in the navbar for more information."
msgstr "Klick für weitere Informationen auf das Symbol in der Navbar."
@@ -1315,308 +1322,308 @@ msgstr "Es gibt eine Nachricht zu einem deiner installierten Plugins."
msgid "There are %(count)d plugin notices for one or more of your installed plugins."
msgstr "Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten Plugins."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
msgid "Installing plugin..."
msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:310
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:458
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:615
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:665
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:697
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:906
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:311
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:616
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:698
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:312
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:617
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:667
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:699
msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480
#, python-format
msgid "You are about to disable \"%(name)s\"."
msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:483
msgid "This is not recommended"
msgstr "Das ist nicht empfohlen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
msgid "Do you still want to disable it?"
msgstr "Möchtest du es immer noch deaktivieren?"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
msgid "Keep enabled"
msgstr "Aktiviert lassen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487
msgid "Disable anyway"
msgstr "Trotzdem deaktivieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#, python-format
msgid "You are about to disable \"%(name)s\""
msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:496
msgid "Disable plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:553
#, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr "Installiere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:559
#, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:627
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#, python-format
msgid "You are about to uninstall the plugin \"%(name)s\""
msgstr "Du bist im Begriff \"%(name)s\" zu deinstallieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:629
msgid "Keep installed"
msgstr "Installiert lassen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:630
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
msgid "Uninstall"
msgstr "Deinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:632
msgid "Uninstall & clean up data"
msgstr "Deinstallieren & Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
msgid "Cleaning up plugin data..."
msgstr "Lösche Plugindaten..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
#, python-format
msgid "Cleaning up data of plugin \"%(name)s\""
msgstr "Lösche Daten von Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:677
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#, python-format
msgid "You are about to cleanup the plugin data of \"%(name)s\". This operation cannot be reversed."
msgstr "Du bist im Begriff, die Daten des Plugins \"%(name)s\" zu löschen. Dieser Vorgang kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
msgid "Keep data"
msgstr "Daten behalten"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680
msgid "Cleanup data"
msgstr "Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:691
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:692
msgid "Cleaning up all left over plugin data..."
msgstr "Übergebliebene Plugindaten werden gelöscht..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:709
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
msgid "You are about to cleanup left over plugin settings and data of plugins no longer installed. This operation cannot be reversed."
msgstr "Du bist im Begriff, Daten und Einstellungen von Plugins zu löschen, die nicht mehr installiert sind. Dieser Vorgang kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
msgid "Cleanup all data"
msgstr "Alle Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Reinstall"
msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:271
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:287
msgid "Install"
msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
msgid "Disabled"
msgstr "Deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Incompatible"
msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:824
msgid "Plugin management log"
msgstr "Pluginmanagementlog"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832
#, python-format
msgid "%(count)d earlier actions..."
msgstr "%(count)d frühere Aktionen..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834
#, python-format
msgid "%(count)d earlier action"
msgstr "%(count)d frühere Aktion"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:844
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845
#, python-format
msgid "Install <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> installiert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849
#, python-format
msgid "Uninstall <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> deinstalliert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853
#, python-format
msgid "Enable <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> aktiviert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:856
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857
#, python-format
msgid "Disable <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> deaktiviert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:860
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:861
#, python-format
msgid "Cleanup <em>%(plugin)s</em>: %(result)s"
msgstr "Löschen der Daten von <em>%(plugin)s</em>: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:864
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865
#, python-format
msgid "Cleanup all: %(result)s"
msgstr "Alle Daten löschen: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:881
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:882
msgid "A restart is needed for the changes to take effect."
msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:889
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890
msgid "Restart now"
msgstr "Jetzt neu starten"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:894
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895
msgid "<strong>This will restart your OctoPrint server.</strong></p><p>This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)."
msgstr "<strong>Dies wird deinen OctoPrint Server neu starten</strong></p><p>Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:900
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
msgid "Restart in progress"
msgstr "Neustart findet statt"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:902
msgid "The server is now being restarted in the background"
msgstr "Der Server wird nun im Hintergrund neu gestartet"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:908
msgid "Trying to restart the server produced an error, please check octoprint.log for details. You'll have to restart manually."
msgstr "Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. Bitte konsultiere octoprint.log für Details. Du musst manuell neu starten."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:921
msgid "A refresh is needed for the changes to take effect."
msgstr "Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:927
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:928
#: src/octoprint/templates/overlays/reloadui.jinja2:14
msgid "Reload now"
msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:936
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:937
msgid "A reconnect to the printer is needed for the changes to take effect."
msgstr "Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:974
msgid "Error!"
msgstr "Fehler!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:976
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:977
msgid "Done!"
msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1002
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1003
msgid "Blacklisted"
msgstr "Geblacklistet"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1004
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1005
msgid "Disabled due to active safe mode"
msgstr "Deaktiviert wegen aktiviertem Safe Mode"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1006
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1007
msgid "Enable Plugin"
msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1009
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1010
msgid "Disable Plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1029
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1030
#, python-format
msgid "There are %(count)d notices (%(important)d marked as important) available regarding this plugin - click to show!"
msgstr "Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1031
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1032
#, python-format
msgid "There are %(count)d notices available regarding this plugin - click to show!"
msgstr "Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1035
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1036
msgid "There is an important notice available regarding this plugin - click to show!"
msgstr "Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1037
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1038
msgid "There is a notice available regarding this plugin - click to show!"
msgstr "Es gibt eine Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1051
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1052
#, python-format
msgid "Important notice regarding plugin \"%(name)s\""
msgstr "Wichtige Nachricht zu Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1053
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1054
#, python-format
msgid "Notice regarding plugin \"%(name)s\""
msgstr "Nachricht zu Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1060
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1061
#, python-format
msgid "Affected versions: %(versions)s"
msgstr "Betroffene Versionen: %(versions)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1062
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1063
msgid "Affected versions: all"
msgstr "Betroffene Versionen: alle"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1067
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1068
msgid "Read more..."
msgstr "Mehr..."
@@ -1653,7 +1660,7 @@ msgid "\n"
msgstr "OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher ist es nicht möglich, neue Plugins aus dem Pluginrepository oder von URL zu installieren."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:39
#: src/octoprint/server/views.py:515
#: src/octoprint/server/views.py:554
msgid "Plugins"
msgstr "Plugins"
@@ -1723,6 +1730,10 @@ msgstr "Mit OctoPrint gebundlet"
msgid "Cannot be uninstalled through OctoPrint"
msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Incompatible to OctoPrint or the underlying Python environment"
msgstr "Inkompatibel zu OctoPrint oder der Pythonumgebung"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Restart of OctoPrint needed for changes to take effect"
msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden"
@@ -2002,7 +2013,7 @@ msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1134
#: src/octoprint/server/views.py:607
#: src/octoprint/server/views.py:646
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
@@ -2578,105 +2589,105 @@ msgstr "\n"
" Für Details, was genau getrackt wird, schau bitte auf <a href=\"https://tracking.octoprint.org\" target=\"_blank\" rel=\"noopener noreferrer\">tracking.octoprint.org</a>\n"
" sowie die <a href=\"https://tracking.octoprint.org/privacy\" target=\"_blank\" rel=\"noopener noreferrer\">Privacy Policy auf tracking.octoprint.org</a>.\n"
#: src/octoprint/server/views.py:574
#: src/octoprint/server/views.py:613
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:12
msgid "Connection"
msgstr "Verbindung"
#: src/octoprint/server/views.py:575
#: src/octoprint/server/views.py:614
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr "Status"
#: src/octoprint/server/views.py:576
#: src/octoprint/server/views.py:615
msgid "Files"
msgstr "Dateien"
#: src/octoprint/server/views.py:582
#: src/octoprint/server/views.py:621
msgid "Temperature"
msgstr "Temperatur"
#: src/octoprint/server/views.py:583
#: src/octoprint/server/views.py:622
msgid "Control"
msgstr "Steuerung"
#: src/octoprint/server/views.py:584
#: src/octoprint/server/views.py:623
msgid "GCode Viewer"
msgstr "GCode Viewer"
#: src/octoprint/server/views.py:585
#: src/octoprint/server/views.py:624
msgid "Terminal"
msgstr "Terminal"
#: src/octoprint/server/views.py:586
#: src/octoprint/server/views.py:625
#: src/octoprint/templates/sidebar/state.jinja2:9
msgid "Timelapse"
msgstr "Zeitraffer"
#: src/octoprint/server/views.py:592
#: src/octoprint/server/views.py:631
msgid "Printer"
msgstr "Drucker"
#: src/octoprint/server/views.py:594
#: src/octoprint/server/views.py:633
msgid "Serial Connection"
msgstr "Serielle Verbindung"
#: src/octoprint/server/views.py:595
#: src/octoprint/server/views.py:634
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr "Druckerprofile"
#: src/octoprint/server/views.py:596
#: src/octoprint/server/views.py:635
msgid "Temperatures"
msgstr "Temperaturen"
#: src/octoprint/server/views.py:597
#: src/octoprint/server/views.py:636
msgid "Terminal Filters"
msgstr "Terminalfilter"
#: src/octoprint/server/views.py:598
#: src/octoprint/server/views.py:637
msgid "GCODE Scripts"
msgstr "GCODE Scripts"
#: src/octoprint/server/views.py:600 src/octoprint/server/views.py:602
#: src/octoprint/server/views.py:639 src/octoprint/server/views.py:641
msgid "Features"
msgstr "Funktionen"
#: src/octoprint/server/views.py:604
#: src/octoprint/server/views.py:643
msgid "GCODE Visualizer"
msgstr "GCode Viewer"
#: src/octoprint/server/views.py:605
#: src/octoprint/server/views.py:644
msgid "API"
msgstr "API"
#: src/octoprint/server/views.py:610
#: src/octoprint/server/views.py:649
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:12
msgid "Folders"
msgstr "Verzeichnisse"
#: src/octoprint/server/views.py:611
#: src/octoprint/server/views.py:650
msgid "Appearance"
msgstr "Aussehen"
#: src/octoprint/server/views.py:612
#: src/octoprint/server/views.py:651
msgid "Server"
msgstr "Server"
#: src/octoprint/server/views.py:618
#: src/octoprint/server/views.py:657
msgid "Access"
msgstr "Zugriff"
#: src/octoprint/server/views.py:619
#: src/octoprint/server/views.py:658
msgid "Interface"
msgstr "Interface"
#: src/octoprint/server/views.py:635
#: src/octoprint/server/views.py:674
msgid "Start"
msgstr "Start"
#: src/octoprint/server/views.py:636
#: src/octoprint/server/views.py:675
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr "Beenden"
@@ -2730,98 +2741,98 @@ msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ih
msgid "The server appears to be offline, at least I'm not getting any response from it. I <strong>could not reconnect automatically</strong>, but you may try a manual reconnect using the button below."
msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich <strong>konnte mich nicht automatisch neu verbinden</strong>, aber Du kannst mittels des folgenden Buttons einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:162
#: src/octoprint/static/js/app/dataupdater.js:168
msgid "Unknown"
msgstr "Unbekannt"
#: src/octoprint/static/js/app/dataupdater.js:165
#: src/octoprint/static/js/app/dataupdater.js:171
msgid "Command line flag"
msgstr "Kommandozeilenflag"
#: src/octoprint/static/js/app/dataupdater.js:169
#: src/octoprint/static/js/app/dataupdater.js:175
msgid "Setting in config.yaml"
msgstr "Einstellung in config.yaml"
#: src/octoprint/static/js/app/dataupdater.js:173
#: src/octoprint/static/js/app/dataupdater.js:179
msgid "Problem during last startup"
msgstr "Problem während des letzten Starts"
#: src/octoprint/static/js/app/dataupdater.js:179
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Safe mode is active"
msgstr "Sicherheitsmodus ist aktiv"
#: src/octoprint/static/js/app/dataupdater.js:180
#: src/octoprint/static/js/app/dataupdater.js:186
#, python-format
msgid "<p>The server is currently running in safe mode. Third party plugins and language packs are disabled and cannot be enabled.</p><p>Reason: %(reason)s</p>"
msgstr "<p>Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden.</p><p>Grund: %(reason)s</p>"
#: src/octoprint/static/js/app/dataupdater.js:229
#: src/octoprint/static/js/app/dataupdater.js:235
#: src/octoprint/static/js/app/viewmodels/files.js:963
#: src/octoprint/static/js/app/viewmodels/files.js:970
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:265
#: src/octoprint/static/js/app/dataupdater.js:276
#: src/octoprint/static/js/app/dataupdater.js:271
#: src/octoprint/static/js/app/dataupdater.js:282
msgid "Error reported by printer"
msgstr "Fehler vom Drucker gemeldet"
#: src/octoprint/static/js/app/dataupdater.js:266
#: src/octoprint/static/js/app/dataupdater.js:272
#, python-format
msgid "Your printer's firmware reported an error. Due to that the ongoing print job will be cancelled. Reported error: %(firmwareError)s"
msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wird der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s"
#: src/octoprint/static/js/app/dataupdater.js:277
#: src/octoprint/static/js/app/dataupdater.js:283
#, python-format
msgid "Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: %(error)s"
msgstr "Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:283
#: src/octoprint/static/js/app/dataupdater.js:289
msgid "Communication error"
msgstr "Kommunikationsfehler"
#: src/octoprint/static/js/app/dataupdater.js:284
#: src/octoprint/static/js/app/dataupdater.js:290
#, python-format
msgid "There was a communication error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s"
msgstr "Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:288
#: src/octoprint/static/js/app/dataupdater.js:294
msgid "Error connecting to printer"
msgstr "Fehler bei der Verbindung zum Drucker"
#: src/octoprint/static/js/app/dataupdater.js:289
#: src/octoprint/static/js/app/dataupdater.js:295
#, python-format
msgid "There was an error while trying to connect to your printer. Error: %(error)s"
msgstr "Es gab einen Fehler bei der Verbindung zum Drucker. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:293
#: src/octoprint/static/js/app/dataupdater.js:299
msgid "Error starting a print"
msgstr "Fehler beim Start eines Drucks"
#: src/octoprint/static/js/app/dataupdater.js:294
#: src/octoprint/static/js/app/dataupdater.js:300
#, python-format
msgid "There was an error while trying to start a print job. Error: %(error)s"
msgstr "Es gab einen Fehler beim Start eines Drucks. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:303
#: src/octoprint/static/js/app/dataupdater.js:309
msgid "Unknown error"
msgstr "Unbekannter Fehler"
#: src/octoprint/static/js/app/dataupdater.js:304
#: src/octoprint/static/js/app/dataupdater.js:310
#, python-format
msgid "There was an unknown error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s"
msgstr "Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:324
#: src/octoprint/static/js/app/dataupdater.js:330
msgid "It looks like your printer reset while a connection was active. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD."
msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird."
#: src/octoprint/static/js/app/dataupdater.js:327
#: src/octoprint/static/js/app/dataupdater.js:333
msgid "It looks like your printer reset while a connection was active. Due to this the ongoing job was aborted. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD."
msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird."
#: src/octoprint/static/js/app/dataupdater.js:335
#: src/octoprint/static/js/app/dataupdater.js:341
msgid "Printer reset detected"
msgstr "Druckerreset erkannt"
@@ -3000,6 +3011,10 @@ msgstr "Breche ab"
msgid "Finishing"
msgstr "Beende"
#: src/octoprint/static/js/app/main.js:813
msgid "Loading OctoPrint's UI, please wait..."
msgstr "Lade OctoPrints Userinterface, bitte warten..."
#: src/octoprint/static/js/app/viewmodels/access.js:94
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"
@@ -6918,3 +6933,6 @@ msgstr "Zeitrafferaufnahme rendern"
#~ " statt sie wie die eines anonymen "
#~ "/ nicht eingeloggten Users zu behandeln."
#~ " Das war früher der Default."
#~ msgid "Allows to manage settings"
#~ msgstr "Erlaubt die Verwaltung der Einstellungen"
+9
View File
@@ -33,6 +33,7 @@ try:
except ImportError:
import Queue as queue
# noinspection PyCompatibility
from past.builtins import basestring, unicode
logger = logging.getLogger(__name__)
@@ -1834,3 +1835,11 @@ def timing(f):
logging.getLogger("octoprint.util.timing").debug("func:{} took {:0.2f}s".format(f.__name__,
end - start))
return decorator
def generate_api_key():
# noinspection PyCompatibility
from builtins import bytes
import uuid
return ''.join('%02X' % z for z in bytes(uuid.uuid4().bytes))
+1 -1
View File
@@ -31,7 +31,7 @@ class IspBase():
def chipErase(self):
self.sendISP([0xAC, 0x80, 0x00, 0x00])
class IspError():
class IspError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
+2 -2
View File
@@ -98,8 +98,8 @@ class Stk500v2(ispBase.IspBase):
for c in data:
message += struct.pack(">B", c)
checksum = 0
for c in message:
checksum ^= ord(c)
for c in bytearray(message):
checksum ^= c
message += struct.pack(">B", checksum)
try:
self.serial.write(message)
-2
View File
@@ -449,8 +449,6 @@ class MachineCom(object):
self._hello_sent = 0
self._trigger_ok_for_m29 = settings().getBoolean(["serial", "triggerOkForM29"])
self._hello_command = settings().get(["serial", "helloCommand"])
self._alwaysSendChecksum = settings().getBoolean(["serial", "alwaysSendChecksum"])
self._neverSendChecksum = settings().getBoolean(["serial", "neverSendChecksum"])
self._sendChecksumWithUnknownCommands = settings().getBoolean(["serial", "sendChecksumWithUnknownCommands"])
+59 -2
View File
@@ -11,10 +11,16 @@ import logging
import re
import time
from . import to_unicode
from . import to_unicode, to_native_str
from .platform import get_os
from past.builtins import unicode
try:
import queue
except ImportError: # pragma: no cover
import Queue as queue
# These regexes are based on the colorama package
# Author: Jonathan Hartley
# License: BSD-3 (https://github.com/tartley/colorama/blob/master/LICENSE.txt)
@@ -164,7 +170,25 @@ class CommandlineCaller(object):
self._logger.debug("Calling: {}".format(joined_command))
self.on_log_call(joined_command)
kwargs.update(dict(async_=True, stdout=sarge.Capture(), stderr=sarge.Capture()))
# if we are running under windows, make sure there are no unicode strings in the env
if get_os() == "windows" and "env" in kwargs:
kwargs["env"] = dict((k, to_native_str(v)) for k, v in kwargs["env"].items())
delimiter = kwargs.get("delimiter", b'\n')
try:
kwargs.pop("delimiter")
except KeyError:
pass
buffer_size = kwargs.get("buffer_size", -1)
try:
kwargs.pop("buffer_size")
except KeyError:
pass
kwargs.update(dict(async_=True,
stdout=DelimiterCapture(delimiter=delimiter, buffer_size=buffer_size),
stderr=DelimiterCapture(delimiter=delimiter, buffer_size=buffer_size)))
p = sarge.run(command, **kwargs)
while len(p.commands) == 0:
@@ -221,3 +245,36 @@ class CommandlineCaller(object):
def _preprocess_lines(self, *lines):
return lines
class DelimiterCapture(sarge.Capture):
def __init__(self, delimiter=b'\n', *args, **kwargs):
self._delimiter = delimiter
sarge.Capture.__init__(self, *args, **kwargs)
def readline(self, size=-1, block=True, timeout=None):
if not self.streams_open():
block = False
timeout = None
else:
timeout = timeout or self.timeout
if self.current is None:
try:
self.current = self.buffer.get(block, timeout)
except queue.Empty:
self.current = b''
while self._delimiter not in self.current:
try:
self.current += self.buffer.get(block, timeout)
except queue.Empty:
break
if self._delimiter not in self.current:
result = self.current
self.current = None
else:
i = self.current.index(self._delimiter)
if 0 < size < i:
i = size - 1
result = self.current[:i + 1]
self.current = self.current[i + 1:]
return result
+4
View File
@@ -45,6 +45,10 @@ else:
HAS_V6 = False
def is_lan_address(address, additional_private=None):
if not address:
# no address is LAN address
return True
try:
address = unmap_v4_as_v6(address)
address = strip_interface_tag(address)
+486
View File
@@ -0,0 +1,486 @@
# -*- coding: utf-8 -*-
"""
flask_principal
~~~~~~~~~~~~~~~
Identity management for Flask.
:copyright: (c) 2012 by Ali Afshar.
:license: MIT, see LICENSE for more details.
"""
from __future__ import with_statement
__version__ = '0.4.0'
import sys
from functools import partial, wraps
from collections import deque
from collections import namedtuple
from flask import g, session, current_app, abort, request
from flask.signals import Namespace
PY3 = sys.version_info[0] == 3
signals = Namespace()
identity_changed = signals.signal('identity-changed', doc="""
Signal sent when the identity for a request has been changed.
Actual name: ``identity-changed``
Authentication providers should send this signal when authentication has been
successfully performed. Flask-Principal connects to this signal and
causes the identity to be saved in the session.
For example::
from flaskext.principal import Identity, identity_changed
def login_view(req):
username = req.form.get('username')
# check the credentials
identity_changed.send(app, identity=Identity(username))
""")
identity_loaded = signals.signal('identity-loaded', doc="""
Signal sent when the identity has been initialised for a request.
Actual name: ``identity-loaded``
Identity information providers should connect to this signal to perform two
major activities:
1. Populate the identity object with the necessary authorization provisions.
2. Load any additional user information.
For example::
from flaskext.principal import identity_loaded, RoleNeed, UserNeed
@identity_loaded.connect
def on_identity_loaded(sender, identity):
# Get the user information from the db
user = db.get(identity.name)
# Update the roles that a user can provide
for role in user.roles:
identity.provides.add(RoleNeed(role.name))
# Save the user somewhere so we only look it up once
identity.user = user
""")
Need = namedtuple('Need', ['method', 'value'])
"""A required need
This is just a named tuple, and practically any tuple will do.
The ``method`` attribute can be used to look up element 0, and the ``value``
attribute can be used to look up element 1.
"""
UserNeed = partial(Need, 'id')
UserNeed.__doc__ = """A need with the method preset to `"id"`."""
RoleNeed = partial(Need, 'role')
RoleNeed.__doc__ = """A need with the method preset to `"role"`."""
TypeNeed = partial(Need, 'type')
TypeNeed.__doc__ = """A need with the method preset to `"type"`."""
ActionNeed = partial(Need, 'action')
TypeNeed.__doc__ = """A need with the method preset to `"action"`."""
ItemNeed = namedtuple('ItemNeed', ['method', 'value', 'type'])
"""A required item need
An item need is just a named tuple, and practically any tuple will do. In
addition to other Needs, there is a type, for example this could be specified
as::
ItemNeed('update', 27, 'posts')
('update', 27, 'posts') # or like this
And that might describe the permission to update a particular blog post. In
reality, the developer is free to choose whatever convention the permissions
are.
"""
class PermissionDenied(RuntimeError):
"""Permission denied to the resource"""
class Identity(object):
"""Represent the user's identity.
:param id: The user id
:param auth_type: The authentication type used to confirm the user's
identity.
The identity is used to represent the user's identity in the system. This
object is created on login, or on the start of the request as loaded from
the user's session.
Once loaded it is sent using the `identity-loaded` signal, and should be
populated with additional required information.
Needs that are provided by this identity should be added to the `provides`
set after loading.
"""
def __init__(self, id, auth_type=None):
self.id = id
self.auth_type = auth_type
self.provides = set()
def can(self, permission):
"""Whether the identity has access to the permission.
:param permission: The permission to test provision for.
"""
return permission.allows(self)
def __repr__(self):
return '<{0} id="{1}" auth_type="{2}" provides={3}>'.format(
self.__class__.__name__, self.id, self.auth_type, self.provides
)
class AnonymousIdentity(Identity):
"""An anonymous identity"""
def __init__(self):
Identity.__init__(self, None)
class IdentityContext(object):
"""The context of an identity for a permission.
.. note:: The principal is usually created by the flaskext.Permission.require method
call for normal use-cases.
The principal behaves as either a context manager or a decorator. The
permission is checked for provision in the identity, and if available the
flow is continued (context manager) or the function is executed (decorator).
"""
def __init__(self, permission, http_exception=None):
self.permission = permission
self.http_exception = http_exception
"""The permission of this principal
"""
@property
def identity(self):
"""The identity of this principal
"""
return g.identity
def can(self):
"""Whether the identity has access to the permission
"""
return self.identity.can(self.permission)
def __call__(self, f):
@wraps(f)
def _decorated(*args, **kw):
with self:
rv = f(*args, **kw)
return rv
return _decorated
def __enter__(self):
# check the permission here
if not self.can():
if self.http_exception:
abort(self.http_exception)
raise PermissionDenied(self.permission)
def __exit__(self, *args):
return False
class Permission(object):
"""Represents needs, any of which must be present to access a resource
:param needs: The needs for this permission
"""
def __init__(self, *needs):
"""A set of needs, any of which must be present in an identity to have
access.
"""
self.needs = set(needs)
self.excludes = set()
def _bool(self):
return bool(self.can())
def __nonzero__(self):
"""Equivalent to ``self.can()``.
"""
return self._bool()
def __bool__(self):
"""Equivalent to ``self.can()``.
"""
return self._bool()
def __and__(self, other):
"""Does the same thing as ``self.union(other)``
"""
return self.union(other)
def __or__(self, other):
"""Does the same thing as ``self.difference(other)``
"""
return self.difference(other)
def __contains__(self, other):
"""Does the same thing as ``other.issubset(self)``.
"""
return other.issubset(self)
def __repr__(self):
return '<{0} needs={1} excludes={2}>'.format(
self.__class__.__name__, self.needs, self.excludes
)
def require(self, http_exception=None):
"""Create a principal for this permission.
The principal may be used as a context manager, or a decroator.
If ``http_exception`` is passed then ``abort()`` will be called
with the HTTP exception code. Otherwise a ``PermissionDenied``
exception will be raised if the identity does not meet the
requirements.
:param http_exception: the HTTP exception code (403, 401 etc)
"""
return IdentityContext(self, http_exception)
def test(self, http_exception=None):
"""
Checks if permission available and raises relevant exception
if not. This is useful if you just want to check permission
without wrapping everything in a require() block.
This is equivalent to::
with permission.require():
pass
"""
with self.require(http_exception):
pass
def reverse(self):
"""
Returns reverse of current state (needs->excludes, excludes->needs)
"""
p = Permission()
p.needs.update(self.excludes)
p.excludes.update(self.needs)
return p
def union(self, other):
"""Create a new permission with the requirements of the union of this
and other.
:param other: The other permission
"""
p = Permission(*self.needs.union(other.needs))
p.excludes.update(self.excludes.union(other.excludes))
return p
def difference(self, other):
"""Create a new permission consisting of requirements in this
permission and not in the other.
"""
p = Permission(*self.needs.difference(other.needs))
p.excludes.update(self.excludes.difference(other.excludes))
return p
def issubset(self, other):
"""Whether this permission needs are a subset of another
:param other: The other permission
"""
return (
self.needs.issubset(other.needs) and
self.excludes.issubset(other.excludes)
)
def allows(self, identity):
"""Whether the identity can access this permission.
:param identity: The identity
"""
if self.needs and not self.needs.intersection(identity.provides):
return False
if self.excludes and self.excludes.intersection(identity.provides):
return False
return True
def can(self):
"""Whether the required context for this permission has access
This creates an identity context and tests whether it can access this
permission
"""
return self.require().can()
class Denial(Permission):
"""
Shortcut class for passing excluded needs.
"""
def __init__(self, *excludes):
self.excludes = set(excludes)
self.needs = set()
def session_identity_loader():
if 'identity.id' in session and 'identity.auth_type' in session:
identity = Identity(session['identity.id'],
session['identity.auth_type'])
return identity
def session_identity_saver(identity):
session['identity.id'] = identity.id
session['identity.auth_type'] = identity.auth_type
session.modified = True
class Principal(object):
"""Principal extension
:param app: The flask application to extend
:param use_sessions: Whether to use sessions to extract and store
identification.
:param skip_static: Whether to ignore static endpoints.
"""
def __init__(self, app=None, use_sessions=True, skip_static=False):
self.identity_loaders = deque()
self.identity_savers = deque()
# XXX This will probably vanish for a better API
self.use_sessions = use_sessions
self.skip_static = skip_static
if app is not None:
self.init_app(app)
def _init_app(self, app):
from warnings import warn
warn(DeprecationWarning(
'_init_app is deprecated, use the new init_app '
'method instead.'), stacklevel=1
)
self.init_app(app)
def init_app(self, app):
if hasattr(app, 'static_url_path'):
self._static_path = app.static_url_path
else:
self._static_path = app.static_path
app.before_request(self._on_before_request)
identity_changed.connect(self._on_identity_changed, app)
if self.use_sessions:
self.identity_loader(session_identity_loader)
self.identity_saver(session_identity_saver)
def set_identity(self, identity):
"""Set the current identity.
:param identity: The identity to set
"""
self._set_thread_identity(identity)
for saver in self.identity_savers:
saver(identity)
def identity_loader(self, f):
"""Decorator to define a function as an identity loader.
An identity loader function is called before request to find any
provided identities. The first found identity is used to load from.
For example::
app = Flask(__name__)
principals = Principal(app)
@principals.identity_loader
def load_identity_from_weird_usecase():
return Identity('ali')
"""
self.identity_loaders.appendleft(f)
return f
def identity_saver(self, f):
"""Decorator to define a function as an identity saver.
An identity loader saver is called when the identity is set to persist
it for the next request.
For example::
app = Flask(__name__)
principals = Principal(app)
@principals.identity_saver
def save_identity_to_weird_usecase(identity):
my_special_cookie['identity'] = identity
"""
self.identity_savers.appendleft(f)
return f
def _set_thread_identity(self, identity):
g.identity = identity
identity_loaded.send(current_app._get_current_object(),
identity=identity)
def _on_identity_changed(self, app, identity):
if self._is_static_route():
return
self.set_identity(identity)
def _on_before_request(self):
if self._is_static_route():
return
g.identity = AnonymousIdentity()
for loader in self.identity_loaders:
identity = loader()
if identity is not None:
self.set_identity(identity)
return
def _is_static_route(self):
return (
self.skip_static and
request.path.startswith(self._static_path)
)
+2 -1
View File
@@ -44,7 +44,8 @@ class UtilNetTest(unittest.TestCase):
("11.1.2.3", ["11/8"], True),
("12.1.1.123", [], True),
("2a01:4f8:1c0c:6958::1:23", [], True),
("fe80::89f3:31bb:ced0:2093%wlan0", [], True)
("fe80::89f3:31bb:ced0:2093%wlan0", [], True),
(None, [], True)
)
@ddt.unpack
@mock.patch("netifaces.interfaces", side_effect=patched_interfaces)
Binary file not shown.
+190 -172
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2019-11-22 18:38+0100\n"
"PO-Revision-Date: 2019-11-25 10:47+0100\n"
"POT-Creation-Date: 2020-02-10 16:58+0100\n"
"PO-Revision-Date: 2020-02-10 16:59+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language: de\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/language/de/)\n"
@@ -19,86 +19,89 @@ msgstr ""
"Generated-By: Babel 2.6.0\n"
"X-Generator: Poedit 2.0.4\n"
#: src/octoprint/access/permissions.py:256
#: src/octoprint/access/permissions.py:272
msgid "Admin is allowed to do everything"
msgstr "Admins dürfen alles tun"
#: src/octoprint/access/permissions.py:262
msgid "Allows to gather status information, e.g. job progress, printer state, temperatures, ..."
msgstr "Erlaubt Zugriff auf Statusinformationen wie Druckfortschritt, Druckerstatus, Temperaturen, ..."
#: src/octoprint/access/permissions.py:278
msgid "Allows to gather basic status information, e.g. job progress, printer state, temperatures, ... Mandatory for the default UI to work"
msgstr "Erlaubt Zugriff auf Statusinformationen wie Druckfortschritt, Druckerstatus, Temperaturen, ... Obligatorisch für die korrekte Funktion des Userinterfaces."
#: src/octoprint/access/permissions.py:268
#: src/octoprint/access/permissions.py:285
msgid "Allows to connect to and disconnect from a printer"
msgstr "Erlaubt Verbindung und Verbindungstrennung zum Drucker"
#: src/octoprint/access/permissions.py:273
#: src/octoprint/access/permissions.py:290
msgid "Allows to watch the webcam stream"
msgstr "Erlaubt Einbettung des Webcamstreams"
#: src/octoprint/access/permissions.py:278
#: src/octoprint/access/permissions.py:295
msgid "Allows to run system commands, e.g. restart OctoPrint, shutdown or reboot the system"
msgstr "Erlaubt die Ausführung von Systembefehlen, z.B. OctoPrint neu starten, System herunterfahren oder neu starten, ..."
#: src/octoprint/access/permissions.py:284
#: src/octoprint/access/permissions.py:301
msgid "Allows to retrieve a list of all uploaded files, includingtheir metadata (e.g. date, file size, analysis results, ...)"
msgstr "Erlaubt das Abrufen eines Liste aller Uploads, inkl. ihrer Metadaten (z.B. Datum, Dateigröße, Analyseergebnisse, …)"
#: src/octoprint/access/permissions.py:289
#: src/octoprint/access/permissions.py:306
msgid "Allows users to upload new files"
msgstr "Erlaubt das Hochladen neuer Dateien"
#: src/octoprint/access/permissions.py:293
#: src/octoprint/access/permissions.py:310
msgid "Allows users to download files. The GCODE viewer is affected by this as well."
msgstr "Erlaubt das Herunterladen von Dateien. Der GCODE viewer benötigt dieses Recht."
#: src/octoprint/access/permissions.py:298
#: src/octoprint/access/permissions.py:315
msgid "Allows users to delete files"
msgstr "Erlaubt Nutzern, Dateien zu löschen"
#: src/octoprint/access/permissions.py:302
#: src/octoprint/access/permissions.py:319
msgid "Allows to select a file for printing"
msgstr "Erlaubt die Auswahl einer Datei zum Drucken"
#: src/octoprint/access/permissions.py:307
msgid "Allows to start, pause and cancel a print job. Includes the \"Select\" permission"
msgstr "Erlaubt das starten, pausieren und abbrechen eines Druckauftrags. Beinhaltet die \"Select\" Berechtigung."
#: src/octoprint/access/permissions.py:324
msgid "Allows to start, pause and cancel a print job"
msgstr "Erlaubt das starten, pausieren und abbrechen eines Druckauftrags"
#: src/octoprint/access/permissions.py:313
msgid "Allows access to the GCODE viewer. Includes the \"File Download\"permission."
msgstr "Erlaubt den Zugriff auf den GCODE viewer. Beinhaltet die \"File Download\" Berechtigung."
#: src/octoprint/access/permissions.py:329
msgid "Allows access to the GCODE viewer if the \"File Download\"permission is also set."
msgstr "Erlaubt den Zugriff auf den GCODE viewer falls die \"File Download\" Berechtigung ebenfalls gesetzt ist."
#: src/octoprint/access/permissions.py:319
#: src/octoprint/access/permissions.py:335
msgid "Allows to watch the terminal tab but not to send commands to the printer from it"
msgstr "Erlaubt lesenden Zugriff auf das Terminal Tab. Das Senden von Befehlen zum Drucker ist nicht gestattet."
#: src/octoprint/access/permissions.py:325
#: src/octoprint/access/permissions.py:341
msgid "Allows to control of the printer by using the temperature controls,the control tab or sending commands through the terminal."
msgstr "Erlaubt vollen Zugriff auf den Drucker, inkl. Temperatur, Steuerung oder Senden individueller Befehle über das Terminal."
#: src/octoprint/access/permissions.py:331
#: src/octoprint/access/permissions.py:347
msgid "Allows to slice files"
msgstr "Erlaubt das Slicen von Dateien"
#: src/octoprint/access/permissions.py:336
#: src/octoprint/access/permissions.py:352
msgid "Allows to list timelapse videos"
msgstr "Erlaubt die Auflistung von Zeitrafferaufnahmen"
#: src/octoprint/access/permissions.py:340
#: src/octoprint/access/permissions.py:356
msgid "Allows to download timelapse videos"
msgstr "Erlaubt das Herunterladen von Zeitrafferaufnahmen"
#: src/octoprint/access/permissions.py:344
#, python-format
#: src/octoprint/access/permissions.py:360
msgid "Allows to delete timelapse videos and unrendered timelapses"
msgstr "Erlaubt das Löschen von Zeitrafferaufnahmen und ungerenderten Zeitraffern"
#: src/octoprint/access/permissions.py:348
#: src/octoprint/access/permissions.py:364
msgid "Allows to change the timelapse settings and delete or render unrendered timelapses. Includes the \"Timelapse List\",\"Timelapse Delete\" and \"Timelapse Download\" permissions"
msgstr "Erlaubt die Änderung von Zeitraffereinstellungen sowie das Löschen oder Rendern unprozessierter Zeitrafferaufnahmen."
#: src/octoprint/access/permissions.py:355
msgid "Allows to manage settings"
msgstr "Erlaubt die Verwaltung der Einstellungen"
#: src/octoprint/access/permissions.py:371
msgid "Allows to read non sensitive settings. Mandatory for the default UI to work."
msgstr "Erlaubt lesenden Zugriff auf allgemeine Einstellungen (jedoch keine kritischen). Obligatorisch für die korrekte Funktion des Userinterfaces."
#: src/octoprint/access/permissions.py:376
msgid "Allows to manage settings and also to read sensitive settings"
msgstr "Erlaubt vollen Zugriff auf alle Einstellungen"
#: src/octoprint/plugins/action_command_prompt/__init__.py:69
msgid "Allows to see and interact with printer prompts"
@@ -210,13 +213,13 @@ msgid "You can edit your announcement subscriptions under Settings > Announcemen
msgstr "Du kannst deine Benachrichtigungsabonnements unter Einstellungen > Benachrichtigungen konfigurieren."
#: src/octoprint/plugins/announcements/static/js/announcements.js:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1084
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1085
#: src/octoprint/static/js/app/viewmodels/loginstate.js:117
msgid "Later"
msgstr "Später"
#: src/octoprint/plugins/announcements/static/js/announcements.js:282
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1091
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1092
msgid "Mark read"
msgstr "Gelesen"
@@ -269,16 +272,16 @@ msgstr "Aktionen"
msgid "Refresh Announcements"
msgstr "Ankündigungen aktualisieren"
#: src/octoprint/plugins/appkeys/__init__.py:123
#: src/octoprint/plugins/appkeys/__init__.py:122
msgid "Allows administrating all application keys"
msgstr "Erlaubt die Administration aller Applicationkeys"
#: src/octoprint/plugins/appkeys/__init__.py:131
#: src/octoprint/plugins/appkeys/__init__.py:132
#: src/octoprint/plugins/appkeys/__init__.py:133
msgid "Application Keys"
msgstr "Application Keys"
#: src/octoprint/plugins/appkeys/__init__.py:439
#: src/octoprint/plugins/appkeys/__init__.py:438
msgid "Without this plugin third party clients will no longer be able to obtain an API key without you manually copy-pasting it."
msgstr "Ohne dieses Plugin können Third Party Clients keine API Keys mehr erlangen, ohne dass du sie manuell übertragen musst."
@@ -664,13 +667,13 @@ msgid "Server Commands"
msgstr "Serverbefehle"
#: src/octoprint/plugins/corewizard/subwizards.py:50
#: src/octoprint/server/views.py:603
#: src/octoprint/server/views.py:642
msgid "Webcam & Timelapse"
msgstr "Webcam & Zeitraffer"
#: src/octoprint/plugins/corewizard/subwizards.py:65
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:609
#: src/octoprint/server/views.py:648
msgid "Access Control"
msgstr "Zugangsbeschränkung"
@@ -1221,36 +1224,40 @@ msgstr "Entfernen"
msgid "Add"
msgstr "Hinzufügen"
#: src/octoprint/plugins/pi_support/__init__.py:219
#: src/octoprint/plugins/pi_support/__init__.py:199
msgid "Allows to check for the Pi's throttling status and environment info"
msgstr "Erlaubt die Abfrage des Throttlestatus und der Umgebungsinformationen des Raspberry Pis."
#: src/octoprint/plugins/pi_support/__init__.py:235
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr "Pi Support"
#: src/octoprint/plugins/pi_support/__init__.py:317
#: src/octoprint/plugins/pi_support/__init__.py:333
msgid "Without this plugin OctoPrint will no longer be able to provide additional information about your Pi, which will make it more tricky to help you if you need support."
msgstr "Ohne dieses Plugin kann OctoPrint nicht mehr zusätzliche Informationen über deinen Pi Instanz zur Verfügung stellen, was es ggf. schwieriger macht, dir zu helfen, falls du Support brauchst."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "running on"
msgstr "auf"
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "OctoPi"
msgstr "OctoPi"
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:74
msgid "Undervoltage. Make sure your power supply and cabling are providing enough power to the Pi."
msgstr "Zu niedrige Spannung. Stelle sicher, dass dein Netzteil und die Verkabelung dem Pi genug Strom liefern."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:75
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
msgstr "Heruntertaktung aufgrund von Überhitzung. Verbessere die Kühlung von CPU und GPU."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:76
msgid "A blinking symbol indicates a current issue, a non blinking symbol one that was observed some time since the Pi booted up."
msgstr "Ein blinkendes Symbol zeigt ein aktuelles Problem an, ein nicht blinkendes ein Problem, das irgendwann seit dem Bootup des Pis aufgetreten ist."
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:77
msgid "Click the symbol in the navbar for more information."
msgstr "Klick für weitere Informationen auf das Symbol in der Navbar."
@@ -1315,308 +1322,308 @@ msgstr "Es gibt eine Nachricht zu einem deiner installierten Plugins."
msgid "There are %(count)d plugin notices for one or more of your installed plugins."
msgstr "Es gibt %(count)d Nachrichten zu einem oder mehreren deiner installierten Plugins."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
msgid "Installing plugin..."
msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:310
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:458
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:615
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:665
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:697
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:906
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:311
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:616
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:698
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:312
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:617
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:667
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:699
msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480
#, python-format
msgid "You are about to disable \"%(name)s\"."
msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:483
msgid "This is not recommended"
msgstr "Das ist nicht empfohlen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
msgid "Do you still want to disable it?"
msgstr "Möchtest du es immer noch deaktivieren?"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
msgid "Keep enabled"
msgstr "Aktiviert lassen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487
msgid "Disable anyway"
msgstr "Trotzdem deaktivieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#, python-format
msgid "You are about to disable \"%(name)s\""
msgstr "Du bist im Begriff \"%(name)s\" zu deaktivieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:496
msgid "Disable plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:553
#, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr "Installiere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:559
#, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr "Reinstalliere Plugin \"%(name)s\" von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:627
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#, python-format
msgid "You are about to uninstall the plugin \"%(name)s\""
msgstr "Du bist im Begriff \"%(name)s\" zu deinstallieren."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:629
msgid "Keep installed"
msgstr "Installiert lassen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:630
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
msgid "Uninstall"
msgstr "Deinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:632
msgid "Uninstall & clean up data"
msgstr "Deinstallieren & Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
msgid "Cleaning up plugin data..."
msgstr "Lösche Plugindaten..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
#, python-format
msgid "Cleaning up data of plugin \"%(name)s\""
msgstr "Lösche Daten von Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:677
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#, python-format
msgid "You are about to cleanup the plugin data of \"%(name)s\". This operation cannot be reversed."
msgstr "Du bist im Begriff, die Daten des Plugins \"%(name)s\" zu löschen. Dieser Vorgang kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
msgid "Keep data"
msgstr "Daten behalten"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680
msgid "Cleanup data"
msgstr "Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:691
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:692
msgid "Cleaning up all left over plugin data..."
msgstr "Übergebliebene Plugindaten werden gelöscht..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:709
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
msgid "You are about to cleanup left over plugin settings and data of plugins no longer installed. This operation cannot be reversed."
msgstr "Du bist im Begriff, Daten und Einstellungen von Plugins zu löschen, die nicht mehr installiert sind. Dieser Vorgang kann nicht rückgängig gemacht werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
msgid "Cleanup all data"
msgstr "Alle Daten löschen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Reinstall"
msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:271
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:287
msgid "Install"
msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
msgid "Disabled"
msgstr "Deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Incompatible"
msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:824
msgid "Plugin management log"
msgstr "Pluginmanagementlog"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832
#, python-format
msgid "%(count)d earlier actions..."
msgstr "%(count)d frühere Aktionen..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834
#, python-format
msgid "%(count)d earlier action"
msgstr "%(count)d frühere Aktion"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:844
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845
#, python-format
msgid "Install <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> installiert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849
#, python-format
msgid "Uninstall <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> deinstalliert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853
#, python-format
msgid "Enable <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> aktiviert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:856
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857
#, python-format
msgid "Disable <em>%(plugin)s</em>: %(result)s"
msgstr "<em>%(plugin)s</em> deaktiviert: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:860
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:861
#, python-format
msgid "Cleanup <em>%(plugin)s</em>: %(result)s"
msgstr "Löschen der Daten von <em>%(plugin)s</em>: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:864
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865
#, python-format
msgid "Cleanup all: %(result)s"
msgstr "Alle Daten löschen: %(result)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:881
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:882
msgid "A restart is needed for the changes to take effect."
msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:889
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890
msgid "Restart now"
msgstr "Jetzt neu starten"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:894
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895
msgid "<strong>This will restart your OctoPrint server.</strong></p><p>This action may disrupt any ongoing print jobs (depending on your printer's controller and general setup that might also apply to prints run directly from your printer's internal storage)."
msgstr "<strong>Dies wird deinen OctoPrint Server neu starten</strong></p><p>Diese Aktion wird laufende Druckaufträge unterbrechen (abhängig von deinem Druckerkontroller und generellem Setup gilt das auch für Druckaufträge, die du direkt von der SD deines Druckers laufen lässt)."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:900
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
msgid "Restart in progress"
msgstr "Neustart findet statt"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:902
msgid "The server is now being restarted in the background"
msgstr "Der Server wird nun im Hintergrund neu gestartet"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:908
msgid "Trying to restart the server produced an error, please check octoprint.log for details. You'll have to restart manually."
msgstr "Beim Versuch, den Server neu zu starten, ist ein Fehler aufgetreten. Bitte konsultiere octoprint.log für Details. Du musst manuell neu starten."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:921
msgid "A refresh is needed for the changes to take effect."
msgstr "Ein Neuladen von OctoPrint ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:927
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:928
#: src/octoprint/templates/overlays/reloadui.jinja2:14
msgid "Reload now"
msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:936
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:937
msgid "A reconnect to the printer is needed for the changes to take effect."
msgstr "Ein Reconnect zum Drucker ist notwendig, damit die Änderungen wirksam werden."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:974
msgid "Error!"
msgstr "Fehler!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:976
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:977
msgid "Done!"
msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1002
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1003
msgid "Blacklisted"
msgstr "Geblacklistet"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1004
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1005
msgid "Disabled due to active safe mode"
msgstr "Deaktiviert wegen aktiviertem Safe Mode"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1006
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1007
msgid "Enable Plugin"
msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1009
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1010
msgid "Disable Plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1029
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1030
#, python-format
msgid "There are %(count)d notices (%(important)d marked as important) available regarding this plugin - click to show!"
msgstr "Es gibt %(count)d Nachrichten (%(important)d als wichtig markiert) zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1031
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1032
#, python-format
msgid "There are %(count)d notices available regarding this plugin - click to show!"
msgstr "Es gibt %(count)d Nachrichten zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1035
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1036
msgid "There is an important notice available regarding this plugin - click to show!"
msgstr "Es gibt eine wichtige Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1037
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1038
msgid "There is a notice available regarding this plugin - click to show!"
msgstr "Es gibt eine Nachricht zu diesem Plugin - hier klicken um sie anzuzeigen!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1051
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1052
#, python-format
msgid "Important notice regarding plugin \"%(name)s\""
msgstr "Wichtige Nachricht zu Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1053
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1054
#, python-format
msgid "Notice regarding plugin \"%(name)s\""
msgstr "Nachricht zu Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1060
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1061
#, python-format
msgid "Affected versions: %(versions)s"
msgstr "Betroffene Versionen: %(versions)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1062
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1063
msgid "Affected versions: all"
msgstr "Betroffene Versionen: alle"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1067
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1068
msgid "Read more..."
msgstr "Mehr..."
@@ -1653,7 +1660,7 @@ msgid "\n"
msgstr "OctoPrint scheint zur Zeit keine Verbindung zum Internet zu haben. Daher ist es nicht möglich, neue Plugins aus dem Pluginrepository oder von URL zu installieren."
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:39
#: src/octoprint/server/views.py:515
#: src/octoprint/server/views.py:554
msgid "Plugins"
msgstr "Plugins"
@@ -1723,6 +1730,10 @@ msgstr "Mit OctoPrint gebundlet"
msgid "Cannot be uninstalled through OctoPrint"
msgstr "Kann nicht aus OctoPrint heraus deinstalliert werden"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Incompatible to OctoPrint or the underlying Python environment"
msgstr "Inkompatibel zu OctoPrint oder der Pythonumgebung"
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Restart of OctoPrint needed for changes to take effect"
msgstr "Ein Neustart von OctoPrint ist notwendig, damit die Änderungen wirksam werden"
@@ -2002,7 +2013,7 @@ msgid "Software Update"
msgstr "Software Update"
#: src/octoprint/plugins/softwareupdate/__init__.py:1134
#: src/octoprint/server/views.py:607
#: src/octoprint/server/views.py:646
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
@@ -2578,105 +2589,105 @@ msgstr "\n"
" Für Details, was genau getrackt wird, schau bitte auf <a href=\"https://tracking.octoprint.org\" target=\"_blank\" rel=\"noopener noreferrer\">tracking.octoprint.org</a>\n"
" sowie die <a href=\"https://tracking.octoprint.org/privacy\" target=\"_blank\" rel=\"noopener noreferrer\">Privacy Policy auf tracking.octoprint.org</a>.\n"
#: src/octoprint/server/views.py:574
#: src/octoprint/server/views.py:613
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:12
msgid "Connection"
msgstr "Verbindung"
#: src/octoprint/server/views.py:575
#: src/octoprint/server/views.py:614
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr "Status"
#: src/octoprint/server/views.py:576
#: src/octoprint/server/views.py:615
msgid "Files"
msgstr "Dateien"
#: src/octoprint/server/views.py:582
#: src/octoprint/server/views.py:621
msgid "Temperature"
msgstr "Temperatur"
#: src/octoprint/server/views.py:583
#: src/octoprint/server/views.py:622
msgid "Control"
msgstr "Steuerung"
#: src/octoprint/server/views.py:584
#: src/octoprint/server/views.py:623
msgid "GCode Viewer"
msgstr "GCode Viewer"
#: src/octoprint/server/views.py:585
#: src/octoprint/server/views.py:624
msgid "Terminal"
msgstr "Terminal"
#: src/octoprint/server/views.py:586
#: src/octoprint/server/views.py:625
#: src/octoprint/templates/sidebar/state.jinja2:9
msgid "Timelapse"
msgstr "Zeitraffer"
#: src/octoprint/server/views.py:592
#: src/octoprint/server/views.py:631
msgid "Printer"
msgstr "Drucker"
#: src/octoprint/server/views.py:594
#: src/octoprint/server/views.py:633
msgid "Serial Connection"
msgstr "Serielle Verbindung"
#: src/octoprint/server/views.py:595
#: src/octoprint/server/views.py:634
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr "Druckerprofile"
#: src/octoprint/server/views.py:596
#: src/octoprint/server/views.py:635
msgid "Temperatures"
msgstr "Temperaturen"
#: src/octoprint/server/views.py:597
#: src/octoprint/server/views.py:636
msgid "Terminal Filters"
msgstr "Terminalfilter"
#: src/octoprint/server/views.py:598
#: src/octoprint/server/views.py:637
msgid "GCODE Scripts"
msgstr "GCODE Scripts"
#: src/octoprint/server/views.py:600 src/octoprint/server/views.py:602
#: src/octoprint/server/views.py:639 src/octoprint/server/views.py:641
msgid "Features"
msgstr "Funktionen"
#: src/octoprint/server/views.py:604
#: src/octoprint/server/views.py:643
msgid "GCODE Visualizer"
msgstr "GCode Viewer"
#: src/octoprint/server/views.py:605
#: src/octoprint/server/views.py:644
msgid "API"
msgstr "API"
#: src/octoprint/server/views.py:610
#: src/octoprint/server/views.py:649
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:12
msgid "Folders"
msgstr "Verzeichnisse"
#: src/octoprint/server/views.py:611
#: src/octoprint/server/views.py:650
msgid "Appearance"
msgstr "Aussehen"
#: src/octoprint/server/views.py:612
#: src/octoprint/server/views.py:651
msgid "Server"
msgstr "Server"
#: src/octoprint/server/views.py:618
#: src/octoprint/server/views.py:657
msgid "Access"
msgstr "Zugriff"
#: src/octoprint/server/views.py:619
#: src/octoprint/server/views.py:658
msgid "Interface"
msgstr "Interface"
#: src/octoprint/server/views.py:635
#: src/octoprint/server/views.py:674
msgid "Start"
msgstr "Start"
#: src/octoprint/server/views.py:636
#: src/octoprint/server/views.py:675
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr "Beenden"
@@ -2730,98 +2741,98 @@ msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ih
msgid "The server appears to be offline, at least I'm not getting any response from it. I <strong>could not reconnect automatically</strong>, but you may try a manual reconnect using the button below."
msgstr "Der Server scheint offline zu sein, zumindest kann ich mich nicht mit ihm verbinden. Ich <strong>konnte mich nicht automatisch neu verbinden</strong>, aber Du kannst mittels des folgenden Buttons einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:162
#: src/octoprint/static/js/app/dataupdater.js:168
msgid "Unknown"
msgstr "Unbekannt"
#: src/octoprint/static/js/app/dataupdater.js:165
#: src/octoprint/static/js/app/dataupdater.js:171
msgid "Command line flag"
msgstr "Kommandozeilenflag"
#: src/octoprint/static/js/app/dataupdater.js:169
#: src/octoprint/static/js/app/dataupdater.js:175
msgid "Setting in config.yaml"
msgstr "Einstellung in config.yaml"
#: src/octoprint/static/js/app/dataupdater.js:173
#: src/octoprint/static/js/app/dataupdater.js:179
msgid "Problem during last startup"
msgstr "Problem während des letzten Starts"
#: src/octoprint/static/js/app/dataupdater.js:179
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Safe mode is active"
msgstr "Sicherheitsmodus ist aktiv"
#: src/octoprint/static/js/app/dataupdater.js:180
#: src/octoprint/static/js/app/dataupdater.js:186
#, python-format
msgid "<p>The server is currently running in safe mode. Third party plugins and language packs are disabled and cannot be enabled.</p><p>Reason: %(reason)s</p>"
msgstr "<p>Der Server ist aktuell im Sicherheitsmodus. Third-Party-Plugins sind deaktiviert und können nicht aktiviert werden.</p><p>Grund: %(reason)s</p>"
#: src/octoprint/static/js/app/dataupdater.js:229
#: src/octoprint/static/js/app/dataupdater.js:235
#: src/octoprint/static/js/app/viewmodels/files.js:963
#: src/octoprint/static/js/app/viewmodels/files.js:970
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:265
#: src/octoprint/static/js/app/dataupdater.js:276
#: src/octoprint/static/js/app/dataupdater.js:271
#: src/octoprint/static/js/app/dataupdater.js:282
msgid "Error reported by printer"
msgstr "Fehler vom Drucker gemeldet"
#: src/octoprint/static/js/app/dataupdater.js:266
#: src/octoprint/static/js/app/dataupdater.js:272
#, python-format
msgid "Your printer's firmware reported an error. Due to that the ongoing print job will be cancelled. Reported error: %(firmwareError)s"
msgstr "Es gab einen unbehandelten Fehler bei der Kommunikation mit dem Drucker. Daher wird der laufende Druckauftrag abgebrochen. Fehler: %(firmwareError)s"
#: src/octoprint/static/js/app/dataupdater.js:277
#: src/octoprint/static/js/app/dataupdater.js:283
#, python-format
msgid "Your printer's firmware reported an error. Due to that OctoPrint will disconnect. Reported error: %(error)s"
msgstr "Die Firmware Deines Druckers hat einen Fehler gemeldet. Darum hat OctoPrint die Verbindung geschlossen. Gemeldeter Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:283
#: src/octoprint/static/js/app/dataupdater.js:289
msgid "Communication error"
msgstr "Kommunikationsfehler"
#: src/octoprint/static/js/app/dataupdater.js:284
#: src/octoprint/static/js/app/dataupdater.js:290
#, python-format
msgid "There was a communication error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s"
msgstr "Es gab einen Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:288
#: src/octoprint/static/js/app/dataupdater.js:294
msgid "Error connecting to printer"
msgstr "Fehler bei der Verbindung zum Drucker"
#: src/octoprint/static/js/app/dataupdater.js:289
#: src/octoprint/static/js/app/dataupdater.js:295
#, python-format
msgid "There was an error while trying to connect to your printer. Error: %(error)s"
msgstr "Es gab einen Fehler bei der Verbindung zum Drucker. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:293
#: src/octoprint/static/js/app/dataupdater.js:299
msgid "Error starting a print"
msgstr "Fehler beim Start eines Drucks"
#: src/octoprint/static/js/app/dataupdater.js:294
#: src/octoprint/static/js/app/dataupdater.js:300
#, python-format
msgid "There was an error while trying to start a print job. Error: %(error)s"
msgstr "Es gab einen Fehler beim Start eines Drucks. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:303
#: src/octoprint/static/js/app/dataupdater.js:309
msgid "Unknown error"
msgstr "Unbekannter Fehler"
#: src/octoprint/static/js/app/dataupdater.js:304
#: src/octoprint/static/js/app/dataupdater.js:310
#, python-format
msgid "There was an unknown error while talking to your printer. Please consult the terminal output and octoprint.log for details. Error: %(error)s"
msgstr "Es gab einen unbekannten Fehler bei der Kommunikation mit dem Drucker. Bitte konsultiere den Terminaloutput und octoprint.log für Details. Fehler: %(error)s"
#: src/octoprint/static/js/app/dataupdater.js:324
#: src/octoprint/static/js/app/dataupdater.js:330
msgid "It looks like your printer reset while a connection was active. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD."
msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird."
#: src/octoprint/static/js/app/dataupdater.js:327
#: src/octoprint/static/js/app/dataupdater.js:333
msgid "It looks like your printer reset while a connection was active. Due to this the ongoing job was aborted. If this was intentional you may safely ignore this message. Otherwise you should investigate why your printer reset itself, since this will interrupt prints and also file transfers to your printer's SD."
msgstr "Es sieht so als hätte sich der Drucker resettet während eine Verbindung offen war. Darum wurde ein laufender Druckauftrag abgebrochen. Falls das Absicht war kannst du diese Nachricht ignorieren. Andernfalls solltest du prüfen, warum sich dein Drucker resettet hat, da dies Druckaufträge und Filetransfers zu der SD Karte deines Druckers unterbrechen wird."
#: src/octoprint/static/js/app/dataupdater.js:335
#: src/octoprint/static/js/app/dataupdater.js:341
msgid "Printer reset detected"
msgstr "Druckerreset erkannt"
@@ -3000,6 +3011,10 @@ msgstr "Breche ab"
msgid "Finishing"
msgstr "Beende"
#: src/octoprint/static/js/app/main.js:813
msgid "Loading OctoPrint's UI, please wait..."
msgstr "Lade OctoPrints Userinterface, bitte warten..."
#: src/octoprint/static/js/app/viewmodels/access.js:94
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"
@@ -6918,3 +6933,6 @@ msgstr "Zeitrafferaufnahme rendern"
#~ " statt sie wie die eines anonymen "
#~ "/ nicht eingeloggten Users zu behandeln."
#~ " Das war früher der Default."
#~ msgid "Allows to manage settings"
#~ msgstr "Erlaubt die Verwaltung der Einstellungen"
+189 -173
View File
@@ -1,14 +1,14 @@
# Translations template for OctoPrint.
# Copyright (C) 2019 The OctoPrint Project
# Copyright (C) 2020 The OctoPrint Project
# This file is distributed under the same license as the OctoPrint project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2019.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.4.0.dev2469+g454c5e494\n"
"Project-Id-Version: OctoPrint 1.4.0rc5.dev8+g10079b8d9.dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2019-11-22 18:38+0100\n"
"POT-Creation-Date: 2020-02-10 16:58+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,103 +17,107 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.6.0\n"
#: src/octoprint/access/permissions.py:256
#: src/octoprint/access/permissions.py:272
msgid "Admin is allowed to do everything"
msgstr ""
#: src/octoprint/access/permissions.py:262
#: src/octoprint/access/permissions.py:278
msgid ""
"Allows to gather status information, e.g. job progress, printer state, "
"temperatures, ..."
"Allows to gather basic status information, e.g. job progress, printer "
"state, temperatures, ... Mandatory for the default UI to work"
msgstr ""
#: src/octoprint/access/permissions.py:268
#: src/octoprint/access/permissions.py:285
msgid "Allows to connect to and disconnect from a printer"
msgstr ""
#: src/octoprint/access/permissions.py:273
#: src/octoprint/access/permissions.py:290
msgid "Allows to watch the webcam stream"
msgstr ""
#: src/octoprint/access/permissions.py:278
#: src/octoprint/access/permissions.py:295
msgid ""
"Allows to run system commands, e.g. restart OctoPrint, shutdown or reboot"
" the system"
msgstr ""
#: src/octoprint/access/permissions.py:284
#: src/octoprint/access/permissions.py:301
msgid ""
"Allows to retrieve a list of all uploaded files, includingtheir metadata "
"(e.g. date, file size, analysis results, ...)"
msgstr ""
#: src/octoprint/access/permissions.py:289
#: src/octoprint/access/permissions.py:306
msgid "Allows users to upload new files"
msgstr ""
#: src/octoprint/access/permissions.py:293
#: src/octoprint/access/permissions.py:310
msgid ""
"Allows users to download files. The GCODE viewer is affected by this as "
"well."
msgstr ""
#: src/octoprint/access/permissions.py:298
#: src/octoprint/access/permissions.py:315
msgid "Allows users to delete files"
msgstr ""
#: src/octoprint/access/permissions.py:302
#: src/octoprint/access/permissions.py:319
msgid "Allows to select a file for printing"
msgstr ""
#: src/octoprint/access/permissions.py:307
msgid ""
"Allows to start, pause and cancel a print job. Includes the \"Select\" "
"permission"
#: src/octoprint/access/permissions.py:324
msgid "Allows to start, pause and cancel a print job"
msgstr ""
#: src/octoprint/access/permissions.py:313
#: src/octoprint/access/permissions.py:329
msgid ""
"Allows access to the GCODE viewer. Includes the \"File "
"Download\"permission."
"Allows access to the GCODE viewer if the \"File Download\"permission is "
"also set."
msgstr ""
#: src/octoprint/access/permissions.py:319
#: src/octoprint/access/permissions.py:335
msgid ""
"Allows to watch the terminal tab but not to send commands to the printer "
"from it"
msgstr ""
#: src/octoprint/access/permissions.py:325
#: src/octoprint/access/permissions.py:341
msgid ""
"Allows to control of the printer by using the temperature controls,the "
"control tab or sending commands through the terminal."
msgstr ""
#: src/octoprint/access/permissions.py:331
#: src/octoprint/access/permissions.py:347
msgid "Allows to slice files"
msgstr ""
#: src/octoprint/access/permissions.py:336
#: src/octoprint/access/permissions.py:352
msgid "Allows to list timelapse videos"
msgstr ""
#: src/octoprint/access/permissions.py:340
#: src/octoprint/access/permissions.py:356
msgid "Allows to download timelapse videos"
msgstr ""
#: src/octoprint/access/permissions.py:344
#: src/octoprint/access/permissions.py:360
msgid "Allows to delete timelapse videos and unrendered timelapses"
msgstr ""
#: src/octoprint/access/permissions.py:348
#: src/octoprint/access/permissions.py:364
msgid ""
"Allows to change the timelapse settings and delete or render unrendered "
"timelapses. Includes the \"Timelapse List\",\"Timelapse Delete\" and "
"\"Timelapse Download\" permissions"
msgstr ""
#: src/octoprint/access/permissions.py:355
msgid "Allows to manage settings"
#: src/octoprint/access/permissions.py:371
msgid ""
"Allows to read non sensitive settings. Mandatory for the default UI to "
"work."
msgstr ""
#: src/octoprint/access/permissions.py:376
msgid "Allows to manage settings and also to read sensitive settings"
msgstr ""
#: src/octoprint/plugins/action_command_prompt/__init__.py:69
@@ -244,13 +248,13 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/announcements/static/js/announcements.js:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1084
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1085
#: src/octoprint/static/js/app/viewmodels/loginstate.js:117
msgid "Later"
msgstr ""
#: src/octoprint/plugins/announcements/static/js/announcements.js:282
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1091
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1092
msgid "Mark read"
msgstr ""
@@ -303,16 +307,16 @@ msgstr ""
msgid "Refresh Announcements"
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:123
#: src/octoprint/plugins/appkeys/__init__.py:122
msgid "Allows administrating all application keys"
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:131
#: src/octoprint/plugins/appkeys/__init__.py:132
#: src/octoprint/plugins/appkeys/__init__.py:133
msgid "Application Keys"
msgstr ""
#: src/octoprint/plugins/appkeys/__init__.py:439
#: src/octoprint/plugins/appkeys/__init__.py:438
msgid ""
"Without this plugin third party clients will no longer be able to obtain "
"an API key without you manually copy-pasting it."
@@ -726,13 +730,13 @@ msgid "Server Commands"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:50
#: src/octoprint/server/views.py:603
#: src/octoprint/server/views.py:642
msgid "Webcam & Timelapse"
msgstr ""
#: src/octoprint/plugins/corewizard/subwizards.py:65
#: src/octoprint/plugins/corewizard/templates/corewizard_acl_wizard.jinja2:1
#: src/octoprint/server/views.py:609
#: src/octoprint/server/views.py:648
msgid "Access Control"
msgstr ""
@@ -1307,43 +1311,47 @@ msgstr ""
msgid "Add"
msgstr ""
#: src/octoprint/plugins/pi_support/__init__.py:219
#: src/octoprint/plugins/pi_support/__init__.py:199
msgid "Allows to check for the Pi's throttling status and environment info"
msgstr ""
#: src/octoprint/plugins/pi_support/__init__.py:235
#: src/octoprint/plugins/pi_support/templates/pi_support_settings.jinja2:1
msgid "Pi Support"
msgstr ""
#: src/octoprint/plugins/pi_support/__init__.py:317
#: src/octoprint/plugins/pi_support/__init__.py:333
msgid ""
"Without this plugin OctoPrint will no longer be able to provide "
"additional information about your Pi, which will make it more tricky to "
"help you if you need support."
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "running on"
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:29
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:36
msgid "OctoPi"
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:67
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:74
msgid ""
"Undervoltage. Make sure your power supply and cabling are providing "
"enough power to the Pi."
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:68
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:75
msgid "Frequency capping due to overheating. Improve cooling of the CPU and GPU."
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:69
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:76
msgid ""
"A blinking symbol indicates a current issue, a non blinking symbol one "
"that was observed some time since the Pi booted up."
msgstr ""
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:70
#: src/octoprint/plugins/pi_support/static/js/pi_support.js:77
msgid "Click the symbol in the navbar for more information."
msgstr ""
@@ -1416,222 +1424,222 @@ msgid ""
"plugins."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:550
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
msgid "Installing plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:289
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:290
msgid "Installing plugin from uploaded archive..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:310
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:458
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:615
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:665
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:697
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:906
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:311
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:459
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:616
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:666
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:698
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/tracking/static/js/usage.js:83
msgid "Something went wrong"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:312
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:617
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:667
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:699
msgid "Please consult octoprint.log for details"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:479
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:480
#, python-format
msgid "You are about to disable \"%(name)s\"."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:482
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:483
msgid "This is not recommended"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:484
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
msgid "Do you still want to disable it?"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:485
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
msgid "Keep enabled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:486
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:487
msgid "Disable anyway"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:493
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:494
#, python-format
msgid "You are about to disable \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:495
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:496
msgid "Disable plugin"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:553
#, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
msgid "Reinstalling plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:559
#, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Uninstalling plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:627
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#, python-format
msgid "You are about to uninstall the plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:628
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:629
msgid "Keep installed"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:630
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
msgid "Uninstall"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:631
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:632
msgid "Uninstall & clean up data"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
msgid "Cleaning up plugin data..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:657
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:658
#, python-format
msgid "Cleaning up data of plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:677
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#, python-format
msgid ""
"You are about to cleanup the plugin data of \"%(name)s\". This operation "
"cannot be reversed."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:678
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
msgid "Keep data"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:679
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:680
msgid "Cleanup data"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:691
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:692
msgid "Cleaning up all left over plugin data..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:709
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:710
msgid ""
"You are about to cleanup left over plugin settings and data of plugins no"
" longer installed. This operation cannot be reversed."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:711
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:712
msgid "Cleanup all data"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Reinstall"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:271
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:287
msgid "Install"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:71
msgid "Disabled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:814
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:815
msgid "Incompatible"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:823
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:824
msgid "Plugin management log"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:831
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:832
#, python-format
msgid "%(count)d earlier actions..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:833
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:834
#, python-format
msgid "%(count)d earlier action"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:844
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:845
#, python-format
msgid "Install <em>%(plugin)s</em>: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:848
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:849
#, python-format
msgid "Uninstall <em>%(plugin)s</em>: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:852
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:853
#, python-format
msgid "Enable <em>%(plugin)s</em>: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:856
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:857
#, python-format
msgid "Disable <em>%(plugin)s</em>: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:860
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:861
#, python-format
msgid "Cleanup <em>%(plugin)s</em>: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:864
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:865
#, python-format
msgid "Cleanup all: %(result)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:881
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:882
msgid "A restart is needed for the changes to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:889
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:890
msgid "Restart now"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:894
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:895
msgid ""
"<strong>This will restart your OctoPrint server.</strong></p><p>This "
"action may disrupt any ongoing print jobs (depending on your printer's "
@@ -1639,101 +1647,101 @@ msgid ""
" from your printer's internal storage)."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:900
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
msgid "Restart in progress"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:901
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:902
msgid "The server is now being restarted in the background"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:907
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:908
msgid ""
"Trying to restart the server produced an error, please check "
"octoprint.log for details. You'll have to restart manually."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:920
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:921
msgid "A refresh is needed for the changes to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:927
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:928
#: src/octoprint/templates/overlays/reloadui.jinja2:14
msgid "Reload now"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:936
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:937
msgid "A reconnect to the printer is needed for the changes to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:973
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:974
msgid "Error!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:976
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:977
msgid "Done!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1002
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1003
msgid "Blacklisted"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1004
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1005
msgid "Disabled due to active safe mode"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1006
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1007
msgid "Enable Plugin"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1009
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1010
msgid "Disable Plugin"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1029
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1030
#, python-format
msgid ""
"There are %(count)d notices (%(important)d marked as important) available"
" regarding this plugin - click to show!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1031
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1032
#, python-format
msgid ""
"There are %(count)d notices available regarding this plugin - click to "
"show!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1035
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1036
msgid ""
"There is an important notice available regarding this plugin - click to "
"show!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1037
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1038
msgid "There is a notice available regarding this plugin - click to show!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1051
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1052
#, python-format
msgid "Important notice regarding plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1053
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1054
#, python-format
msgid "Notice regarding plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1060
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1061
#, python-format
msgid "Affected versions: %(versions)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1062
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1063
msgid "Affected versions: all"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1067
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:1068
msgid "Read more..."
msgstr ""
@@ -1781,7 +1789,7 @@ msgid ""
msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:39
#: src/octoprint/server/views.py:515
#: src/octoprint/server/views.py:554
msgid "Plugins"
msgstr ""
@@ -1851,6 +1859,10 @@ msgstr ""
msgid "Cannot be uninstalled through OctoPrint"
msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Incompatible to OctoPrint or the underlying Python environment"
msgstr ""
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:87
msgid "Restart of OctoPrint needed for changes to take effect"
msgstr ""
@@ -2157,7 +2169,7 @@ msgid "Software Update"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:1134
#: src/octoprint/server/views.py:607
#: src/octoprint/server/views.py:646
#: src/octoprint/static/js/app/viewmodels/appearance.js:99
#: src/octoprint/static/js/app/viewmodels/appearance.js:104
#: src/octoprint/static/js/app/viewmodels/appearance.js:106
@@ -2790,105 +2802,105 @@ msgid ""
"tracking.octoprint.org</a>.\n"
msgstr ""
#: src/octoprint/server/views.py:574
#: src/octoprint/server/views.py:613
#: src/octoprint/templates/dialogs/settings/serialconnection.jinja2:12
msgid "Connection"
msgstr ""
#: src/octoprint/server/views.py:575
#: src/octoprint/server/views.py:614
#: src/octoprint/templates/sidebar/state.jinja2:1
msgid "State"
msgstr ""
#: src/octoprint/server/views.py:576
#: src/octoprint/server/views.py:615
msgid "Files"
msgstr ""
#: src/octoprint/server/views.py:582
#: src/octoprint/server/views.py:621
msgid "Temperature"
msgstr ""
#: src/octoprint/server/views.py:583
#: src/octoprint/server/views.py:622
msgid "Control"
msgstr ""
#: src/octoprint/server/views.py:584
#: src/octoprint/server/views.py:623
msgid "GCode Viewer"
msgstr ""
#: src/octoprint/server/views.py:585
#: src/octoprint/server/views.py:624
msgid "Terminal"
msgstr ""
#: src/octoprint/server/views.py:586
#: src/octoprint/server/views.py:625
#: src/octoprint/templates/sidebar/state.jinja2:9
msgid "Timelapse"
msgstr ""
#: src/octoprint/server/views.py:592
#: src/octoprint/server/views.py:631
msgid "Printer"
msgstr ""
#: src/octoprint/server/views.py:594
#: src/octoprint/server/views.py:633
msgid "Serial Connection"
msgstr ""
#: src/octoprint/server/views.py:595
#: src/octoprint/server/views.py:634
#: src/octoprint/templates/dialogs/settings/printerprofiles.jinja2:1
msgid "Printer Profiles"
msgstr ""
#: src/octoprint/server/views.py:596
#: src/octoprint/server/views.py:635
msgid "Temperatures"
msgstr ""
#: src/octoprint/server/views.py:597
#: src/octoprint/server/views.py:636
msgid "Terminal Filters"
msgstr ""
#: src/octoprint/server/views.py:598
#: src/octoprint/server/views.py:637
msgid "GCODE Scripts"
msgstr ""
#: src/octoprint/server/views.py:600 src/octoprint/server/views.py:602
#: src/octoprint/server/views.py:639 src/octoprint/server/views.py:641
msgid "Features"
msgstr ""
#: src/octoprint/server/views.py:604
#: src/octoprint/server/views.py:643
msgid "GCODE Visualizer"
msgstr ""
#: src/octoprint/server/views.py:605
#: src/octoprint/server/views.py:644
msgid "API"
msgstr ""
#: src/octoprint/server/views.py:610
#: src/octoprint/server/views.py:649
#: src/octoprint/templates/dialogs/settings/folders.jinja2:2
#: src/octoprint/templates/sidebar/files_header.jinja2:12
msgid "Folders"
msgstr ""
#: src/octoprint/server/views.py:611
#: src/octoprint/server/views.py:650
msgid "Appearance"
msgstr ""
#: src/octoprint/server/views.py:612
#: src/octoprint/server/views.py:651
msgid "Server"
msgstr ""
#: src/octoprint/server/views.py:618
#: src/octoprint/server/views.py:657
msgid "Access"
msgstr ""
#: src/octoprint/server/views.py:619
#: src/octoprint/server/views.py:658
msgid "Interface"
msgstr ""
#: src/octoprint/server/views.py:635
#: src/octoprint/server/views.py:674
msgid "Start"
msgstr ""
#: src/octoprint/server/views.py:636
#: src/octoprint/server/views.py:675
#: src/octoprint/templates/dialogs/wizard.jinja2:57
msgid "Finish"
msgstr ""
@@ -2965,27 +2977,27 @@ msgid ""
"may try a manual reconnect using the button below."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:162
#: src/octoprint/static/js/app/dataupdater.js:168
msgid "Unknown"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:165
#: src/octoprint/static/js/app/dataupdater.js:171
msgid "Command line flag"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:169
#: src/octoprint/static/js/app/dataupdater.js:175
msgid "Setting in config.yaml"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:173
#: src/octoprint/static/js/app/dataupdater.js:179
msgid "Problem during last startup"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:179
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Safe mode is active"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:180
#: src/octoprint/static/js/app/dataupdater.js:186
#, python-format
msgid ""
"<p>The server is currently running in safe mode. Third party plugins and "
@@ -2993,37 +3005,37 @@ msgid ""
"%(reason)s</p>"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:229
#: src/octoprint/static/js/app/dataupdater.js:235
#: src/octoprint/static/js/app/viewmodels/files.js:963
#: src/octoprint/static/js/app/viewmodels/files.js:970
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:265
#: src/octoprint/static/js/app/dataupdater.js:276
#: src/octoprint/static/js/app/dataupdater.js:271
#: src/octoprint/static/js/app/dataupdater.js:282
msgid "Error reported by printer"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:266
#: src/octoprint/static/js/app/dataupdater.js:272
#, python-format
msgid ""
"Your printer's firmware reported an error. Due to that the ongoing print "
"job will be cancelled. Reported error: %(firmwareError)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:277
#: src/octoprint/static/js/app/dataupdater.js:283
#, python-format
msgid ""
"Your printer's firmware reported an error. Due to that OctoPrint will "
"disconnect. Reported error: %(error)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:283
#: src/octoprint/static/js/app/dataupdater.js:289
msgid "Communication error"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:284
#: src/octoprint/static/js/app/dataupdater.js:290
#, python-format
msgid ""
"There was a communication error while talking to your printer. Please "
@@ -3031,38 +3043,38 @@ msgid ""
"%(error)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:288
#: src/octoprint/static/js/app/dataupdater.js:294
msgid "Error connecting to printer"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:289
#: src/octoprint/static/js/app/dataupdater.js:295
#, python-format
msgid ""
"There was an error while trying to connect to your printer. Error: "
"%(error)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:293
#: src/octoprint/static/js/app/dataupdater.js:299
msgid "Error starting a print"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:294
#: src/octoprint/static/js/app/dataupdater.js:300
#, python-format
msgid "There was an error while trying to start a print job. Error: %(error)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:303
#: src/octoprint/static/js/app/dataupdater.js:309
msgid "Unknown error"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:304
#: src/octoprint/static/js/app/dataupdater.js:310
#, python-format
msgid ""
"There was an unknown error while talking to your printer. Please consult "
"the terminal output and octoprint.log for details. Error: %(error)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:324
#: src/octoprint/static/js/app/dataupdater.js:330
msgid ""
"It looks like your printer reset while a connection was active. If this "
"was intentional you may safely ignore this message. Otherwise you should "
@@ -3070,7 +3082,7 @@ msgid ""
"prints and also file transfers to your printer's SD."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:327
#: src/octoprint/static/js/app/dataupdater.js:333
msgid ""
"It looks like your printer reset while a connection was active. Due to "
"this the ongoing job was aborted. If this was intentional you may safely "
@@ -3079,7 +3091,7 @@ msgid ""
" your printer's SD."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:335
#: src/octoprint/static/js/app/dataupdater.js:341
msgid "Printer reset detected"
msgstr ""
@@ -3258,6 +3270,10 @@ msgstr ""
msgid "Finishing"
msgstr ""
#: src/octoprint/static/js/app/main.js:813
msgid "Loading OctoPrint's UI, please wait..."
msgstr ""
#: src/octoprint/static/js/app/viewmodels/access.js:94
#: src/octoprint/templates/snippets/settings/accesscontrol/users.jinja2:48
msgid "Add user"