Removed old plugin system

This commit is contained in:
Joel Collins 2019-12-18 15:04:55 +00:00
parent a77ed8e273
commit 45c8d2b47f
7 changed files with 1 additions and 435 deletions

View file

@ -1,3 +0,0 @@
__all__ = ["utilities", "views"]
from . import utilities, views

View file

@ -6,7 +6,6 @@ from flask import Blueprint, url_for, jsonify
from openflexure_microscope.api.utilities import blueprint_for_module
from openflexure_microscope.utilities import get_docstring, description_from_view
from openflexure_microscope.api.views import MicroscopeView
from . import camera, stage, system

View file

@ -1,28 +0,0 @@
from flask.views import MethodView
class MicroscopeView(MethodView):
"""
Create a generic MethodView with a globally available
microscope object passed as an argument.
"""
def __init__(self, microscope, **kwargs):
self.microscope = microscope
MethodView.__init__(self, **kwargs)
class MicroscopeViewPlugin(MicroscopeView):
"""
Create a generic MethodView with a globally available
microscope object passed as an argument, and a plugin
reference stored in 'self'. Initially None.
"""
def __init__(self, microscope, plugin=None, **kwargs):
self.plugin = plugin
MicroscopeView.__init__(self, microscope=microscope, **kwargs)