Compare commits

..
31 Commits
Author SHA1 Message Date
Gina Häußge e46e8fa17a 🔖 Preparing release of 1.5.2 2020-12-10 12:34:21 +01:00
Gina Häußge 12d6de51da 🐛 Replace _.merge with object only deepMerge
It turns out _.merge will also merge arrays, which in turn will re-add
anything we've just removed from a setting that happens to be an
array, thus as blocked commands or temperature presets.

Fixes #3855
Fixes #3867
2020-12-10 12:13:56 +01:00
Gina Häußge 424dc0a13d 📌 Pin watchdog to 0.10.4
New version 0.10.5 restricts upper Python version limit to <=3.6.
That won't work for Python 3 OctoPrint installs out there, so we
stick to the (for us) perfectly working 0.10.4

Dear library maintainers, please don't push breaking changes on
patch releases...
2020-12-10 12:12:59 +01:00
Gina Häußge d9fef47e78 Merge branch 'master' into staging/hotfix 2020-12-10 12:11:21 +01:00
Gina Häußge 222b9997a1 🔀 Merge pull request #3864 from cp2004/patch-2
Document new virtual printer options in 1.5.0
2020-12-10 12:06:41 +01:00
Brian Vanderbusch 3124c08927 🔀 Add canary job for trigger docker workflow (#3863)
* update event-type in trigger-docker workflow
* add dispatch_canary job
* change canary to trigger from maintenance
* add bleeding release type for trigger_docker.yml
* make things uglier to make prettier happy
2020-12-10 11:40:06 +01:00
Gina Häußge 2697bd7a42 Merge pull request #3861 from cp2004/patch-1
Fix /api/job example response
2020-12-08 14:35:10 +01:00
Charlie Powell a2d4fc08a5 📝 Document new virtual printer options in 1.5.0 2020-12-05 16:41:33 +00:00
Charlie Powell bdeb765f75 Fix /api/job example response
Closes #3860
2020-12-05 10:29:44 +00:00
Gina Häußge 84b61e01f4 🔖 staging/hotfix is now 1.5.2.dev 2020-12-04 12:02:02 +01:00
Gina Häußge 38256815ef Merge branch 'staging/hotfix' into master 2020-12-04 10:41:45 +01:00
Gina Häußge c111054fd6 🔖 Preparing release of 1.5.1 2020-12-04 10:37:15 +01:00
Gina Häußge 82dd94d51b 🐛 Better fix for folder listing on files API
We don't want children to be included on api/files or api/files/origin,
but we do want them on api/files/origin/path as that gets taken from
a file listing itself. So a level parameter is introduced on the storage
interface, defaulting to 0 and thus the former behaviour (remove
children), but setting it to a value > 0 will only remove grand children
and thus give us a way to query what we want on the detail endpoint.

See #3844
2020-12-03 18:28:26 +01:00
Gina Häußge 1536ed6da3 🐛 Fix folder listing on files API
Children were not being included without the recursive parameter when it
should in fact only have been grandchildren and later generations.

Closes #3844
2020-12-03 17:59:48 +01:00
Gina Häußge 9f9d0fc788 🐛 Discovery: Never announce loopback addresses
Possible fix for #3852
2020-12-03 17:59:48 +01:00
Gina Häußge a23daa7c81 🔖 staging/hotfix is 1.5.1.dev 2020-12-03 17:59:48 +01:00
Gina Häußge 82d308c9ac Merge pull request #3837 from HackerHappyHour/send-release-type-for-docker-trigger-payload 2020-12-01 13:38:33 +01:00
Gina Häußge fe7437388a Merge pull request #3839 from HackerHappyHour/add-CODEOWNERS-support 2020-12-01 13:36:06 +01:00
Brian Vanderbusch 28a1c8bb4f Merge branch 'master' into send-release-type-for-docker-trigger-payload 2020-11-30 12:53:10 -06:00
Gina Häußge f67c15a9a4 🔖 Preparing release of 1.5.0 2020-11-30 14:30:46 +01:00
Brian Vanderbusch a74309d650 remove default assignment 2020-11-29 11:28:48 -06:00
Brian Vanderbusch 220979bf68 implement CODEOWNERS support 2020-11-29 11:25:15 -06:00
Brian Vanderbusch 49cd9d3283 update Trigger docker build workflow
set payload event-type key to use value from event.action
2020-11-28 12:34:10 -06:00
Gina Häußge 308ac450e7 Merge branch 'master' into staging/maintenance 2020-11-25 15:44:32 +01:00
Gina Häußge d80a27a64a 📝 settings API: only document differences to config.yaml 2020-11-25 15:44:19 +01:00
Gina Häußge a4630df622 📌 Pin prettier and black versions 2020-11-25 11:35:40 +01:00
Gina Häußge 149161694d 🔖 staging/maintenance is now 1.5.0rc4.dev 2020-11-18 16:31:01 +01:00
Gina Häußge 5e7ea35239 🔖 Preparing release of 1.5.0rc3 2020-11-18 13:53:07 +01:00
Gina Häußge 4768a7eb5a 🐛 Value AND key might need str-conversion
Closes #3825
2020-11-18 13:09:51 +01:00
Gina Häußge 84fb97f82a 🐛 PMGR: Don't use jsonify outside flask context
We've moved `_command_install_archive` into its own thread, so we
must return results instead of jsonify'ing them.

As discovered through #3825
2020-11-18 13:07:58 +01:00
Gina Häußge c30673fac0 🔖 staging/maintenance is now 1.5.0rc3.dev 2020-11-17 16:00:51 +01:00
23 changed files with 317 additions and 154 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# someone from the docker-maintainers team will be requested for review
# whenever the trigger_docker workflow is changed in a Pull Request
.github/workflows/trigger_docker.yml @OctoPrint/docker-maintainers
+31 -2
View File
@@ -4,15 +4,44 @@ on:
types:
- released
- prereleased
push:
branches:
- maintenance
- devel
jobs:
trigger:
dispatch_releases:
runs-on: ubuntu-latest
if: github.event_name != 'push'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "release"
event-type: ${{ github.event_name }}
client-payload: '{"tag_name": "${{ github.event.release.tag_name }}"}'
dispatch_canary:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/maintenance'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "canary"
client-payload: '{"tag_name": "${{ github.sha }}"}'
dispatch_bleeding:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/devel'
steps:
- name: 🚀 Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DOCKER_ACCESS_TOKEN }}
repository: ${{ github.repository_owner }}/octoprint-docker
event-type: "bleeding"
client-payload: '{"tag_name": "${{ github.sha }}"}'
+2 -2
View File
@@ -28,7 +28,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: stable
rev: 20.8b1
hooks:
- id: black
args: ["--config", "black.toml"]
@@ -39,6 +39,6 @@ repos:
additional_dependencies:
- flake8-bugbear
- repo: https://github.com/pre-commit/mirrors-prettier
rev: master
rev: v2.1.2
hooks:
- id: prettier
+5 -5
View File
@@ -24,13 +24,13 @@ maintenance 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
fix/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
improve/.* 1.5.0 42769dad7dda3bc0c6c94e0e8ce832af9b14a565 pep440-dev
# staging/hotfix is the branch for preparation of the 1.4.2 hotfix release
staging/hotfix 1.4.2 3ab84ed7e4c3aaaf71fe0f184b465f25d689f929 pep440-dev
# staging/hotfix is the branch for preparation of the 1.5.2 hotfix release
staging/hotfix 1.5.2 38256815ef6d6dd602e0fac949a17fbf8f30f838 pep440-dev
# staging/maintenance is currently the branch for preparation of 1.5.0rc2
# staging/maintenance is currently the branch for preparation of 1.5.0rc4
# so is regressionfix/...
staging/maintenance 1.5.0rc2 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
regressionfix/.* 1.5.0rc2 b7a45b79bf86339f0b28177ac1eaebb56d00ea37 pep440-dev
staging/maintenance 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev
regressionfix/.* 1.5.0rc4 5e7ea35239908f9ed91895751d8a8202aa76ed4b pep440-dev
# staging/devel is currently inactive (but has the 1.4.1rc4 namespace)
staging/devel 1.4.1rc4 650d54d1885409fa1d411eb54b9e8c7ff428910f pep440-dev
+2 -1
View File
@@ -18,6 +18,7 @@ thanks to everyone who contributed!
* D Brian Kimmel
* DeltaMaker 3D Printers
* Dennis Breining
* Eric Berry
* Eric Betts
* Ernesto Martinez
* Franziska Kunsmann
@@ -68,4 +69,4 @@ thanks to everyone who contributed!
* Sven Mueller
* Ulrich Kempken
and 2107 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
and 2147 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [Github Sponsors](https://github.com/users/foosel/sponsorship)!
+4 -2
View File
@@ -205,8 +205,10 @@ Retrieve information about the current job
},
"estimatedPrintTime": 8811,
"filament": {
"length": 810,
"volume": 5.36
"tool0": {
"length": 810,
"volume": 5.36
}
}
},
"progress": {
+2 -112
View File
@@ -354,84 +354,22 @@ Data model
==========
The data model on the settings API mostly reflects the contents of
:ref:`config.yaml <sec-configuration-config_yaml>`. The settings tree
returned by the API contains the following fields, which are directly
mapped from the same fields in ``config.yaml`` unless otherwise noted:
:ref:`config.yaml <sec-configuration-config_yaml>`, which are directly
mapped, with the following exceptions:
.. list-table::
:header-rows: 1
* - Field
- Notes
* - ``api.enabled``
-
* - ``api.key``
- Only maps to ``api.key`` in ``config.yaml`` if request is sent with admin rights, set to ``n/a`` otherwise.
Starting with OctoPrint 1.3.3 setting this field via :ref:`the API <sec-api-settings-save>` is not possible,
only :ref:`regenerating it <sec-api-settings-generateapikey>` is supported. Setting a custom value is only
possible through `config.yaml`.
* - ``api.allowCrossOrigin``
-
* - ``appearance.name``
-
* - ``appearance.color``
-
* - ``appearance.colorTransparent``
-
* - ``appearance.defaultLanguage``
-
* - ``appearance.showFahrenheitAlso``
-
* - ``feature.gcodeViewer``
- Maps to ``gcodeViewer.enabled`` in ``config.yaml``
* - ``feature.sizeThreshold``
- Maps to ``gcodeViewer.sizeThreshold`` in ``config.yaml``
* - ``feature.mobileSizeThreshold``
- Maps to ``gcodeViewer.mobileSizeThreshold`` in ``config.yaml``
* - ``feature.temperatureGraph``
-
* - ``feature.waitForStart``
-
* - ``feature.alwaysSendChecksum``
-
* - ``feature.neverSendChecksum``
-
* - ``feature.sdSupport``
-
* - ``feature.sdRelativePath``
-
* - ``feature.sdAlwaysAvailable``
-
* - ``feature.swallowOkAfterResend``
-
* - ``feature.repetierTargetTemp``
-
* - ``feature.externalHeatupDetection``
-
* - ``feature.keyboardControl``
-
* - ``feature.pollWatched``
-
* - ``feature.ignoreIdenticalResends``
-
* - ``feature.modelSizeDetection``
-
* - ``feature.firmwareDetection``
-
* - ``feature.printCancelConfirmation``
-
* - ``feature.blockWhileDwelling``
-
* - ``folder.uploads``
-
* - ``folder.timelapse``
-
* - ``folder.timelapseTmp``
- Maps to ``folder.timelapse_tmp`` in ``config.yaml``
* - ``folder.logs``
-
* - ``folder.watched``
-
* - ``plugins``
- Plugin settings as available from ``config.yaml`` and :class:`~octoprint.plugin.SettingsPlugin` implementations
* - ``printer.defaultExtrusionLength``
@@ -446,8 +384,6 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Available serial ports
* - ``serial.baudrateOptions``
- Available serial baudrates
* - ``serial.autoconnect``
-
* - ``serial.timeoutConnection``
- Maps to ``serial.timeout.connection`` in ``config.yaml``
* - ``serial.timeoutDetection``
@@ -460,50 +396,18 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Maps to ``serial.timeout.temperatureTargetSet`` in ``config.yaml``
* - ``serial.timeoutSdStatus``
- Maps to ``serial.timeout.sdStatus`` in ``config.yaml``
* - ``serial.log``
-
* - ``serial.additionalPorts``
-
* - ``serial.additionalBaudrates``
-
* - ``serial.longRunningCommands``
-
* - ``serial.checksumRequiringCommands``
-
* - ``serial.helloCommand``
-
* - ``serial.ignoreErrorsFromFirmware``
-
* - ``serial.disconnectOnErrors``
-
* - ``serial.triggerOkForM29``
-
* - ``serial.supportResendsWIthoutOk``
-
* - ``serial.maxTimeoutsIdle``
- Maps to ``serial.maxCommunicationTimeouts.idle`` in ``config.yaml``
* - ``serial.maxTimeoutsPrinting``
- Maps to ``serial.maxCommunicationTimeouts.printing`` in ``config.yaml``
* - ``serial.maxTimeoutsLong``
- Maps to ``serial.maxCommunicationTimeouts.long`` in ``config.yaml``
* - ``server.commands.systemShutdownCommand``
-
* - ``server.commands.systemRestartCommand``
-
* - ``server.commands.serverRestartCommand``
-
* - ``server.diskspace.warning``
-
* - ``server.diskspace.critical``
-
* - ``system.actions``
- Whole subtree taken from ``config.yaml``
* - ``system.events``
- Whole subtree taken from ``config.yaml``
* - ``temperature.profiles``
- Whole subtree taken from ``config.yaml``
* - ``temperature.cutoff``
-
* - ``terminalFilters``
- Whole subtree taken from ``config.yaml``
* - ``webcam.streamUrl``
@@ -512,17 +416,3 @@ mapped from the same fields in ``config.yaml`` unless otherwise noted:
- Maps to ``webcam.snapshot`` in ``config.yaml``
* - ``webcam.ffmpegPath``
- Maps to ``webcam.ffmpeg`` in ``config.yaml``
* - ``webcam.bitrate``
-
* - ``webcam.ffmpegThreads``
-
* - ``webcam.ffmpegVideoCodec``
-
* - ``webcam.watermark``
-
* - ``webcam.flipH``
-
* - ``webcam.flipV``
-
* - ``webcam.rotate90``
-
+25
View File
@@ -200,6 +200,31 @@ There many configuration options via ``config.yaml`` for the virtual printer tha
# Simulated ambient temperature in °C
ambientTemperature: 21.3
# Response to M105 when there is a target
# Placeholders:
# - heater: The heater id (eg. T0, T1, B)
# - actual: The actual temperature of the heater
# - target: The target temperature of heater
m105TargetFormatString: {heater}:{actual:.2f}/ {target:.2f}
# Response to M105 when there is no target
# Placeholders:
# - heater: The heater id (eg. T0, T1, B)
# - actual: The actual temperature of the heater
m105NoTargetFormatString: {heater}:{actual:.2f}
# Enable virtual EEPROM
# If enabled, a file `eeprom.json` will be created in the plugin data folder
# to enable settings persistence across connections. Enables M500/1/2/4 commmands
# And a selection of other settings commands. Responses modeled on Marlin 2.0
enable_eeprom: true
# Support M503
support_m503: true
# Resend ratio to simulate noise on the line
resend_ratio: 0
.. _sec-development-virtual-printer-log:
+1 -1
View File
@@ -46,7 +46,7 @@ INSTALL_REQUIRES = [
"PyYAML>=5.3.1,<6",
"pyserial>=3.4,<4",
"netaddr>=0.7.19,<1",
"watchdog>=0.10.2,<1",
"watchdog==0.10.4", # watchdog dropped Py>3.6 on 0.10.5 point release...
"sarge==0.1.5post0",
"netifaces>=0.10.9,<1",
"pylru>=1.2,<2",
+6 -1
View File
@@ -675,6 +675,7 @@ class FileManager(object):
path=None,
filter=None,
recursive=None,
level=0,
force_refresh=False,
):
if not destinations:
@@ -685,7 +686,11 @@ class FileManager(object):
result = {}
for dst in destinations:
result[dst] = self._storage_managers[dst].list_files(
path=path, filter=filter, recursive=recursive, force_refresh=force_refresh
path=path,
filter=filter,
recursive=recursive,
level=level,
force_refresh=force_refresh,
)
return result
+20 -4
View File
@@ -92,7 +92,9 @@ class StorageInterface(object):
"""
raise NotImplementedError()
def list_files(self, path=None, filter=None, recursive=True, force_refresh=False):
def list_files(
self, path=None, filter=None, recursive=True, level=0, force_refresh=False
):
"""
List all files in storage starting at ``path``. If ``recursive`` is set to True (the default), also dives into
subfolders.
@@ -628,7 +630,9 @@ class LocalFileStorage(StorageInterface):
folder_path = os.path.join(path, name)
return os.path.exists(folder_path) and os.path.isdir(folder_path)
def list_files(self, path=None, filter=None, recursive=True, force_refresh=False):
def list_files(
self, path=None, filter=None, recursive=True, level=0, force_refresh=False
):
if path:
path = self.sanitize_path(to_unicode(path))
base = self.path_in_storage(path)
@@ -647,6 +651,15 @@ class LocalFileStorage(StorageInterface):
result[key] = node
return result
def strip_grandchildren(nodes):
result = {}
for key, node in nodes.items():
if node["type"] == "folder":
node = copy.copy(node)
node["children"] = strip_children(node["children"])
result[key] = node
return result
def apply_filter(nodes, filter_func):
result = {}
for key, node in nodes.items():
@@ -654,14 +667,17 @@ class LocalFileStorage(StorageInterface):
if node["type"] == "folder":
node = copy.copy(node)
node["children"] = apply_filter(
node.get("children", []), filter_func
node.get("children", {}), filter_func
)
result[key] = node
return result
result = self._list_folder(path, base=base, force_refresh=force_refresh)
if not recursive:
result = strip_children(result)
if level > 0:
result = strip_grandchildren(result)
else:
result = strip_children(result)
if callable(filter):
result = apply_filter(result, filter)
return result
@@ -21,10 +21,10 @@ from octoprint.util.version import (
)
SENTRY_URL_SERVER = (
"https://5604af9afe444b44961b62f2f4e35395@o118517.ingest.sentry.io/1373987"
"https://1e1cfca4b230430b82ce56b1fe802437@o118517.ingest.sentry.io/1373987"
)
SENTRY_URL_COREUI = (
"https://d8119fba01a0429185ead6dae19ca45d@o118517.ingest.sentry.io/1374096"
"https://1c5aadba206f46cea250f3ef5066e253@o118517.ingest.sentry.io/1374096"
)
SETTINGS_DEFAULTS = {
@@ -789,7 +789,7 @@ class PluginManagerPlugin(
"for generated output",
}
self._send_result_notification("install", result)
return jsonify(result)
return result
# The final output of a pip install command looks something like this:
#
+5 -2
View File
@@ -231,7 +231,7 @@ def readGcodeFile(target, filename):
def _getFileDetails(origin, path, recursive=True):
parent, path = os.path.split(path)
files = _getFileList(origin, path=parent, recursive=recursive)
files = _getFileList(origin, path=parent, recursive=recursive, level=1)
for f in files:
if f["name"] == path:
@@ -245,7 +245,9 @@ def _getFileDetails(origin, path, recursive=True):
message="{func}({func_args},{func_kwargs}) took {timing:.2f}ms",
incl_func_args=True,
)
def _getFileList(origin, path=None, filter=None, recursive=False, allow_from_cache=True):
def _getFileList(
origin, path=None, filter=None, recursive=False, level=0, allow_from_cache=True
):
if origin == FileDestinations.SDCARD:
sdFileList = printer.get_sd_files()
@@ -301,6 +303,7 @@ def _getFileList(origin, path=None, filter=None, recursive=False, allow_from_cac
path=path,
filter=filter_func,
recursive=recursive,
level=level,
force_refresh=not allow_from_cache,
)[origin].values()
)
+24
View File
@@ -1592,3 +1592,27 @@ var loadFromLocalStorage = function (key) {
}
return current;
};
var deepMerge = function (target, source) {
/**
* Implements an object deep merge, which contrary to _.merge doesn't try to
* merge arrays.
*/
if (!_.isObject(target)) {
return target;
}
_.forOwn(source, function (value, key) {
if (
target.hasOwnProperty(key) &&
_.isPlainObject(target[key]) &&
_.isPlainObject(value)
) {
target[key] = deepMerge(target[key], value);
} else {
target[key] = value;
}
});
return target;
};
@@ -1142,7 +1142,7 @@ $(function () {
// process all key-value-pairs here
_.forOwn(data, function (value, key) {
var observable = key;
if (keyPrefix != undefined) {
if (keyPrefix !== undefined) {
observable = keyPrefix + "_" + observable;
}
@@ -1161,7 +1161,7 @@ $(function () {
mapping && mapping[key] ? mapping[key] : undefined,
observable
);
if (subresult != undefined) {
if (subresult !== undefined) {
// we only set something on our result if we got something back
result[key] = subresult;
flag = true;
@@ -1179,7 +1179,7 @@ $(function () {
// map local observables based on our existing data
var dataFromObservables = mapFromObservables(data, specialMappings);
data = _.merge(data, dataFromObservables);
data = deepMerge(data, dataFromObservables);
return data;
};
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"PO-Revision-Date: 2020-11-17 14:27+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+0100\n"
"PO-Revision-Date: 2020-11-30 14:29+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"
@@ -4699,10 +4699,12 @@ msgid "\n"
" It's also recommended to create a user account without admin access and use that for third\n"
" party clients where possible.\n"
" "
msgstr "Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
"Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
"des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen, oder für alle anderen den Key ändern zu müssen.\n"
"Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden."
msgstr "\n"
" Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
" Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
" des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen ohne für alle anderen den Key ändern zu müssen.\n"
" Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden.\n"
" "
#: src/octoprint/templates/dialogs/settings/api.jinja2:23
msgid "Access Application Keys"
@@ -7965,3 +7967,82 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Resend requests"
#~ msgstr "Resendrequests"
#~ msgid ""
#~ "\n"
#~ " The global API key "
#~ "should best not be used anymore. "
#~ "It's one single key that gives "
#~ "full admin access to\n"
#~ " your whole OctoPrint instance."
#~ " Instead of using it you should "
#~ "create individual Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
#~ "Der globale API Key sollte am "
#~ "Besten nicht mehr verwendet werden. Es"
#~ " ist ein einzelner Key, der vollen"
#~ " Adminzugriff auf die gesamte OctoPrint "
#~ "Instanz gibt.\n"
#~ "Stattdessen solltest du individuelle "
#~ "Application Keys für Third-Party-Clients"
#~ " erstellen. Dadurch bekommen diese die "
#~ "Zugriffsrechte des jeweiligen für die "
#~ "Erstellung \n"
#~ "des Keys genutzten Nutzeraccounts und du"
#~ " kannst einem Client auch einfach "
#~ "wieder den Zugriff entziehen, oder für"
#~ " alle anderen den Key ändern zu "
#~ "müssen.\n"
#~ "Es ist außerdem empfohlen, einen "
#~ "Useraccount ohne Adminzugriff zu erstellen "
#~ "und so möglich für Third-Party-"
#~ "Clients zu verwenden."
#~ msgid "Export"
#~ msgstr "Port"
#~ msgid "Offline after error"
#~ msgstr ""
#~ msgid "Starting to send file to SD"
#~ msgstr ""
#~ msgid ""
#~ "\n"
#~ " It is recommended to no"
#~ " longer use the global API key "
#~ "as it's one single key that gives"
#~ " full admin access\n"
#~ " to your whole OctoPrint "
#~ "instance. <strong>It will be removed in"
#~ " OctoPrint 2.0</strong>.\n"
#~ " Instead of using the "
#~ "global key you should create individual"
#~ " Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
+3 -1
View File
@@ -176,7 +176,9 @@ class CommandlineCaller(object):
# 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())
kwargs["env"] = dict(
(to_native_str(k), to_native_str(v)) for k, v in kwargs["env"].items()
)
delimiter = kwargs.get("delimiter", b"\n")
try:
+2 -1
View File
@@ -184,7 +184,8 @@ def interface_addresses(family=None, interfaces=None):
continue
if family in ifaddresses:
for ifaddress in ifaddresses[family]:
if not ifaddress["addr"].startswith("169.254."):
address = netaddr.IPAddress(ifaddress["addr"])
if not address.is_link_local() and not address.is_loopback():
yield ifaddress["addr"]
Binary file not shown.
+87 -6
View File
@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"PO-Revision-Date: 2020-11-17 14:27+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+0100\n"
"PO-Revision-Date: 2020-11-30 14:29+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"
@@ -4699,10 +4699,12 @@ msgid "\n"
" It's also recommended to create a user account without admin access and use that for third\n"
" party clients where possible.\n"
" "
msgstr "Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
"Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
"des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen, oder für alle anderen den Key ändern zu müssen.\n"
"Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden."
msgstr "\n"
" Der globale API Key sollte am Besten nicht mehr verwendet werden. Es ist ein einzelner Key, der vollen Adminzugriff auf die gesamte OctoPrint Instanz gibt.\n"
" Stattdessen solltest du individuelle Application Keys für Third-Party-Clients erstellen. Dadurch bekommen diese die Zugriffsrechte des jeweiligen für die Erstellung \n"
" des Keys genutzten Nutzeraccounts und du kannst einem Client auch einfach wieder den Zugriff entziehen ohne für alle anderen den Key ändern zu müssen.\n"
" Es ist außerdem empfohlen, einen Useraccount ohne Adminzugriff zu erstellen und so möglich für Third-Party-Clients zu verwenden.\n"
" "
#: src/octoprint/templates/dialogs/settings/api.jinja2:23
msgid "Access Application Keys"
@@ -7965,3 +7967,82 @@ msgstr "Zeitrafferaufnahme rendern"
#~ msgid "Resend requests"
#~ msgstr "Resendrequests"
#~ msgid ""
#~ "\n"
#~ " The global API key "
#~ "should best not be used anymore. "
#~ "It's one single key that gives "
#~ "full admin access to\n"
#~ " your whole OctoPrint instance."
#~ " Instead of using it you should "
#~ "create individual Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
#~ "Der globale API Key sollte am "
#~ "Besten nicht mehr verwendet werden. Es"
#~ " ist ein einzelner Key, der vollen"
#~ " Adminzugriff auf die gesamte OctoPrint "
#~ "Instanz gibt.\n"
#~ "Stattdessen solltest du individuelle "
#~ "Application Keys für Third-Party-Clients"
#~ " erstellen. Dadurch bekommen diese die "
#~ "Zugriffsrechte des jeweiligen für die "
#~ "Erstellung \n"
#~ "des Keys genutzten Nutzeraccounts und du"
#~ " kannst einem Client auch einfach "
#~ "wieder den Zugriff entziehen, oder für"
#~ " alle anderen den Key ändern zu "
#~ "müssen.\n"
#~ "Es ist außerdem empfohlen, einen "
#~ "Useraccount ohne Adminzugriff zu erstellen "
#~ "und so möglich für Third-Party-"
#~ "Clients zu verwenden."
#~ msgid "Export"
#~ msgstr "Port"
#~ msgid "Offline after error"
#~ msgstr ""
#~ msgid "Starting to send file to SD"
#~ msgstr ""
#~ msgid ""
#~ "\n"
#~ " It is recommended to no"
#~ " longer use the global API key "
#~ "as it's one single key that gives"
#~ " full admin access\n"
#~ " to your whole OctoPrint "
#~ "instance. <strong>It will be removed in"
#~ " OctoPrint 2.0</strong>.\n"
#~ " Instead of using the "
#~ "global key you should create individual"
#~ " Application Keys for\n"
#~ " your third party clients. "
#~ "That way they get permissions matching"
#~ " the user account used for key\n"
#~ ""
#~ " creation and you can "
#~ "also revoke access to one app "
#~ "without having to change the keys "
#~ "for all other apps.\n"
#~ " It's also recommended to "
#~ "create a user account without admin "
#~ "access and use that for third\n"
#~ " party clients where possible.\n"
#~ " "
#~ msgstr ""
+2 -2
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.5.0rc2.dev19+gf2ed1ebc7\n"
"Project-Id-Version: OctoPrint 1.5.0rc4.dev4+g308ac450e.dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2020-11-17 14:24+0100\n"
"POT-Creation-Date: 2020-11-30 14:27+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"