class documentation
class GalleryThing(lt.Thing): (source)
A Thing for communicating with the front end gallery.
| Method | __enter__ |
Mark this Thing as entered. |
| Method | delete |
Delete all the gallery data on this microscope with the given card types. |
| Class Variable | all |
Undocumented |
| Property | bulk |
All bulk actions. |
| Property | card |
A mapping from thing name to card type. |
| Property | card |
Names for the card types in the gallery. |
| Property | gallery |
All Things that can provide data to the gallery. |
| Property | list |
List the data from all registered things. |
| Method | _set |
Find the card types from each provider. |
| Method | _set |
Set the mapping of gallery providing things. |
| Class Variable | _bulk |
Undocumented |
| Instance Variable | _card |
Undocumented |
| Instance Variable | _card |
Undocumented |
| Instance Variable | _entered |
Undocumented |
| Instance Variable | _gallery |
Undocumented |
Mark this Thing as entered.
Sets self._entered to True. This is used to determine if self._set_gallery_providers can be called. As the gallery providers cannot be set until all OFMThings are entered.
List the data from all registered things.
Currently only works with smart_scan as the UI cards are not customisable.
This will change to an action (or another type of endpoint) at a later date to enable filtering, and returning only a specific page.
Find the card types from each provider.
This is not called on __enter__ as it can only be called once all OFMThings have also been entered. Instead, it is called on the first attempt to read a gallery provider.
| Parameters | |
gallerydict[ | The dictionary of gallery providing things. If card data cannot be extracted for a Thing it will be popped from the provider dictionary. |