♻ Remove implicit blueprint protection in favour of explicit one
This commit is contained in:
1 parent
5015422086
commit
453ef0cb97
5 files changed
+15
No files matched your search
@@ -242,6 +242,9 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin,
|
||||
|
||||
return NO_CONTENT
|
||||
|
||||
def is_blueprint_protected(self):
|
||||
return False
|
||||
|
||||
##~~ EventHandlerPlugin
|
||||
|
||||
def on_event(self, event, payload):
|
||||
|
||||
@@ -322,6 +322,9 @@ class BackupPlugin(octoprint.plugin.SettingsPlugin,
|
||||
|
||||
return flask.jsonify(started=True)
|
||||
|
||||
def is_blueprint_protected(self):
|
||||
return False
|
||||
|
||||
##~~ tornado hook
|
||||
|
||||
def route_hook(self, *args, **kwargs):
|
||||
|
||||
@@ -114,6 +114,9 @@ class LoggingPlugin(octoprint.plugin.AssetPlugin,
|
||||
self._set_logging_levels(json_data)
|
||||
return self.get_logging_levels_api()
|
||||
|
||||
def is_blueprint_protected(self):
|
||||
return False
|
||||
|
||||
def _get_usage(self):
|
||||
import psutil
|
||||
usage = psutil.disk_usage(settings().getBaseFolder("logs", check_writable=False))
|
||||
|
||||
@@ -286,6 +286,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
|
||||
except Exception as e:
|
||||
self._logger.warning("Could not remove temporary file {path} again: {message}".format(path=archive.name, message=str(e)))
|
||||
|
||||
def is_blueprint_protected(self):
|
||||
return False
|
||||
|
||||
##~~ EventHandlerPlugin
|
||||
|
||||
def on_event(self, event, payload):
|
||||
|
||||
@@ -668,6 +668,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
to_be_checked, checks = self.perform_updates(targets=targets, force=force)
|
||||
return flask.jsonify(dict(order=to_be_checked, checks=checks))
|
||||
|
||||
def is_blueprint_protected(self):
|
||||
return False
|
||||
|
||||
#~~ Asset API
|
||||
|
||||
def get_assets(self):
|
||||
|
||||
Reference in new issue
Block a user