Skip to content

Extensions should be able to add Components #6

Open

Description

@jtc42

Eventually, Extensions may become the backbone of constructing an LT app

Example of use: OFM with spectrometer: All spectrometer logic (functions, component, and views) can be handled by the extension

Activity

  1. rwb27 commented on Jun 17, 2021

    @rwb27
    Contributor

    I've been thinking about this some more in relation to making it easier to swap stages, for example; is the notion of a Component already defined anywhere?

  2. rwb27 commented on Jun 22, 2021

    @rwb27
    Contributor

    OK, mostly for my reference:

    • Components are Python objects that get attached to the LabThing, with a name. This means they may be referenced by name rather than value.
    • Extensions are not Components (currently). Should they be? It would allow one extension to be made aware of the registration of another extension through the on_component mechanism and means you don't need to worry about whether you are looking for an Extension or a SomethingElse...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalOn the critical pathenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions