Compare commits

...
21 Commits
Author SHA1 Message Date
Gina Häußge cfa4cb2a7c Preparing 1.2.0 release (forgot another changelog update) 2015-06-25 10:18:00 +02:00
Gina Häußge 12a1bebe7e Preparing 1.2.0 release 2015-06-25 10:13:17 +02:00
Gina Häußge d461acffc7 Big update of changelog
Resorted some things and added stuff from the various RC release notes.
2015-06-24 15:18:02 +02:00
Gina Häußge e60cdc9d0f Adjusted bundled plugins to new data folder method 2015-06-24 14:33:33 +02:00
Gina Häußge 67a0fd11dd PluginSettings.get_plugin_data_folder moved to OctoPrintPlugin.get_plugin_data_folder
That way plugins don't need to implement the SettingsPlugin mixin in order to access their data folder, which is now an injected property in OctoPrintPlugin. Plugin authors should still always use the getter since that will also make sure the folder actually does exist (lazy creation).

PluginSettings.get_plugin_data_folder has been marked as deprecated.
2015-06-24 13:59:45 +02:00
Gina Häußge fca8becb20 More informative errors when serial connection fails 2015-06-24 08:55:27 +02:00
Gina Häußge be423e49fd Remove dependency_links support again
Doesn't work reliably across pip versions, and adding a special rule for each and every version also isn't fun. Plugin authors will need to use a different approach for pulling in dependencies that are not on pypi during install, e.g. extra install urls or something like that. For now, I give up here ;)
2015-06-23 16:22:45 +02:00
Gina Häußge 5decb23f23 Plugin Manager: color coding call/stdout/stderr in install/uninstall logs 2015-06-23 11:37:07 +02:00
Gina Häußge ac151d9019 Software Update: Use new PipCaller class and only provide dependency-links parameter if supported by pip version 2015-06-23 11:36:41 +02:00
Gina Häußge 71ccc47717 Plugin Manager: Use new PipCaller class and only provide dependency-links parameter if supported by pip version 2015-06-23 11:36:27 +02:00
Gina Häußge b32f9bddd2 New util class for performing pip calls
Will lookup the correct pip command to use if not provided as constructor parameter and determine the version. Implements __lt__, __le__, __gt__ and __ge__ for "less/greater than" checks against the pip version, for dynamicalle changing call parameters provided to the execute method based on availability.

 Will allow adjusting software update and plugin manager plugins to only use --process-dependency-links for pip versions >= 1.5
2015-06-23 11:35:23 +02:00
Gina Häußge 1a7193e113 System commands with ignore set to true also ignore http errors 2015-06-22 16:55:32 +02:00
Gina Häußge a580482c29 Allow asynchronous system commands & commands w/ ignored result
That should get rid of error messages for things like shutdown commands.
2015-06-22 14:28:05 +02:00
Gina Häußge e230cfb3f3 Software Update fix: Use pip command line instead of module 2015-06-22 13:07:22 +02:00
Gina Häußge 030b6b4478 Software Update: version cache will be written to disk
Reduces number of requests done against (rate limited) github API, especially after consecutive server restarts. Forcing the update check still will query the API.
2015-06-22 13:05:03 +02:00
Gina Häußge 0f818a313d Software Update: Default to pkg_resources for version comparison
That's also able to cope with 0.3a and similar "non-semantic" version schemes. Semantic version comparison can still be forced by setting the compare_type in the check to "semantic". Strict equality check can be set similarly by using the value "unequal".
2015-06-22 13:03:23 +02:00
Gina Häußge 326fc943b7 Plugin Manager: Cache repository list locally
Reduces requests against github upon server restarts.
2015-06-22 13:00:29 +02:00
Gina Häußge 7e6ddaf0d6 Plugins can now have a folder for plugin related data
Path can be queried from settings.
2015-06-22 12:59:39 +02:00
Gina Häußge 22710ccfb3 Show overlay when a new server version is detected
That's more user friendly than just blindly reloading the page. Also include installed Template- and AssetPlugins in the check whether there's a new version or not.
2015-06-21 18:02:16 +02:00
Gina Häußge 33ea9c3459 Fix: Software Update config could contain circular reference
Caused by a wrong variable usage. Fixed the usage and added a migration
step that fixes the circular reference if it exists. Bumping configuration
version to 2.

Fixes #946
2015-06-21 12:27:33 +02:00
Gina Häußge e722c2f8ad Sanity check: verify that plugin settings data jsonifies without error
More resilience which apparently is necessary as witnessed in #946
2015-06-21 00:32:59 +02:00
31 changed files with 883 additions and 457 deletions

No files matched your search

+69 -32
View File
@@ -1,6 +1,6 @@
# OctoPrint Changelog
## 1.2.0 (Unreleased)
## 1.2.0 (2015-06-25)
### Note for Upgraders
@@ -11,27 +11,44 @@
### New Features
* OctoPrint now has a [plugin system](http://docs.octoprint.org/en/master/plugins/index.html) which allows extending its
core functionality.
* Plugins may be installed through the new and bundled [Plugin Manager Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Plugin-Manager)
available in OctoPrint's settings. This Plugin Manager also allows browsing and easy installation of plugins
registered on the official [OctoPrint Plugin Repository](http://plugins.octoprint.org).
* For interested developers there is a [tutorial available in the documentation](http://docs.octoprint.org/en/master/plugins/gettingstarted.html)
and also a [cookiecutter template](https://github.com/OctoPrint/cookiecutter-octoprint-plugin) to quickly bootstrap
new plugins.
* Added internationalization of UI. Translations of OctoPrint are being crowd sourced via [Transifex](https://www.transifex.com/projects/p/octoprint/).
Language Packs for both the core application as well as installed plugins can be uploaded through a new management
dialog in Settings > Appearance > Language Packs.
dialog in Settings > Appearance > Language Packs. A translation into German is included, further language packs
will soon be made available.
* Printer Profiles: Printer properties like print volume, extruder offsets etc are now managed via Printer Profiles. A
connection to a printer will always have a printer profile associated.
* File management now supports STL files as first class citizens (including UI adjustments to allow management of
uploaded STL files including removal and reslicing) and also allows folders (not yet supported by UI). STL files
can be downloaded like GCODE files.
* Slicing has been greatly improved:
* It now allows for a definition of slicing profiles to use for slicing plus overrides which can be defined per slicing
job (defining overrides is not yet part of the UI but it's on the roadmap).
* A new slicing dialog has been added which allows (re-)slicing uploaded STL files (which are now displayed in the file list
as well). The slicing profile and printer profile to use can be specified here as well as the file name to which to
slice to and the action to take after slicing has been completed (none, selecting the sliced GCODE for printing or
starting to print it directly)
* The slicing API allows positioning the model to slice on the print bed (Note: this is not yet available in the UI).
* Slicers themselves are integrated into the system via ``SlicingPlugins``.
* Bundled [Cura Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Cura) allows slicing through CuraEngine up
to and including 15.04. Existing Cura slicing profiles can be imported through the web interface.
* New file list: Pagination is gone, no more (mobile incompatible) pop overs, instead scrollable and with instant
search
* You can now define a folder (default: `~/.octoprint/watched`) to be watched for newly added GCODE (or -- if slicing
support is enabled -- STL) files to automatically add.
* OctoPrint now has a [plugin system](http://docs.octoprint.org/en/devel/plugins/index.html) which allows extending its
core functionality. Plugins may be installed through the new Plugin Manager available in OctoPrint's settings. This
Plugin Manager also allows browsing and easy installation of plugins registered on the official
[OctoPrint Plugin Repository](http://plugins.octoprint.org). For interested developers there is a
[tutorial available in the documentation](http://docs.octoprint.org/en/master/plugins/gettingstarted.html) and also a
[cookiecutter template](https://github.com/OctoPrint/cookiecutter-octoprint-plugin) to quickly bootstrap new plugins.
* New type of API key: [App Session Keys](http://docs.octoprint.org/en/devel/api/apps.html) for trusted applications
* Printer Profiles: Printer properties like print volume, extruder offsets etc are now managed via Printer Profiles. A
connection to a printer will always have a printer profile associated.
* New type of API key: [App Session Keys](http://docs.octoprint.org/en/master/api/apps.html) for trusted applications
* OctoPrint now supports `action:...` commands received via debug messages (`// action:...`) from the printer. Currently supported are
- `action:pause`: Pauses the current job in OctoPrint
- `action:resume`: Resumes the current job in OctoPrint
- `action:disconnect`: Disconnects OctoPrint from the printer
Plugins can add supported commands by [hooking](http://docs.octoprint.org/en/devel/plugins/hooks.html) into the
Plugins can add supported commands by [hooking](http://docs.octoprint.org/en/master/plugins/hooks.html) into the
``octoprint.comm.protocol.action`` hook
* Mousing over the webcam image in the control tab enables key control mode, allowing you to quickly move the axis of your
printer with your computer's keyboard ([#610](https://github.com/foosel/OctoPrint/pull/610)):
@@ -45,9 +62,11 @@
* Custom controls now support a row layout
* Users can now define custom GCODE scripts to run upon starting/pausing/resuming/success/failure of a print or for
custom controls ([#457](https://github.com/foosel/OctoPrint/issues/457), [#347](https://github.com/foosel/OctoPrint/issues/347))
* Bundled [Discovery Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Discovery) allows discovery of OctoPrint
instances via SSDP/UPNP and optionally also via ZeroConf/Bonjour/Avahi.
* Bundled [Software Update Plugin](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update) takes care of notifying
about new OctoPrint releases and also allows updating if configured as such. Plugins may register themselves with the
update notification and application process through a new hook ["octoprint.plugin.softwareupdate.check_config"]().
update notification and application process through a new hook ["octoprint.plugin.softwareupdate.check_config"](https://github.com/foosel/OctoPrint/wiki/Plugin:-Software-Update#octoprintpluginsoftwareupdatecheck_config).
### Improvements
@@ -60,19 +79,7 @@
* Better error reporting for timelapse rendering and system commands
* Custom control can now be defined so that they show a Confirm dialog with configurable text before executing
([#532](https://github.com/foosel/OctoPrint/issues/532) and [#590](https://github.com/foosel/OctoPrint/pull/590))
* Slicing has been greatly improved:
* It now allows for a definition of slicing profiles to use for slicing plus overrides which can be defined per slicing
job (defining overrides is not yet part of the UI but it's on the roadmap).
* A new slicing dialog has been added which allows (re-)slicing uploaded STL files (which are now displayed in the file list
as well). This dialog also allows specifying which action to take after slicing has been completed (none, selecting the
sliced GCODE for printing or starting to print it directly)
* Slicers themselves are integrated into the system via ``SlicingPlugins``.
* The "Slicing done" notification is now colored green ([#558](https://github.com/foosel/OctoPrint/issues/558)).
* The slicing API allows positioning the model to slice on the print bed (Note: this is not yet available in the UI).
* File management now supports STL files as first class citizens (including UI adjustments to allow management of
uploaded STL files including removal and reslicing) and also allows folders (not yet supported by UI). STL files
can be downloaded like GCODE files.
* Also interpret lines starting with "!!" as errors
* Serial communication: Also interpret lines starting with "!!" as errors
* Added deletion of pyc files to the `python setup.py clean` command
* Settings now show a QRCode for the API Key ([#637](https://github.com/foosel/OctoPrint/pull/637))
* Username in UI is no longer enclosed in scare quotes ([#595](https://github.com/foosel/OctoPrint/pull/595))
@@ -90,13 +97,14 @@
* The server now tracks the modification date of the configuration file and reloads it prior to saving the config if
it has been changed during runtime by external editing, hence no config settings added manually while the server
was running should be overwritten anymore.
* Automatically hard-reload the UI if upon reconnecting to the server a new version is detected.
* Display a "Please Reload" overlay when a new server version or a change in installed plugins is detected after a
reconnect to the server.
* Better handling of errors on the websocket - no more logging of the full stack trace to the log, only a warning
message for now.
* Daemonized OctoPrint now cleans up its pidfile when receiving a TERM signal ([#711](https://github.com/foosel/OctoPrint/issues/711))
* Added serial types for OpenBSD ([#551](https://github.com/foosel/OctoPrint/pull/551))
* Improved behaviour of terminal:
* Disabling autoscrolling now also stops cutting of the log while it's enabled, effectively preventing log lines from
* Disabling autoscrolling now also stops cutting off the log while it's enabled, effectively preventing log lines from
being modified at all ([#735](https://github.com/foosel/OctoPrint/issues/735))
* Applying filters displays ``[...]`` where lines where removed and doesn't cause scrolling on filtered lines
anymore ([#286](https://github.com/foosel/OctoPrint/issues/286))
@@ -123,7 +131,6 @@
from each other (see also [#823](https://github.com/foosel/OctoPrint/pull/823))
* Renamed "Temperature Timeout" and "SD Status Timeout" in Settings to "Temperature Interval" and "SD Status Interval"
to better reflect what those values are actually used for.
* Better behaviour of the settings dialog on mobile devices.
* Added support for rectangular printer beds with the origin in the center ([#682](https://github.com/foosel/OctoPrint/issues/682)
and [#852](https://github.com/foosel/OctoPrint/pull/852)). Printer profiles now contain a new settings ``volume.origin``
which can either be ``lowerleft`` or ``center``. For circular beds only ``center`` is supported.
@@ -137,6 +144,24 @@
* Stop websocket connections from multiplying ([#888](https://github.com/foosel/OctoPrint/pull/888)).
* New setting to rotate webcam by 90° counter clockwise ([#895](https://github.com/foosel/OctoPrint/issues/895) and
[#906](https://github.com/foosel/OctoPrint/pull/906))
* System commands now be set to a) run asynchronized by setting their `async` property to `true` and b) to ignore their
result by setting their `ignore` property to `true`.
* Various improvements of newly introduced features over the course of development:
* File management: The new implementation will migrate metadata from the old one upon first startup after upgrade from
version 1.1.x to 1.2.x. That should speed up initial startup.
* File management: GCODE Analysis backlog processing has been throttled to not take up too many resources on system
startup. Freshly uploaded files should still be analyzed at full speed.
* Plugins: SettingsPlugins may track versions of configuration format stored in `config.yaml`, including a custom
migration method getting called when a mismatch between the currently stored configuration format version and the one
reported by the plugin as current is detected.
* Plugins: Plugins may now have a folder for plugin related data whose path can be retrieved from the plugin itself
via its new method [`get_plugin_data_folder`](http://docs.octoprint.org/en/master/modules/plugin.html#octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder).
* Plugin Manager: Don't allow plugin management actions (like installing/uninstalling or enabling/disabling) while the
printer is printing (see also unreproduced issue [#936](https://github.com/foosel/OctoPrint/issues/936)).
* Plugin Manager: More options to try to match up installed plugin packages with discovered plugins.
* Plugin Manager: Display a more friendly message if after the installation of a plugin it could not be correctly
identifier.
* Software Update: Enforce refreshing of available updates after any changes in enabled plugins.
### Bug Fixes
@@ -201,8 +226,14 @@
downloaded from Github.
* [#931](https://github.com/foosel/OctoPrint/issues/931) - Adjusted `octoprint_setuptools` to be compatible to older
versions of setuptools potentially site-wide installed on hosts.
* Plugin Manager supports installing plugins that need `--process-dependency-links` as `pip` argument. This might be
necessary when plugins depend on (patched) library versions that are not yet released on PyPI
* [#942](https://github.com/foosel/OctoPrint/issues/942) - Settings can now be saved again after installing a new
plugin. Plugins must not use `super` anymore to call parent implementation of `SettingsPlugin.on_settings_save` but
should instead switch to `SettingsPlugin.on_settings_save(self, ...)`. Settings API will capture related
`TypeErrors` and log a big warning to the log file indicating which plugin caused the problem and needs to be
updated. Also updated all bundled plugins accordingly.
* Software Update: Don't persist more check data than necessary in the configuration. Solves an issue where persisted
information overrode updated check configuration reported by plugins, leading to a "an update is available" loop.
An auto-migration function was added that should remove the redundant data.
* Various fixes without tickets:
* GCODE viewer now doesn't stumble over completely extrusionless GCODE files
* Do not deliver the API key on settings API unless user has admin rights
@@ -220,7 +251,13 @@
"Operational" state.
* Log cancelled prints only once (thanks to @imrahil for the headsup)
([Commits](https://github.com/foosel/OctoPrint/compare/1.1.2...master))
### More information
* [Commits](https://github.com/foosel/OctoPrint/compare/1.1.2...1.2.0)
* Release Candidates:
* [RC1](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc1)
* [RC2](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc2)
* [RC3](https://github.com/foosel/OctoPrint/releases/tag/1.2.0-rc3)
## 1.1.2 (2015-03-23)
+7 -3
View File
@@ -257,7 +257,7 @@ them as (hopefully) documented.
:emphasize-lines: 6-8,20
:caption: Excerpt from the Growl Plugin showing utilization of the helpers published by the Discovery Plugin.
:name: sec-plugin-concepts-helpers-example-usage
def on_after_startup(self):
host = self._settings.get(["hostname"])
port = self._settings.getInt(["port"])
@@ -270,7 +270,7 @@ them as (hopefully) documented.
self.growl, _ = self._register_growl(host, port, password=password)
# ...
def on_api_get(self, request):
if not self.zeroconf_browse:
return flask.jsonify(dict(
@@ -302,6 +302,10 @@ An overview of these properties follows.
``self._basefolder``
The plugin's base folder where it's installed. Can be used to refer to files relative to the plugin's installation
location, e.g. included scripts, templates or assets.
``self._datafolder``
The plugin's additional data folder path. Can be used to store additional files needed for the plugin's operation (cache,
data files etc). Plugins should not access this property directly but instead utilize :func:`~octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder`
which will make sure the path actually does exist and if not create it before returning it.
``self._logger``
A `python logger instance <https://docs.python.org/2/library/logging.html>`_ logging to the log target
``octoprint.plugin.<plugin identifier>``.
@@ -340,4 +344,4 @@ Lifecycle
.. image:: ../images/plugins_lifecycle.png
:align: center
:alt: The lifecycle of OctoPrint plugins.
:alt: The lifecycle of OctoPrint plugins.
+9
View File
@@ -426,6 +426,15 @@ class PluginSettings(object):
filename += ".log"
return os.path.join(self.settings.getBaseFolder("logs"), filename)
@deprecated("PluginSettings.get_plugin_data_folder has been replaced by OctoPrintPlugin.get_plugin_data_folder",
includedoc="Replaced by :func:`~octoprint.plugin.types.OctoPrintPlugin.get_plugin_data_folder`",
since="1.2.0")
def get_plugin_data_folder(self):
path = os.path.join(self.settings.getBaseFolder("data"), self.plugin_key)
if not os.path.isdir(path):
os.makedirs(path)
return path
def __getattr__(self, item):
all_access_methods = self.access_methods.keys() + self.deprecated_access_methods.keys()
if item in all_access_methods:
+24 -1
View File
@@ -69,9 +69,32 @@ class OctoPrintPlugin(Plugin):
The :class:`~octoprint.server.LifecycleManager` instance. Injected by the plugin core system upon initialization
of the implementation.
.. attribute:: _data_folder
Path to the data folder for the plugin to use for any data it might have to persist. Should always be accessed
through :meth:`get_plugin_data_folder` since that function will also ensure that the data folder actually exists
and if not creating it before returning it. Injected by the plugin core system upon initialization of the
implementation.
.. automethod:: get_plugin_data_folder
"""
pass
def get_plugin_data_folder(self):
"""
Retrieves the path to a data folder specifically for the plugin, ensuring it exists and if not creating it
before returning it.
Plugins may use this folder for storing additional data they need for their operation.
"""
if self._data_folder is None:
raise RuntimeError("self._plugin_data_folder is None, has the plugin been initialized yet?")
import os
if not os.path.isdir(self._data_folder):
os.makedirs(self._data_folder)
return self._data_folder
class ReloadNeedingPlugin(Plugin):
pass
+66 -82
View File
@@ -12,6 +12,7 @@ import octoprint.plugin.core
from octoprint.settings import valid_boolean_trues
from octoprint.server.util.flask import restricted_access
from octoprint.server import admin_permission
from octoprint.util.pip import PipCaller, UnknownPip
from flask import jsonify, make_response
from flask.ext.babel import gettext
@@ -21,6 +22,8 @@ import sarge
import sys
import requests
import re
import os
import pkg_resources
class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
octoprint.plugin.TemplatePlugin,
@@ -35,11 +38,22 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._pending_install = set()
self._pending_uninstall = set()
self._pip_caller = None
self._repository_available = False
self._repository_plugins = []
self._repository_cache_path = None
self._repository_cache_ttl = 0
def initialize(self):
self._console_logger = logging.getLogger("octoprint.plugins.pluginmanager.console")
self._repository_cache_path = os.path.join(self.get_plugin_data_folder(), "plugins.json")
self._repository_cache_ttl = self._settings.get_int(["repository_ttl"]) * 60
self._pip_caller = PipCaller(configured=self._settings.get(["pip"]))
self._pip_caller.on_log_call = self._log_call
self._pip_caller.on_log_stdout = self._log_stdout
self._pip_caller.on_log_stderr = self._log_stderr
##~~ StartupPlugin
@@ -52,17 +66,22 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._console_logger.setLevel(logging.DEBUG)
self._console_logger.propagate = False
self._repository_available = self._refresh_repository()
self._repository_available = self._fetch_repository_from_disk()
##~~ SettingsPlugin
def get_settings_defaults(self):
return dict(
repository="http://plugins.octoprint.org/plugins.json",
pip=None,
dependency_links=False
repository_ttl=24*60,
pip=None
)
def on_settings_save(self, data):
octoprint.plugin.SettingsPlugin.on_settings_save(self, data)
self._repository_cache_ttl = self._settings.get_int(["repository_ttl"]) * 60
self._pip_caller.refresh = True
##~~ AssetPlugin
def get_assets(self):
@@ -150,7 +169,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
plugin_name = data["plugin"] if "plugin" in data else None
return self.command_install(url=url,
force="force" in data and data["force"] in valid_boolean_trues,
dependency_links="dependency_links" in data and data["dependency_links"] in valid_boolean_trues,
reinstall=plugin_name)
elif command == "uninstall":
@@ -169,7 +187,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
plugin = self._plugin_manager.plugins[plugin_name]
return self.command_toggle(plugin, command)
def command_install(self, url=None, path=None, force=False, reinstall=None, dependency_links=False):
def command_install(self, url=None, path=None, force=False, reinstall=None):
if url is not None:
pip_args = ["install", sarge.shell_quote(url)]
elif path is not None:
@@ -177,9 +195,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
else:
raise ValueError("Either url or path must be provided")
if dependency_links or self._settings.get_boolean(["dependency_links"]):
pip_args.append("--process-dependency-links")
all_plugins_before = self._plugin_manager.find_plugins()
success_string = "Successfully installed"
@@ -386,74 +401,12 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
self._plugin_manager.send_plugin_message(self._identifier, notification)
def _call_pip(self, args):
pip_command = self._settings.get(["pip"])
if pip_command is None:
import os
python_command = sys.executable
binary_dir = os.path.dirname(python_command)
if self._pip_caller is None or not self._pip_caller.available:
raise RuntimeError(u"No pip available, can't operate".format(**locals()))
return self._pip_caller.execute(*args)
pip_command = os.path.join(binary_dir, "pip")
if sys.platform == "win32":
# Windows is a bit special... first of all the file will be called pip.exe, not just pip, and secondly
# for a non-virtualenv install (e.g. global install) the pip binary will not be located in the
# same folder as python.exe, but in a subfolder Scripts, e.g.
#
# C:\Python2.7\
# |- python.exe
# `- Scripts
# `- pip.exe
# virtual env?
pip_command = os.path.join(binary_dir, "pip.exe")
if not os.path.isfile(pip_command):
# nope, let's try the Scripts folder then
scripts_dir = os.path.join(binary_dir, "Scripts")
if os.path.isdir(scripts_dir):
pip_command = os.path.join(scripts_dir, "pip.exe")
if not os.path.isfile(pip_command) or not os.access(pip_command, os.X_OK):
raise RuntimeError(u"No pip path configured and {pip_command} does not exist or is not executable, can't install".format(**locals()))
command = [pip_command] + args
self._logger.debug(u"Calling: {}".format(" ".join(command)))
p = sarge.run(" ".join(command), shell=True, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
p.wait_events()
all_stdout = []
all_stderr = []
try:
while p.returncode is None:
line = p.stderr.readline(timeout=0.5)
if line:
self._log_stderr(line)
all_stderr.append(line)
line = p.stdout.readline(timeout=0.5)
if line:
self._log_stdout(line)
all_stdout.append(line)
p.commands[0].poll()
finally:
p.close()
stderr = p.stderr.text
if stderr:
split_lines = stderr.split("\n")
self._log_stderr(*split_lines)
all_stderr += split_lines
stdout = p.stdout.text
if stdout:
split_lines = stdout.split("\n")
self._log_stdout(*split_lines)
all_stdout += split_lines
return p.returncode, all_stdout, all_stderr
def _log_call(self, *lines):
self._log(lines, prefix=" ", stream="call")
def _log_stdout(self, *lines):
self._log(lines, prefix=">", stream="stdout")
@@ -499,14 +452,48 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
elif plugin.enabled and plugin.key not in self._pending_disable:
self._pending_disable.add(plugin.key)
def _refresh_repository(self):
def _fetch_repository_from_disk(self):
repo_data = None
if os.path.isfile(self._repository_cache_path):
import time
mtime = os.path.getmtime(self._repository_cache_path)
if mtime + self._repository_cache_ttl >= time.time() > mtime:
try:
import json
with open(self._repository_cache_path) as f:
repo_data = json.load(f)
self._logger.info("Loaded plugin repository data from disk, was still valid")
except:
self._logger.exception("Error while loading repository data from {}".format(self._repository_cache_path))
return self._refresh_repository(repo_data=repo_data)
def _fetch_repository_from_url(self):
import requests
repository_url = self._settings.get(["repository"])
try:
r = requests.get(repository_url)
self._logger.info("Loaded plugin repository data from {}".format(repository_url))
except Exception as e:
self._logger.warn("Could not fetch plugins from repository at {repository_url}: {message}".format(repository_url=repository_url, message=str(e)))
return False
self._logger.exception("Could not fetch plugins from repository at {repository_url}: {message}".format(repository_url=repository_url, message=str(e)))
return None
repo_data = r.json()
try:
import json
with open(self._repository_cache_path, "w+b") as f:
json.dump(repo_data, f)
except Exception as e:
self._logger.exception("Error while saving repository data to {}: {}".format(self._repository_cache_path, str(e)))
return repo_data
def _refresh_repository(self, repo_data=None):
if repo_data is None:
repo_data = self._fetch_repository_from_url()
if repo_data is None:
return False
current_os = self._get_os()
octoprint_version = self._get_octoprint_version()
@@ -516,9 +503,6 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
def map_repository_entry(entry):
result = dict(entry)
if not "follow_dependency_links" in result:
result["follow_dependency_links"] = False
result["is_compatible"] = dict(
octoprint=True,
os=True
@@ -539,7 +523,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
return result
self._repository_plugins = map(map_repository_entry, r.json())
self._repository_plugins = map(map_repository_entry, repo_data)
return True
def _get_os(self):
@@ -1 +1 @@
table th.settings_plugin_plugin_manager_plugins_name,table td.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}table th.settings_plugin_plugin_manager_plugins_actions,table td.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}table th.settings_plugin_plugin_manager_plugins_actions a,table td.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}table th.settings_plugin_plugin_manager_plugins_actions a.disabled,table td.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog .slimScrollDiv{margin-bottom:20px}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px;padding-right:10px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url("../img/repo_unavailable.png");text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{overflow:hidden;width:auto;height:300px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px;padding-right:10px}
table th.settings_plugin_plugin_manager_plugins_name,table td.settings_plugin_plugin_manager_plugins_name{text-overflow:ellipsis;text-align:left}table th.settings_plugin_plugin_manager_plugins_actions,table td.settings_plugin_plugin_manager_plugins_actions{text-align:center;width:80px}table th.settings_plugin_plugin_manager_plugins_actions a,table td.settings_plugin_plugin_manager_plugins_actions a{text-decoration:none;color:#000}table th.settings_plugin_plugin_manager_plugins_actions a.disabled,table td.settings_plugin_plugin_manager_plugins_actions a.disabled{color:#ccc;cursor:default}#settings_plugin_pluginmanager_repositorydialog .slimScrollDiv{margin-bottom:20px}#settings_plugin_pluginmanager_repositorydialog h4{position:relative}#settings_plugin_pluginmanager_repositorydialog h4 a.dropdown-toggle{color:inherit;text-decoration:none;font-size:14px}#settings_plugin_pluginmanager_repositorydialog h4 ul.dropdown-menu{font-size:14px}#settings_plugin_pluginmanager_repositorydialog .form-search{text-align:center;margin-bottom:5px!important}#settings_plugin_pluginmanager_repositorydialog .form-inline{padding:5px;padding-right:10px;margin-bottom:0}#settings_plugin_pluginmanager_repositorydialog .form-inline .help-block{margin-bottom:0;font-size:85%}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable{overflow:hidden;width:100%;height:300px;background-image:url("../img/repo_unavailable.png");text-align:center;display:table}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_unavailable div{display:table-cell;vertical-align:middle}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list{overflow:hidden;width:auto;height:300px}#settings_plugin_pluginmanager_repositorydialog #settings_plugin_pluginmanager_repositorydialog_list .entry{border-bottom:1px solid #ddd;padding:5px;padding-right:10px}#settings_plugin_pluginmanager_workingdialog_output .message{font-weight:bold}#settings_plugin_pluginmanager_workingdialog_output .stdout{color:#333}#settings_plugin_pluginmanager_workingdialog_output .stderr{color:#900}#settings_plugin_pluginmanager_workingdialog_output .call{color:#009}
@@ -70,8 +70,6 @@ $(function() {
self.loglines = ko.observableArray([]);
self.installedPlugins = ko.observableArray([]);
self.followDependencyLinks = ko.observable(false);
self.working = ko.observable(false);
self.workingTitle = ko.observable();
self.workingDialog = undefined;
@@ -127,9 +125,6 @@ $(function() {
self.uploadButton.unbind("click");
self.uploadButton.bind("click", function() {
self._markWorking(gettext("Installing plugin..."), gettext("Installing plugin from uploaded archive..."));
data.formData = {
dependency_links: self.followDependencyLinks()
};
data.submit();
return false;
});
@@ -243,13 +238,13 @@ $(function() {
}
if (self.installed(data)) {
self.installPlugin(data.archive, data.title, data.id, data.follow_dependency_links || self.followDependencyLinks());
self.installPlugin(data.archive, data.title, data.id);
} else {
self.installPlugin(data.archive, data.title, undefined, data.follow_dependency_links || self.followDependencyLinks());
self.installPlugin(data.archive, data.title, undefined);
}
};
self.installPlugin = function(url, name, reinstall, followDependencyLinks) {
self.installPlugin = function(url, name, reinstall) {
if (!self.loginState.isAdmin()) {
return;
}
@@ -263,10 +258,6 @@ $(function() {
}
if (!url) return;
if (followDependencyLinks === undefined) {
followDependencyLinks = self.followDependencyLinks();
}
var workTitle, workText;
if (!reinstall) {
workTitle = gettext("Installing plugin...");
@@ -282,7 +273,7 @@ $(function() {
self._markWorking(workTitle, workText);
var command = "install";
var payload = {url: url, dependency_links: followDependencyLinks};
var payload = {url: url};
if (reinstall) {
payload["plugin"] = reinstall;
payload["force"] = true;
@@ -84,3 +84,20 @@ table {
}
}
#settings_plugin_pluginmanager_workingdialog_output {
.message {
font-weight: bold;
}
.stdout {
color: #333333;
}
.stderr {
color: #990000;
}
.call {
color: #000099;
}
}
@@ -53,7 +53,7 @@
<h3 data-bind="text: workingTitle"></h3>
</div>
<div class="modal-body">
<pre id="settings_plugin_pluginmanager_workingdialog_output" class="terminal pre-scrollable" style="height: 170px" data-bind="foreach: loglines"><span data-bind="text: line, css: {stdout: stream == 'stdout', stderr: stream == 'stderr'}"></span><br></pre>
<pre id="settings_plugin_pluginmanager_workingdialog_output" class="terminal pre-scrollable" style="height: 170px" data-bind="foreach: loglines"><span data-bind="text: line, css: {stdout: stream == 'stdout', stderr: stream == 'stderr', call: stream == 'call', message: stream == 'message'}"></span><br></pre>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" data-bind="enable: !$root.working()" aria-hidden="true">{{ _('Close') }}</button>
@@ -147,21 +147,6 @@
</div>
<span class="help-block" data-bind="visible: invalidArchive">{{ _('This does not look like a valid plugin archive. Valid plugin archives should be either zip files or tarballs and have the extension ".zip", ".tar.gz", ".tgz" or ".tar"') }}</span>
</form>
<div>
<div><small><a href="#" class="muted" onclick="$(this).children().toggleClass('icon-caret-right icon-caret-down').parent().parent().parent().next().slideToggle('fast')"><i class="icon-caret-right"></i> {{ _('Advanced options') }}</a></small></div>
<div class="hide">
<form class="form-horizontal">
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" data-bind="checked: followDependencyLinks"> {{ _('Use <code>--process-dependency-links</code> with <code>pip install</code>') }}
</label>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">{{ _('Close') }}</button>
@@ -37,9 +37,13 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._version_cache = dict()
self._version_cache_ttl = 0
self._version_cache_path = None
self._version_cache_dirty = False
def initialize(self):
self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60
self._version_cache_path = os.path.join(self.get_plugin_data_folder(), "versioncache.yaml")
self._load_version_cache()
def refresh_checks(name, plugin):
self._refresh_configured_checks = True
@@ -67,6 +71,41 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
return self._configured_checks
def _load_version_cache(self):
if not os.path.isfile(self._version_cache_path):
return
import yaml
try:
with open(self._version_cache_path) as f:
data = yaml.safe_load(f)
except:
self._logger.exception("Error while loading version cache from disk")
else:
self._version_cache = data
self._version_cache_dirty = False
self._logger.info("Loaded version cache from disk")
def _save_version_cache(self):
import tempfile
import yaml
import shutil
file_obj = tempfile.NamedTemporaryFile(delete=False)
try:
yaml.safe_dump(self._version_cache, stream=file_obj, default_flow_style=False, indent=" ", allow_unicode=True)
file_obj.close()
shutil.move(file_obj.name, self._version_cache_path)
self._version_cache_dirty = False
self._logger.info("Saved version cache to disk")
finally:
try:
if os.path.exists(file_obj.name):
os.remove(file_obj.name)
except Exception as e:
self._logger.warn("Could not delete file {}: {}".format(file_obj.name, str(e)))
#~~ SettingsPlugin API
def get_settings_defaults(self):
@@ -83,8 +122,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
"octoprint_restart_command": None,
"environment_restart_command": None,
"pip_command": None,
"cache_ttl": 60,
"cache_ttl": 24 * 60,
}
def on_settings_save(self, data):
@@ -92,7 +132,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._version_cache_ttl = self._settings.get_int(["cache_ttl"]) * 60
def get_settings_version(self):
return 1
return 2
def on_settings_migrate(self, target, current=None):
if current is None:
@@ -111,7 +151,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
deletables=["current"]
else:
deletables=[]
octoprint_check = self._clean_settings_check("octoprint", configured_checks, self.get_settings_defaults()["checks"]["octoprint"], delete=deletables, save=False)
octoprint_check = self._clean_settings_check("octoprint", octoprint_check, self.get_settings_defaults()["checks"]["octoprint"], delete=deletables, save=False)
# and the hooks
update_check_hooks = self._plugin_manager.get_hooks("octoprint.plugin.softwareupdate.check_config")
@@ -132,6 +172,19 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._clean_settings_check(key, settings_check, data, delete=deletables, save=False)
elif current == 1:
configured_checks = self._settings.get(["checks"], incl_defaults=False)
if configured_checks is None:
return
if "octoprint" in configured_checks and "octoprint" in configured_checks["octoprint"]:
# that's a circular reference, back to defaults
dummy_defaults = dict(plugins=dict())
dummy_defaults["plugins"][self._identifier] = dict(checks=dict())
dummy_defaults["plugins"][self._identifier]["checks"]["octoprint"] = None
self._settings.set(["checks", "octoprint"], None, defaults=dummy_defaults)
self._settings.save()
def _clean_settings_check(self, key, data, defaults, delete=None, save=True):
if delete is None:
delete = []
@@ -267,6 +320,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
local_value = target_information["local"]["value"]
information[target]["displayVersion"] = check["displayVersion"].format(octoprint_version=octoprint_version, local_name=local_name, local_value=local_value)
if self._version_cache_dirty:
self._save_version_cache()
return information, update_available, update_possible
def _get_current_version(self, target, check, force=False):
@@ -276,7 +331,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
if target in self._version_cache and not force:
timestamp, information, update_available, update_possible = self._version_cache[target]
if timestamp + self._version_cache_ttl >= time.time():
if timestamp + self._version_cache_ttl >= time.time() > timestamp:
# we also check that timestamp < now to not get confused too much by clock changes
return information, update_available, update_possible
information = dict()
@@ -301,6 +357,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
update_possible = False
self._version_cache[target] = (time.time(), information, update_available, update_possible)
self._version_cache_dirty = True
return information, update_available, update_possible
def _send_client_message(self, message_type, data=None):
@@ -377,6 +434,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
self._send_client_message("error", dict(results=target_results))
else:
self._save_version_cache()
# otherwise the update process was a success, but we might still have to restart
if restart_type is not None and restart_type in ("octoprint", "environment"):
# one of our updates requires a restart of either type "octoprint" or "environment". Let's see if
@@ -455,6 +514,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
# load will overwrite our changes we just made
self._settings.save()
del self._version_cache[target]
self._version_cache_dirty = True
return target_error, target_result
def _perform_restart(self, restart_command):
@@ -510,6 +572,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
if "update_script" in check:
return updaters.update_script
elif "pip" in check:
if not "pip_command" in check and self._settings.get(["pip_command"]) is not None:
check["pip_command"] = self._settings.get(["pip_command"])
return updaters.pip
elif "python_updater" in check:
return updaters.python_updater
@@ -8,34 +8,67 @@ __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms
import logging
try:
import pip as _pip
except:
_pip = None
from octoprint.util.pip import PipCaller, UnknownPip
logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip")
console_logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip.console")
_pip_callers = dict()
def can_perform_update(target, check):
return "pip" in check and _pip is not None
pip_caller = _get_pip_caller(command=check["pip_command"] if "pip_command" in check else None)
return "pip" in check and pip_caller is not None and pip_caller.available
def _get_pip_caller(command=None):
key = command
if command is None:
key = "__default"
if not key in _pip_callers:
try:
_pip_callers[key] = PipCaller(configured=command)
_pip_callers[key].on_log_call = _log_call
_pip_callers[key].on_log_stdout = _log_stdout
_pip_callers[key].on_log_stderr = _log_stderr
except UnknownPip:
_pip_callers[key] = None
return _pip_callers[key]
def perform_update(target, check, target_version):
logger = logging.getLogger("octoprint.plugins.softwareupdate.updaters.pip")
pip_command = None
if "pip_command" in check:
pip_command = check["pip_command"]
pip_caller = _get_pip_caller(command=pip_command)
if pip_caller is None:
raise RuntimeError("Can't run pip")
install_arg = check["pip"].format(target_version=target_version)
logger.debug("Target: %s, executing pip install %s" % (target, install_arg))
pip_args = ["install", check["pip"].format(target_version=target_version, target=target_version)]
if "dependency_links" in check and check["dependency_links"]:
pip_args += "--process-dependency-links"
pip_caller.execute(*pip_args)
_pip.main(pip_args)
logger.debug("Target: %s, executing pip install %s --ignore-reinstalled --force-reinstall --no-deps" % (target, install_arg))
pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
if "force_reinstall" in check and check["force_reinstall"]:
# if force_reinstall is true, we need to install the package a second time, this time forcing its reinstall
# without forcing its dependencies too
logger.debug("Target. %s, executing pip install %s --ignore-reinstalled --force-reinstall --no-deps" % (target, install_arg))
pip_args += ["--ignore-installed", "--force-reinstall", "--no-deps"]
_pip.main(pip_args)
pip_caller.execute(*pip_args)
return "ok"
def _log_call(*lines):
_log(lines, prefix=" ")
def _log_stdout(*lines):
_log(lines, prefix=">")
def _log_stderr(*lines):
_log(lines, prefix="!")
def _log(lines, prefix=None):
lines = map(lambda x: x.strip(), lines)
for line in lines:
console_logger.debug(u"{prefix} {line}".format(**locals()))
@@ -48,11 +48,19 @@ def _is_current(release_information, compare_type, custom=None):
if release_information["remote"]["value"] is None:
return True
if not compare_type in ("semantic", "unequal", "custom") or compare_type == "custom" and custom is None:
compare_type = "semantic"
if not compare_type in ("python", "semantic", "unequal", "custom") or compare_type == "custom" and custom is None:
compare_type = "python"
try:
if compare_type == "semantic":
if compare_type == "python":
import pkg_resources
local_version = pkg_resources.parse_version(release_information["local"]["value"])
remote_version = pkg_resources.parse_version(release_information["remote"]["value"])
return local_version >= remote_version
elif compare_type == "semantic":
import semantic_version
local_version = semantic_version.Version(release_information["local"]["value"])
@@ -79,7 +87,7 @@ def get_latest(target, check, custom_compare=None):
current = check["current"]
remote_name, remote_tag = _get_latest_release(check["user"], check["repo"], include_prerelease=check["prerelease"] == True if "prerelease" in check else False)
compare_type = check["release_compare"] if "release_compare" in check else "semantic"
compare_type = check["release_compare"] if "release_compare" in check else "python"
information =dict(
local=dict(name=current, value=current),
+2 -1
View File
@@ -196,7 +196,8 @@ class Server():
file_manager=fileManager,
printer=printer,
app_session_manager=appSessionManager,
plugin_lifecycle_manager=pluginLifecycleManager
plugin_lifecycle_manager=pluginLifecycleManager,
data_folder=os.path.join(settings().getBaseFolder("data"), name)
)
def settings_plugin_inject_factory(name, implementation):
+13 -8
View File
@@ -152,6 +152,8 @@ def performSystemAction():
available_actions = s().get(["system", "actions"])
for availableAction in available_actions:
if availableAction["action"] == action:
async = availableAction["async"] if "async" in availableAction else False
ignore = availableAction["ignore"] if "ignore" in availableAction else False
logger.info("Performing command: %s" % availableAction["command"])
try:
# Note: we put the command in brackets since sarge (up to the most recently released version) has
@@ -159,15 +161,18 @@ def performSystemAction():
# workaround again
#
# See https://bitbucket.org/vinay.sajip/sarge/issue/21/behavior-is-not-like-popen-using-shell
p = sarge.run([availableAction["command"]], stderr=sarge.Capture(), shell=True)
if p.returncode != 0:
returncode = p.returncode
stderr_text = p.stderr.text
logger.warn("Command failed with return code %i: %s" % (returncode, stderr_text))
return make_response(("Command failed with return code %i: %s" % (returncode, stderr_text), 500, []))
p = sarge.run([availableAction["command"]], stderr=sarge.Capture(), shell=True, async=async)
if not async:
if not ignore and p.returncode != 0:
returncode = p.returncode
stderr_text = p.stderr.text
logger.warn("Command failed with return code %i: %s" % (returncode, stderr_text))
return make_response(("Command failed with return code %i: %s" % (returncode, stderr_text), 500, []))
except Exception, e:
logger.warn("Command failed: %s" % e)
return make_response(("Command failed: %s" % e, 500, []))
if not ignore:
logger.warn("Command failed: %s" % e)
return make_response(("Command failed: %s" % e, 500, []))
break
return NO_CONTENT
+5
View File
@@ -122,6 +122,11 @@ def getSettings():
def process_plugin_result(name, result):
if result:
try:
jsonify(test=result)
except:
logger.exception("Error while jsonifying settings from plugin {}, please contact the plugin author about this".format(name))
if not "plugins" in data:
data["plugins"] = dict()
if "__enabled" in result:
+10 -1
View File
@@ -49,8 +49,17 @@ class PrinterStateConnection(sockjs.tornado.SockJSConnection, octoprint.printer.
self._remoteAddress = self._getRemoteAddress(info)
self._logger.info("New connection from client: %s" % self._remoteAddress)
plugin_signature = lambda impl: "{}:{}".format(impl._identifier, impl._plugin_version)
template_plugins = map(plugin_signature, self._pluginManager.get_implementations(octoprint.plugin.TemplatePlugin))
asset_plugins = map(plugin_signature, self._pluginManager.get_implementations(octoprint.plugin.AssetPlugin))
ui_plugins = sorted(set(template_plugins + asset_plugins))
import hashlib
plugin_hash = hashlib.md5()
plugin_hash.update(",".join(ui_plugins))
# connected => update the API key, might be necessary if the client was left open while the server restarted
self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION, "display_version": octoprint.server.DISPLAY_VERSION})
self._emit("connected", {"apikey": octoprint.server.UI_API_KEY, "version": octoprint.server.VERSION, "display_version": octoprint.server.DISPLAY_VERSION, "plugin_hash": plugin_hash.hexdigest()})
self._printer.register_callback(self)
self._fileManager.register_slicingprogress_callback(self)
+2 -1
View File
@@ -156,7 +156,8 @@ default_settings = {
"printerProfiles": None,
"scripts": None,
"translations": None,
"generated": None
"generated": None,
"data": None
},
"temperature": {
"profiles": [
+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,0.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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*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:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.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:hover,.btn:focus{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:thin dotted #333;outline:5px auto -webkit-focus-ring-color;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.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.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,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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:aLine 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,0.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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);border-color:#e6e6e6 #e6e6e6 #bfbfbf;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*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:hover,.btn:focus,.btn:active,.btn.active,.btn.disabled,.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:hover,.btn:focus{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:thin dotted #333;outline:5px auto -webkit-focus-ring-color;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.active,.btn-warning.active,.btn-danger.active,.btn-success.active,.btn-info.active,.btn-inverse.active{color:rgba(255,255,255,0.75)}.btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc',endColorstr='#ff0044cc',GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.btn-primary.disabled,.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,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;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450',endColorstr='#fff89406',GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.btn-warning:hover,.btn-warning:focus,.btn-warning:aLine truncated
+10 -7
View File
@@ -9,6 +9,11 @@ function DataUpdater(allViewModels) {
self._autoReconnectTimeouts = [0, 1, 1, 2, 3, 5, 8, 13, 20, 40, 100];
self._autoReconnectDialogIndex = 1;
self._pluginHash = undefined;
self.reloadOverlay = $("#reloadui_overlay");
$("#reloadui_overlay_reload").click(function() { location.reload(true); });
self.connect = function() {
var options = {};
if (SOCKJS_DEBUG) {
@@ -119,6 +124,9 @@ function DataUpdater(allViewModels) {
DISPLAY_VERSION = data["display_version"];
$("span.version").text(DISPLAY_VERSION);
var oldPluginHash = self._pluginHash;
self._pluginHash = data["plugin_hash"];
if ($("#offline_overlay").is(":visible")) {
hideOfflineOverlay();
_.each(self.allViewModels, function(viewModel) {
@@ -132,13 +140,8 @@ function DataUpdater(allViewModels) {
}
}
if (oldVersion != VERSION) {
// version change detected, force reloading UI - use randomized delay to reduce server load in
// the case of multiple clients
var delay = 5 + Math.floor(Math.random() * 5) + 1;
setTimeout(function() {location.reload(true);}, delay * 1000);
// TODO notify about that, or show confirmation
if (oldVersion != VERSION || (oldPluginHash != undefined && oldPluginHash != self._pluginHash)) {
self.reloadOverlay.show();
}
break;
@@ -28,15 +28,17 @@ $(function() {
new PNotify({title: "Success", text: _.sprintf(gettext("The command \"%(command)s\" executed successfully"), {command: action.name}), type: "success"});
},
error: function(jqXHR, textStatus, errorThrown) {
var error = "<p>" + _.sprintf(gettext("The command \"%(command)s\" could not be executed."), {command: action.name}) + "</p>";
error += pnotifyAdditionalInfo("<pre>" + jqXHR.responseText + "</pre>");
new PNotify({title: gettext("Error"), text: error, type: "error", hide: false});
if (!action.hasOwnProperty("ignore") || !action.ignore) {
var error = "<p>" + _.sprintf(gettext("The command \"%(command)s\" could not be executed."), {command: action.name}) + "</p>";
error += pnotifyAdditionalInfo("<pre>" + jqXHR.responseText + "</pre>");
new PNotify({title: gettext("Error"), text: error, type: "error", hide: false});
}
}
})
};
if (action.confirm) {
showConfirmationDialog(action.confirm, function (e) {
callback();
callback();
});
} else {
callback();
@@ -49,4 +51,4 @@ $(function() {
["loginStateViewModel", "appearanceViewModel", "settingsViewModel", "userSettingsViewModel"],
"#navbar"
]);
});
});
+8 -5
View File
@@ -387,19 +387,21 @@ ul.dropdown-menu li a {
width: 100%;
}
/** Offline overlay */
/** Offline & Reload overlay */
#offline_overlay {
#offline_overlay,
#reloadui_overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
z-index: 10001;
display: none;
}
#offline_overlay_background {
#offline_overlay_background,
#reloadui_overlay_background {
position: fixed;
top: 0;
left: 0;
@@ -412,7 +414,8 @@ ul.dropdown-menu li a {
opacity: 0.5;
}
#offline_overlay_wrapper {
#offline_overlay_wrapper,
#reloadui_overlay_wrapper {
position: absolute;
top: 0;
bottom: 0;
+1
View File
@@ -134,6 +134,7 @@
<!-- Overlays -->
{% include 'overlays/dragndrop.jinja2' %}
{% include 'overlays/offline.jinja2' %}
{% include 'overlays/reloadui.jinja2' %}
<!-- End of overlays -->
<!-- Generic plugin template files -->
@@ -0,0 +1,14 @@
<div id="reloadui_overlay" xmlns="http://www.w3.org/1999/html">
<div id="reloadui_overlay_background"></div>
<div id="reloadui_overlay_wrapper">
<div class="container">
<div class="hero-unit">
<h1>{{ _('Please reload') }}</h1>
<p>{{ _('There is a new version of the server active now, a reload of the user interface is needed. This will not interrupt any print jobs you might have ongoing. Please reload the web interface now by clicking the button below.') }}</p>
<p>
<a class="btn btn-primary btn-large" id="reloadui_overlay_reload">{{ _('Reload now') }}</a>
</p>
</div>
</div>
</div>
</div>
@@ -11,8 +11,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-20 01:02+0200\n"
"PO-Revision-Date: 2015-06-20 01:04+0100\n"
"POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: 2015-06-21 18:00+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/"
"language/de/)\n"
@@ -139,97 +139,97 @@ msgstr "Bestätigen"
msgid "Plugin Manager"
msgstr "Pluginmanager"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:272
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..."
msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:144
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:220
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:297
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:327
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:145
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:298
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:328
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:274
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, 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:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:280
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, 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:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall"
msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install"
msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible"
msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:371
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now"
msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:440
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!"
msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin"
msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:525
#, python-format
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr "Plugin installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:526
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
msgid ""
"A plugin was installed successfully, however it was impossible to detect "
"which one. Please Restart OctoPrint to make sure everything will be "
@@ -239,16 +239,16 @@ msgstr ""
"detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass "
"alles ordnungsgemäß registriert wird."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:530
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#, python-format
msgid "Plugin \"%(name)s\" reinstalled"
msgstr "Plugin \"%(name)s\" reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:531
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully"
msgstr "Das Plugin wurde erfolgreich reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -256,7 +256,7 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid ""
"The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect."
@@ -264,16 +264,16 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format
msgid "Plugin \"%(name)s\" installed"
msgstr "Plugin \"%(name)s\" installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully"
msgstr "Das Plugin wurde erfolgreich installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -281,7 +281,7 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid ""
"The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect."
@@ -289,19 +289,19 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format
msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -310,7 +310,7 @@ msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format
msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -319,16 +319,16 @@ msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:566
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format
msgid "Plugin \"%(name)s\" uninstalled"
msgstr "Plugin \"%(name)s\" deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully"
msgstr "Das Plugin wurde erfolgreich deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -336,7 +336,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid ""
"The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect."
@@ -344,27 +344,27 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der "
"Seite notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:573
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format
msgid "Uninstalling the plugin failed: %(reason)s"
msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details."
msgstr ""
"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für "
"Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format
msgid "Plugin \"%(name)s\" enabled"
msgstr "Plugin \"%(name)s\" aktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:584
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully."
msgstr "Das Plugin wurde erfolgreich aktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:585
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -372,7 +372,7 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid ""
"The plugin was enabled successfully, however a reload of the page is needed "
"for that to take effect."
@@ -380,28 +380,28 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite "
"notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:590
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format
msgid "Toggling the plugin failed: %(reason)s"
msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:592
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:609
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details."
msgstr ""
"Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:600
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format
msgid "Plugin \"%(name)s\" disabled"
msgstr "Plugin \"%(name)s\" deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:601
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully."
msgstr "Das Plugin wurde erfolgreich deaktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:602
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -409,7 +409,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid ""
"The plugin was disabled successfully, however a reload of the page is needed "
"for that to take effect."
@@ -546,7 +546,7 @@ msgid ""
msgstr ""
"Übergebe <code>--process-dependency-links</code> an <code>pip install</code>"
#: src/octoprint/plugins/softwareupdate/__init__.py:486
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -883,14 +883,14 @@ msgstr "Zugriff"
msgid "Interface"
msgstr "Interface"
#: src/octoprint/static/js/app/dataupdater.js:61
#: src/octoprint/static/js/app/dataupdater.js:95
#: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline"
msgstr "Der Server ist offline"
#: src/octoprint/static/js/app/dataupdater.js:62
#: src/octoprint/static/js/app/dataupdater.js:66
msgid ""
"The server appears to be offline, at least I'm not getting any response from "
"it. I'll try to reconnect automatically <strong>over the next couple of "
@@ -902,7 +902,7 @@ msgstr ""
"erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch "
"jederzeit einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:96
#: src/octoprint/static/js/app/dataupdater.js:100
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 "
@@ -913,31 +913,31 @@ msgstr ""
"aber Du kannst mittels des folgenden Buttons einen manuellen "
"Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:168
#: src/octoprint/static/js/app/dataupdater.js:196
#: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:194
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse"
msgstr "Zeitrafferaufnahme wird gerendert"
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
#, python-format
msgid "Now rendering timelapse %(movie_basename)s"
msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s"
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready"
msgstr "Zeitrafferaufnahme fertig"
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
#, python-format
msgid "New timelapse %(movie_basename)s is done rendering."
msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert"
#: src/octoprint/static/js/app/dataupdater.js:189
#: src/octoprint/static/js/app/dataupdater.js:187
#, python-format
msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code "
@@ -946,41 +946,41 @@ msgstr ""
"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit "
"Returncode %(returncode)s"
#: src/octoprint/static/js/app/dataupdater.js:191
#: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed"
msgstr "Rendering fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:198
#: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..."
msgstr "Slice ..."
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done"
msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/dataupdater.js:214
#: src/octoprint/static/js/app/dataupdater.js:212
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/dataupdater.js:215
#: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:219
#: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..."
msgstr "Streaming ..."
#: src/octoprint/static/js/app/dataupdater.js:225
#: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done"
msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:226
#: src/octoprint/static/js/app/dataupdater.js:224
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
@@ -2311,6 +2311,20 @@ msgstr "SD-Karte ist nicht initialisiert"
msgid "Attempt to reconnect"
msgstr "Erneut verbinden"
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr "Bitte die Seite neu laden"
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might have "
"ongoing. Please reload the web interface now by clicking the button below."
msgstr ""
"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist "
"notwendig. Das hat keinen Einfluss auf deine evtl. laufenden Printjobs. "
"Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst."
#: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings"
msgstr "Verbindungseinstellungen speichern"
+1 -1
View File
@@ -681,4 +681,4 @@ class InvariantContainer(object):
return len(self._data)
def __iter__(self):
return self._data.__iter__()
return self._data.__iter__()
+11 -5
View File
@@ -1241,10 +1241,10 @@ class MachineCom(object):
self._changeState(self.STATE_DETECT_SERIAL)
serial_obj = self._detectPort(True)
if serial_obj is None:
self._log("Failed to autodetect serial port")
self._errorValue = 'Failed to autodetect serial port.'
self._errorValue = 'Failed to autodetect serial port, please set it manually.'
self._changeState(self.STATE_ERROR)
eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
self._log("Failed to autodetect serial port, please set it manually.")
return None
port = serial_obj.port
@@ -1266,11 +1266,17 @@ class MachineCom(object):
for name, factory in serial_factories:
try:
serial_obj = factory(self, self._port, self._baudrate, settings().getFloat(["serial", "timeout", "connection"]))
except Exception:
self._log("Unexpected error while connecting to serial port: %s %s (hook %s)" % (self._port, get_exception_string(), name))
self._errorValue = "Failed to open serial port, permissions correct?"
except:
exception_string = get_exception_string()
self._errorValue = "Connection error, see Terminal tab"
self._changeState(self.STATE_ERROR)
eventManager().fire(Events.ERROR, {"error": self.getErrorString()})
self._log("Unexpected error while connecting to serial port: %s %s (hook %s)" % (self._port, exception_string, name))
if "failed to set custom baud rate" in exception_string.lower():
self._log("Your installation does not support custom baudrates (e.g. 250000) for connecting to your printer. This is a problem of the pyserial library that OctoPrint depends on. Please update to a pyserial version that supports your baudrate or switch your printer's firmware to a standard baudrate (e.g. 115200). See https://github.com/foosel/OctoPrint/wiki/OctoPrint-support-for-250000-baud-rate-on-Raspbian")
return False
if serial_obj is not None:
+180
View File
@@ -0,0 +1,180 @@
# coding=utf-8
from __future__ import absolute_import
__author__ = "Gina Häußge <osd@foosel.net>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
__copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License"
import sarge
import sys
import logging
class UnknownPip(Exception):
pass
class PipCaller(object):
def __init__(self, configured=None):
self._logger = logging.getLogger(__name__)
self._configured = configured
self._command = None
self._version = None
self._command, self._version = self._find_pip()
self.refresh = False
self.on_log_call = lambda *args, **kwargs: None
self.on_log_stdout = lambda *args, **kwargs: None
self.on_log_stderr = lambda *args, **kwargs: None
def __le__(self, other):
return self.version is not None and self.version <= other
def __lt__(self, other):
return self.version is not None and self.version < other
def __ge__(self, other):
return self.version is not None and self.version >= other
def __gt__(self, other):
return self.version is not None and self.version > other
@property
def command(self):
return self._command
@property
def version(self):
return self._version
@property
def available(self):
return self._command is not None
def execute(self, *args):
if self.refresh:
self._command, self._version = self._find_pip()
self.refresh = False
if self._command is None:
raise UnknownPip()
command = [self._command] + list(args)
joined_command = " ".join(command)
self._logger.debug(u"Calling: {}".format(joined_command))
self.on_log_call(joined_command)
p = sarge.run(joined_command, shell=True, async=True, stdout=sarge.Capture(), stderr=sarge.Capture())
p.wait_events()
all_stdout = []
all_stderr = []
try:
while p.returncode is None:
line = p.stderr.readline(timeout=0.5)
if line:
self._log_stderr(line)
all_stderr.append(line)
line = p.stdout.readline(timeout=0.5)
if line:
self._log_stdout(line)
all_stdout.append(line)
p.commands[0].poll()
finally:
p.close()
stderr = p.stderr.text
if stderr:
split_lines = stderr.split("\n")
self._log_stderr(*split_lines)
all_stderr += split_lines
stdout = p.stdout.text
if stdout:
split_lines = stdout.split("\n")
self._log_stdout(*split_lines)
all_stdout += split_lines
return p.returncode, all_stdout, all_stderr
def _find_pip(self):
pip_command = self._configured
pip_version = None
if pip_command is None:
import os
python_command = sys.executable
binary_dir = os.path.dirname(python_command)
pip_command = os.path.join(binary_dir, "pip")
if sys.platform == "win32":
# Windows is a bit special... first of all the file will be called pip.exe, not just pip, and secondly
# for a non-virtualenv install (e.g. global install) the pip binary will not be located in the
# same folder as python.exe, but in a subfolder Scripts, e.g.
#
# C:\Python2.7\
# |- python.exe
# `- Scripts
# `- pip.exe
# virtual env?
pip_command = os.path.join(binary_dir, "pip.exe")
if not os.path.isfile(pip_command):
# nope, let's try the Scripts folder then
scripts_dir = os.path.join(binary_dir, "Scripts")
if os.path.isdir(scripts_dir):
pip_command = os.path.join(scripts_dir, "pip.exe")
if not os.path.isfile(pip_command) or not os.access(pip_command, os.X_OK):
pip_command = None
if pip_command is not None:
self._logger.debug("Found pip at {}, going to figure out its version".format(pip_command))
command = [pip_command, "--version"]
p = sarge.run(" ".join(command), shell=True, stdout=sarge.Capture(), stderr=sarge.Capture())
if p.returncode != 0:
self._logger.warn("Error while trying to run pip --version: {}".format(p.stderr.text))
pip_command = None
output = p.stdout.text
# output should look something like this:
#
# pip <version> from <path> (<python version>)
#
# we'll just split on whitespace and then try to use the second entry
if not output.startswith("pip"):
self._logger.warn("pip command returned unparseable output, can't determine version: {}".format(output))
split_output = map(lambda x: x.strip(), output.split())
if len(split_output) < 2:
self._logger.warn("pip command returned unparseable output, can't determine version: {}".format(output))
version_segment = split_output[1]
from pkg_resources import parse_version
try:
pip_version = parse_version(version_segment)
except:
self._logger.exception("Error while trying to parse version string from pip command")
else:
self._logger.info("Found pip at {}, version is {}".format(pip_command, version_segment))
return pip_command, pip_version
def _log_stdout(self, *lines):
self.on_log_stdout(*lines)
def _log_stderr(self, *lines):
self.on_log_stderr(*lines)
Binary file not shown.
+98 -84
View File
@@ -11,8 +11,8 @@ msgid ""
msgstr ""
"Project-Id-Version: OctoPrint\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-20 01:02+0200\n"
"PO-Revision-Date: 2015-06-20 01:04+0100\n"
"POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: 2015-06-21 18:00+0100\n"
"Last-Translator: Gina Häußge <osd@foosel.net>\n"
"Language-Team: German (http://www.transifex.com/projects/p/octoprint/"
"language/de/)\n"
@@ -139,97 +139,97 @@ msgstr "Bestätigen"
msgid "Plugin Manager"
msgstr "Pluginmanager"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:272
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..."
msgstr "Installiere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..."
msgstr "Installiere Plugin von hochgeladenem Archiv..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:144
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:220
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:297
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:327
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong"
msgstr "Etwas ist schief gegangen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:145
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:298
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:328
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details"
msgstr "Bitte konsultiere octoprint.log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:274
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, 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:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr "Installiere Plugin von %(url)s..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..."
msgstr "Reinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:280
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, 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:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..."
msgstr "Deinstalliere Plugin..."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr "Deinstalliere Plugin \"%(name)s\""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall"
msgstr "Reinstallieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install"
msgstr "Installieren"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible"
msgstr "Inkompatibel"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:371
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now"
msgstr "Jetzt neu laden"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:440
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!"
msgstr "Fertig!"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin"
msgstr "Plugin enablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin"
msgstr "Plugin disablen"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:525
#, python-format
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr "Plugin installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:526
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
msgid ""
"A plugin was installed successfully, however it was impossible to detect "
"which one. Please Restart OctoPrint to make sure everything will be "
@@ -239,16 +239,16 @@ msgstr ""
"detektieren, welches. Bitte starte OctoPrint neu um sicherzustellen, dass "
"alles ordnungsgemäß registriert wird."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:530
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#, python-format
msgid "Plugin \"%(name)s\" reinstalled"
msgstr "Plugin \"%(name)s\" reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:531
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully"
msgstr "Das Plugin wurde erfolgreich reinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -256,7 +256,7 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid ""
"The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect."
@@ -264,16 +264,16 @@ msgstr ""
"Das Plugin wurde erfolgreich reinstalliert, es ist aber ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format
msgid "Plugin \"%(name)s\" installed"
msgstr "Plugin \"%(name)s\" installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully"
msgstr "Das Plugin wurde erfolgreich installiert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -281,7 +281,7 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neustart von "
"OctoPrint notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid ""
"The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect."
@@ -289,19 +289,19 @@ msgstr ""
"Das Plugin wurde erfolgreich installiert, es ist jedoch ein Neuladen der "
"Seite notwendig bevor es genutzt werden kann."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format
msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -310,7 +310,7 @@ msgstr ""
"Reinstallation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format
msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for "
@@ -319,16 +319,16 @@ msgstr ""
"Installation des Plugins von URL \"%(url)s\" fehlgeschlagen, bitte "
"konsultiere das Log für Details"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:566
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format
msgid "Plugin \"%(name)s\" uninstalled"
msgstr "Plugin \"%(name)s\" deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully"
msgstr "Das Plugin wurde erfolgreich deinstalliert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -336,7 +336,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid ""
"The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect."
@@ -344,27 +344,27 @@ msgstr ""
"Das Plugin wurde erfolgreich deinstalliert, es ist jedoch ein Neuladen der "
"Seite notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:573
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format
msgid "Uninstalling the plugin failed: %(reason)s"
msgstr "Deinstallation des Plugins fehlgeschlagen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details."
msgstr ""
"Deinstallation des Plugins fehlgeschlagen, bitte konsultiere das Log für "
"Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format
msgid "Plugin \"%(name)s\" enabled"
msgstr "Plugin \"%(name)s\" aktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:584
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully."
msgstr "Das Plugin wurde erfolgreich aktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:585
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -372,7 +372,7 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid ""
"The plugin was enabled successfully, however a reload of the page is needed "
"for that to take effect."
@@ -380,28 +380,28 @@ msgstr ""
"Das Plugin wurde erfolgreich aktiviert, es ist jedoch ein Neuladen der Seite "
"notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:590
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format
msgid "Toggling the plugin failed: %(reason)s"
msgstr "Togglen des Plugins fehlgeschalgen: %(reason)s"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:592
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:609
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details."
msgstr ""
"Togglen des Plugins fehlgeschlagen, bitte konsultiere das Log für Details."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:600
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format
msgid "Plugin \"%(name)s\" disabled"
msgstr "Plugin \"%(name)s\" deaktiviert"
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:601
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully."
msgstr "Das Plugin wurde erfolgreich deaktiviert."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:602
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
@@ -409,7 +409,7 @@ msgstr ""
"Das Plugin wurde erfolgreich deaktiviert, es ist jedoch ein Neustart von "
"OctoPrint notwendig."
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid ""
"The plugin was disabled successfully, however a reload of the page is needed "
"for that to take effect."
@@ -546,7 +546,7 @@ msgid ""
msgstr ""
"Übergebe <code>--process-dependency-links</code> an <code>pip install</code>"
#: src/octoprint/plugins/softwareupdate/__init__.py:486
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -883,14 +883,14 @@ msgstr "Zugriff"
msgid "Interface"
msgstr "Interface"
#: src/octoprint/static/js/app/dataupdater.js:61
#: src/octoprint/static/js/app/dataupdater.js:95
#: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline"
msgstr "Der Server ist offline"
#: src/octoprint/static/js/app/dataupdater.js:62
#: src/octoprint/static/js/app/dataupdater.js:66
msgid ""
"The server appears to be offline, at least I'm not getting any response from "
"it. I'll try to reconnect automatically <strong>over the next couple of "
@@ -902,7 +902,7 @@ msgstr ""
"erneut zu verbinden, aber Du kannst mittels des folgenden Buttons auch "
"jederzeit einen manuellen Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:96
#: src/octoprint/static/js/app/dataupdater.js:100
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 "
@@ -913,31 +913,31 @@ msgstr ""
"aber Du kannst mittels des folgenden Buttons einen manuellen "
"Verbindungsversuch anstoßen."
#: src/octoprint/static/js/app/dataupdater.js:168
#: src/octoprint/static/js/app/dataupdater.js:196
#: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:194
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr "Slice ... (%(percentage)d%%)"
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse"
msgstr "Zeitrafferaufnahme wird gerendert"
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
#, python-format
msgid "Now rendering timelapse %(movie_basename)s"
msgstr "Rendere Zeitrafferaufnahme %(movie_basename)s"
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready"
msgstr "Zeitrafferaufnahme fertig"
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
#, python-format
msgid "New timelapse %(movie_basename)s is done rendering."
msgstr "Neue Zeitrafferaufnahme %(movie_basename)s wurde fertig gerendert"
#: src/octoprint/static/js/app/dataupdater.js:189
#: src/octoprint/static/js/app/dataupdater.js:187
#, python-format
msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code "
@@ -946,41 +946,41 @@ msgstr ""
"Rendering der Zeitrafferaufnahme %(movie_basename)s fehlgeschlagen mit "
"Returncode %(returncode)s"
#: src/octoprint/static/js/app/dataupdater.js:191
#: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed"
msgstr "Rendering fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:198
#: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..."
msgstr "Slice ..."
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done"
msgstr "Slicing abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr "%(stl)s nach %(gcode)s geslicet, dauerte %(time).2f Sekunden"
#: src/octoprint/static/js/app/dataupdater.js:214
#: src/octoprint/static/js/app/dataupdater.js:212
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr "Konnte %(stl)s nicht nach %(gcode)s slicen: %(reason)s"
#: src/octoprint/static/js/app/dataupdater.js:215
#: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed"
msgstr "Slicing fehlgeschlagen"
#: src/octoprint/static/js/app/dataupdater.js:219
#: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..."
msgstr "Streaming ..."
#: src/octoprint/static/js/app/dataupdater.js:225
#: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done"
msgstr "Streaming abgeschlossen"
#: src/octoprint/static/js/app/dataupdater.js:226
#: src/octoprint/static/js/app/dataupdater.js:224
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr "%(local)s nach %(remote)s gestreamt, dauerte %(time).2f Sekunden"
@@ -2311,6 +2311,20 @@ msgstr "SD-Karte ist nicht initialisiert"
msgid "Attempt to reconnect"
msgstr "Erneut verbinden"
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr "Bitte die Seite neu laden"
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might have "
"ongoing. Please reload the web interface now by clicking the button below."
msgstr ""
"Die Serverversion hat sich geändert, ein Neuladen des Webinterfaces ist "
"notwendig. Das hat keinen Einfluss auf deine evtl. laufenden Printjobs. "
"Bitte lade das Webinterface jetzt neu, indem du auf den Button unten klickst."
#: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings"
msgstr "Verbindungseinstellungen speichern"
+96 -83
View File
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: OctoPrint 1.2.0-rc1-34-g61bd803\n"
"Project-Id-Version: OctoPrint 1.2.0-rc3-2-g33ea9c3-dirty\n"
"Report-Msgid-Bugs-To: i18n@octoprint.org\n"
"POT-Creation-Date: 2015-06-20 01:02+0200\n"
"POT-Creation-Date: 2015-06-21 17:58+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -132,246 +132,247 @@ msgstr ""
msgid "Plugin Manager"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:272
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:275
msgid "Installing plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:129
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:132
msgid "Installing plugin from uploaded archive..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:144
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:220
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:297
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:327
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:147
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:223
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:300
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:330
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:544
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:574
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:591
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:608
msgid "Something went wrong"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:145
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:221
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:298
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:328
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:148
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:224
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:301
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:331
msgid "Please consult octoprint.log for details"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:274
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:277
#, python-format
msgid "Installing plugin \"%(name)s\" from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:276
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#, python-format
msgid "Installing plugin from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:279
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:282
msgid "Reinstalling plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:280
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:283
#, python-format
msgid "Reinstalling plugin \"%(name)s\" from %(url)s..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
msgid "Uninstalling plugin..."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:318
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:321
#, python-format
msgid "Uninstalling plugin \"%(name)s\""
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Reinstall"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:130
#: src/octoprint/plugins/pluginmanager/templates/pluginmanager_settings.jinja2:146
msgid "Install"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:353
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:356
msgid "Incompatible"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:371
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:374
#: src/octoprint/templates/overlays/reloadui.jinja2:9
msgid "Reload now"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:440
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:443
msgid "Done!"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Enable Plugin"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:460
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:463
msgid "Disable Plugin"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:525
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:528
msgid "Plugin installed"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:526
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:529
msgid ""
"A plugin was installed successfully, however it was impossible to detect "
"which one. Please Restart OctoPrint to make sure everything will be "
"registered properly"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:530
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#, python-format
msgid "Plugin \"%(name)s\" reinstalled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:531
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:534
msgid "The plugin was reinstalled successfully"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:532
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
msgid ""
"The plugin was reinstalled successfully, however a restart of OctoPrint "
"is needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:533
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
msgid ""
"The plugin was reinstalled successfully, however a reload of the page is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:535
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#, python-format
msgid "Plugin \"%(name)s\" installed"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:536
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:539
msgid "The plugin was installed successfully"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:537
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:540
msgid ""
"The plugin was installed successfully, however a restart of OctoPrint is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:538
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:541
msgid ""
"The plugin was installed successfully, however a reload of the page is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:549
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:552
#, python-format
msgid "Reinstalling the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:551
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:554
#, python-format
msgid "Installing the plugin from URL \"%(url)s\" failed: %(reason)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:555
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:558
#, python-format
msgid ""
"Reinstalling the plugin from URL \"%(url)s\" failed, please see the log "
"for details."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:557
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:560
#, python-format
msgid ""
"Installing the plugin from URL \"%(url)s\" failed, please see the log for"
" details."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:566
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#, python-format
msgid "Plugin \"%(name)s\" uninstalled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:567
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:570
msgid "The plugin was uninstalled successfully"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:568
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:571
msgid ""
"The plugin was uninstalled successfully, however a restart of OctoPrint "
"is needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:569
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:572
msgid ""
"The plugin was uninstalled successfully, however a reload of the page is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:573
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:576
#, python-format
msgid "Uninstalling the plugin failed: %(reason)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:575
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:578
msgid "Uninstalling the plugin failed, please see the log for details."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:583
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#, python-format
msgid "Plugin \"%(name)s\" enabled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:584
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:587
msgid "The plugin was enabled successfully."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:585
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:588
msgid ""
"The plugin was enabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:586
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:589
msgid ""
"The plugin was enabled successfully, however a reload of the page is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:590
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:607
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:593
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:610
#, python-format
msgid "Toggling the plugin failed: %(reason)s"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:592
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:609
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:595
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:612
msgid "Toggling the plugin failed, please see the log for details."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:600
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#, python-format
msgid "Plugin \"%(name)s\" disabled"
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:601
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:604
msgid "The plugin was disabled successfully."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:602
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:605
msgid ""
"The plugin was disabled successfully, however a restart of OctoPrint is "
"needed for that to take effect."
msgstr ""
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:603
#: src/octoprint/plugins/pluginmanager/static/js/pluginmanager.js:606
msgid ""
"The plugin was disabled successfully, however a reload of the page is "
"needed for that to take effect."
@@ -498,7 +499,7 @@ msgstr ""
msgid "Use <code>--process-dependency-links</code> with <code>pip install</code>"
msgstr ""
#: src/octoprint/plugins/softwareupdate/__init__.py:486
#: src/octoprint/plugins/softwareupdate/__init__.py:499
#: src/octoprint/server/views.py:146
#: src/octoprint/static/js/app/viewmodels/appearance.js:11
#: src/octoprint/static/js/app/viewmodels/appearance.js:13
@@ -805,14 +806,14 @@ msgstr ""
msgid "Interface"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:61
#: src/octoprint/static/js/app/dataupdater.js:95
#: src/octoprint/static/js/app/dataupdater.js:65
#: src/octoprint/static/js/app/dataupdater.js:99
#: src/octoprint/static/js/app/helpers.js:436
#: src/octoprint/templates/overlays/offline.jinja2:6
msgid "Server is offline"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:62
#: src/octoprint/static/js/app/dataupdater.js:66
msgid ""
"The server appears to be offline, at least I'm not getting any response "
"from it. I'll try to reconnect automatically <strong>over the next couple"
@@ -820,79 +821,79 @@ msgid ""
"anytime using the button below."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:96
#: src/octoprint/static/js/app/dataupdater.js:100
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 ""
#: src/octoprint/static/js/app/dataupdater.js:168
#: src/octoprint/static/js/app/dataupdater.js:196
#: src/octoprint/static/js/app/dataupdater.js:166
#: src/octoprint/static/js/app/dataupdater.js:194
#, python-format
msgid "Slicing ... (%(percentage)d%%)"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
msgid "Rendering timelapse"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:185
#: src/octoprint/static/js/app/dataupdater.js:183
#, python-format
msgid "Now rendering timelapse %(movie_basename)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
msgid "Timelapse ready"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:187
#: src/octoprint/static/js/app/dataupdater.js:185
#, python-format
msgid "New timelapse %(movie_basename)s is done rendering."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:189
#: src/octoprint/static/js/app/dataupdater.js:187
#, python-format
msgid ""
"Rendering of timelapse %(movie_basename)s failed with return code "
"%(returncode)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:191
#: src/octoprint/static/js/app/dataupdater.js:189
msgid "Rendering failed"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:198
#: src/octoprint/static/js/app/dataupdater.js:196
msgid "Slicing ..."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
msgid "Slicing done"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:204
#: src/octoprint/static/js/app/dataupdater.js:202
#, python-format
msgid "Sliced %(stl)s to %(gcode)s, took %(time).2f seconds"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:214
#: src/octoprint/static/js/app/dataupdater.js:212
#, python-format
msgid "Could not slice %(stl)s to %(gcode)s: %(reason)s"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:215
#: src/octoprint/static/js/app/dataupdater.js:213
msgid "Slicing failed"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:219
#: src/octoprint/static/js/app/dataupdater.js:217
msgid "Streaming ..."
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:225
#: src/octoprint/static/js/app/dataupdater.js:223
msgid "Streaming done"
msgstr ""
#: src/octoprint/static/js/app/dataupdater.js:226
#: src/octoprint/static/js/app/dataupdater.js:224
#, python-format
msgid "Streamed %(local)s to %(remote)s on SD, took %(time).2f seconds"
msgstr ""
@@ -2125,6 +2126,18 @@ msgstr ""
msgid "Attempt to reconnect"
msgstr ""
#: src/octoprint/templates/overlays/reloadui.jinja2:6
msgid "Please reload"
msgstr ""
#: src/octoprint/templates/overlays/reloadui.jinja2:7
msgid ""
"There is a new version of the server active now, a reload of the user "
"interface is needed. This will not interrupt any print jobs you might "
"have ongoing. Please reload the web interface now by clicking the button "
"below."
msgstr ""
#: src/octoprint/templates/sidebar/connection.jinja2:8
msgid "Save connection settings"
msgstr ""