spoolman: add remote method to set active spool

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2023-06-26 16:48:18 -04:00
parent 56499f9269
commit a237ba3735
No known key found for this signature in database
GPG Key ID: 5A1EB336DFB4C71B
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ class SpoolManager:
self._register_notifications()
self._register_listeners()
self._register_endpoints()
self.server.register_remote_method(
"spoolman_set_active_spool", self.set_active_spool
)
def _register_notifications(self):
self.server.register_notification("spoolman:active_spool_set")