forked from M-Labs/artiq
applets: add update_dataset for dataset mods
This commit is contained in:
parent
69bf2dfb81
commit
c298ec4c2e
|
@ -81,6 +81,8 @@ class AppletIPCServer(AsyncioParentComm):
|
||||||
self.write_pyon({"action": "mod", "mod": mod})
|
self.write_pyon({"action": "mod", "mod": mod})
|
||||||
elif action == "set_dataset":
|
elif action == "set_dataset":
|
||||||
await self.dataset_ctl.set(obj["key"], obj["value"], obj["persist"])
|
await self.dataset_ctl.set(obj["key"], obj["value"], obj["persist"])
|
||||||
|
elif action == "update_dataset":
|
||||||
|
await self.dataset_ctl.update(obj["mod"])
|
||||||
else:
|
else:
|
||||||
raise ValueError("unknown action in applet message")
|
raise ValueError("unknown action in applet message")
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue