diff libervia/backend/core/constants.py @ 4220:5a0bddfa34ac

plugin XEP-0234: fix action type when pre-flight file confirmation is confirmed: the `C.META_TYPE_FILE` can't be used in this case as it is a preflight and we don't have yet data such as progress ID. `C.META_TYPE_FILE` is used as a sub-type to help with dialog management in frontend.
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:49 +0100
parents b26339343076
children dd9bc7d791d7
line wrap: on
line diff
--- a/libervia/backend/core/constants.py	Tue Mar 05 17:31:36 2024 +0100
+++ b/libervia/backend/core/constants.py	Tue Mar 05 17:31:49 2024 +0100
@@ -347,6 +347,8 @@
     )  # //default = normal output (stderr or a file with twistd), path/to/file for a file (must be the first if used), //memory for memory (options can be put in parenthesis, e.g.: //memory(500) for a 500 lines memory)
 
     ## action constants ##
+    #: simple confirmation dialog
+    META_TYPE_CONFIRM = "confirm"
     META_TYPE_FILE = "file"
     META_TYPE_CALL = "call"
     META_TYPE_OVERWRITE = "overwrite"