fixed update source and deprecation warnings

This commit is contained in:
Teja 2015-07-14 21:33:13 +02:00
parent 7f5d45efdc
commit 79587644b4
4 changed files with 6 additions and 5 deletions

View file

@ -55,7 +55,7 @@ class LaserSafetyNotesPlugin(octoprint.plugin.SettingsPlugin,
def on_settings_save(self, data):
if "has_agreed" in data:
has_agreed = data["has_agreed"] in octoprint.settings.valid_boolean_trues
s.setBoolean(["agreed_to_safety_notes"], has_agreed)
s.set_boolean(["agreed_to_safety_notes"], has_agreed)
##~~ TemplatePlugin API

View file

@ -127,8 +127,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
return {
"checks": {
"octoprint": {
"type": "github_release",
"user": "foosel",
#"type": "github_release",
"type": "github_commit",
"user": "mrbeam",
"repo": "OctoPrint",
"update_script": "{{python}} \"{update_script}\" --python=\"{{python}}\" \"{{folder}}\" {{target}}".format(update_script=os.path.join(self._basefolder, "scripts", "update-octoprint.py")),
"restart": "octoprint"

View file

@ -279,7 +279,7 @@ class SvgToGcodePlugin(octoprint.plugin.SlicerPlugin,
self._svgtogcode_logger.setLevel(logging.DEBUG)
else:
self._svgtogcode_logger.setLevel(logging.CRITICAL)
s.setBoolean(["debug_logging"], new_debug_logging)
s.set_boolean(["debug_logging"], new_debug_logging)
##~~ TemplatePlugin API

View file

@ -7,7 +7,7 @@
<div class="modal-body">
<div class="full-sized-box">
<div class="tabbable row-fluid">
<div class="span3 scrollable" id="settings_dialog_menu">
<div class="span3" id="settings_dialog_menu">
<ul class="nav nav-list" id="settingsTabs">
{% set mark_active = True %}
{% for key in templates.settings.order %}