Loading openflexure_microscope/api/v1/views.py +14 −1 Original line number Diff line number Diff line Loading @@ -11,3 +11,16 @@ class MicroscopeView(MethodView): self.microscope = microscope MethodView.__init__(self, **kwargs) class MicroscopeViewPlugin(MicroscopeView): def __init__(self, microscope, plugin=None, **kwargs): """ Create a generic MethodView with a globally available microscope object passed as an argument, and a plugin reference stored in 'self'. Initially None """ self.plugin = plugin MicroscopeView.__init__(self, microscope=microscope, **kwargs) No newline at end of file Loading
openflexure_microscope/api/v1/views.py +14 −1 Original line number Diff line number Diff line Loading @@ -11,3 +11,16 @@ class MicroscopeView(MethodView): self.microscope = microscope MethodView.__init__(self, **kwargs) class MicroscopeViewPlugin(MicroscopeView): def __init__(self, microscope, plugin=None, **kwargs): """ Create a generic MethodView with a globally available microscope object passed as an argument, and a plugin reference stored in 'self'. Initially None """ self.plugin = plugin MicroscopeView.__init__(self, microscope=microscope, **kwargs) No newline at end of file