Pass kwargs to methodview
This commit is contained in:
parent
ce6d281dce
commit
b6d0aebc1b
1 changed files with 2 additions and 2 deletions
|
|
@ -97,14 +97,14 @@ def index():
|
|||
|
||||
class MicroscopeView(MethodView):
|
||||
|
||||
def __init__(self, microscope):
|
||||
def __init__(self, microscope, **kwargs):
|
||||
"""
|
||||
Create a generic MethodView with a globally available
|
||||
microscope object passed as an argument.
|
||||
"""
|
||||
self.microscope = microscope
|
||||
|
||||
MethodView.__init__(self)
|
||||
MethodView.__init__(self, **kwargs)
|
||||
|
||||
|
||||
class StreamAPI(MicroscopeView):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue