Switched to ActionView and PropertyView from decorators
This commit is contained in:
parent
677b08d509
commit
1819ca6a9c
18 changed files with 57 additions and 98 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from labthings.server.extensions import BaseExtension
|
||||
from labthings.server.find import find_component
|
||||
from labthings.server.view import View
|
||||
from labthings.server.view import View, ActionView
|
||||
|
||||
from labthings.server.decorators import (
|
||||
use_args,
|
||||
|
|
@ -68,8 +68,7 @@ def timelapse(microscope, n_images, t_between):
|
|||
## Extension views
|
||||
|
||||
|
||||
@ThingAction
|
||||
class TimelapseAPI(View):
|
||||
class TimelapseAPI(ActionView):
|
||||
"""
|
||||
Take a series of images in a timelapse, running as a background task
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue