Add way for gallery providers to specify bulk actions.

This commit is contained in:
Julian Stirling 2026-06-25 16:52:44 +01:00
parent 3e38722d45
commit 2dcd386661
4 changed files with 57 additions and 0 deletions

View file

@ -332,6 +332,13 @@ class BaseCamera(OFMThing, ABC):
self.logger.info(f"Deleting: {capture}")
os.remove(capture)
def get_gallery_bulk_actions(self) -> list[ActionButton]:
"""Return the bulk gallery actions for cameras.
By default there are no bulk actions.
"""
return []
@lt.endpoint(
"delete",
"capture/{name}",