Refactored adding views, actions, props and components

This commit is contained in:
Joel Collins 2020-01-11 14:58:50 +00:00
parent 7715c19305
commit a4196b6765
10 changed files with 62 additions and 66 deletions

View file

@ -1,17 +1,13 @@
"""
Top-level representation of attached and enabled Extensions
"""
from openflexure_microscope.common.flask_labthings.utilities import get_docstring
from openflexure_microscope.common.flask_labthings.schema import Schema
from openflexure_microscope.common.flask_labthings import fields
from ..resource import Resource
from ..find import registered_extensions
from ..schema import ExtensionSchema
from ..decorators import marshal_with
from ..decorators import marshal_with, ThingProperty
@ThingProperty
class ExtensionList(Resource):
"""
List and basic documentation for all enabled Extensions

View file

@ -1,12 +1,13 @@
from flask import abort, url_for
from ..decorators import marshal_with
from ..decorators import marshal_with, ThingProperty
from ..resource import Resource
from ..schema import TaskSchema
from openflexure_microscope.common.labthings_core import tasks
@ThingProperty
class TaskList(Resource):
"""
List and basic documentation for all session tasks