gui/backend/gui_plugin/core/modules/ModuleSession.py
def send_prompt_response(self, request_id, prompt, prompt_event_cb):
        """
        Sends a prompt response to the FE for an operation being attended in
        the BE.

        NOTE: Prompts are responses to some requests from the FE that may or
        may not require user interaction for that reason such messages should
        be attended in the BE in an asynchronous way, this is, BE should start
        processing such requests but return immediately.

        The reason for this is that if interaction is required, a dialog
        between BE and FE will start to resolve anything that needs to be
        resolved before the original message can actually be attended.

        To achieve this, these messages should be attended in the BE in a
        separate thread which if needed, will call this function to have the
        dialog with the FE.

        NOW, even the communication with the FE is asynchronous, at the BE
        itself it is a synchronous process, so the caller thread should wait
        for the FE to reply to this prompt; for that reason the prompt_cb is
        a lambda function in the form of:

        lambda : event.set()

        Where event is a threading Event being waited in the caller thread.

        The lambda function will be executed when the FE responds to this
        prompt at process_prompt_reply.
        """
        self._expected_prompt = request_id
        self._prompt_event_callback = prompt_event_cb
        self._web_session.send_prompt_response(request_id, prompt, self)

        Sends a prompt response to the FE for an operation being attended in
        the BE.

        NOTE: Prompts are responses to some requests from the FE that may or
        may not require user interaction for that reason such messages should
        be attended in the BE in an asynchronous way, this is, BE should start
        processing such requests but return immediately.

        The reason for this is that if interaction is required, a dialog
        between BE and FE will start to resolve anything that needs to be
        resolved before the original message can actually be attended.

        To achieve this, these messages should be attended in the BE in a
        separate thread which if needed, will call this function to have the
        dialog with the FE.

        NOW, even the communication with the FE is asynchronous, at the BE
        itself it is a synchronous process, so the caller thread should wait
        for the FE to reply to this prompt; for that reason the prompt_cb is
        a lambda function in the form of:

        lambda : event.set()

        Where event is a threading Event being waited in the caller thread.

        The lambda function will be executed when the FE responds to this
        prompt at process_prompt_reply.
        
Sends a prompt response to the FE for an operation being attended in
the BE.

Prompts are responses to some requests from the FE that may or
may not require user interaction for that reason such messages should
be attended in the BE in an asynchronous way, this is, BE should start
processing such requests but return immediately.

The reason for this is that if interaction is required, a dialog
between BE and FE will start to resolve anything that needs to be
resolved before the original message can actually be attended.

To achieve this, these messages should be attended in the BE in a
separate thread which if needed, will call this function to have the
dialog with the FE.

NOW, even the communication with the FE is asynchronous, at the BE
itself it is a synchronous process, so the caller thread should wait
for the FE to reply to this prompt; for that reason the prompt_cb is
a lambda function in the form of.





The lambda function will be executed when the FE responds to this
prompt at process_prompt_reply.
Sends a prompt response to the FE for an operation being attended in the BE . Prompts are responses to some requests from the FE that may or may not require user interaction for that reason such messages should be attended in the BE in an asynchronous way this is BE should start processing such requests but return immediately . The reason for this is that if interaction is required a dialog between BE and FE will start to resolve anything that needs to be resolved before the original message can actually be attended . To achieve this these messages should be attended in the BE in a separate thread which if needed will call this function to have the dialog with the FE . NOW even the communication with the FE is asynchronous at the BE itself it is a synchronous process so the caller thread should wait for the FE to reply to this prompt ; for that reason the prompt_cb is a lambda function in the form of . The lambda function will be executed when the FE responds to this prompt at process_prompt_reply .
def send_prompt_response(self, request_id, prompt, prompt_event_cb):
        self._expected_prompt = request_id
        self._prompt_event_callback = prompt_event_cb
        self._web_session.send_prompt_response(request_id, prompt, self)
def send_prompt_response ( self , request_id , prompt , prompt_event_cb ) : self . _expected_prompt = request_id self . _prompt_event_callback = prompt_event_cb self . _web_session . send_prompt_response ( request_id , prompt , self )
Sends a prompt response to the FE for an operation being attended in
the BE.
Sends a prompt response to the FE for an operation being attended in the BE .
"""
        Sends a prompt response to the FE for an operation being attended in
        the BE.

        NOTE: Prompts are responses to some requests from the FE that may or
        may not require user interaction for that reason such messages should
        be attended in the BE in an asynchronous way, this is, BE should start
        processing such requests but return immediately.

        The reason for this is that if interaction is required, a dialog
        between BE and FE will start to resolve anything that needs to be
        resolved before the original message can actually be attended.

        To achieve this, these messages should be attended in the BE in a
        separate thread which if needed, will call this function to have the
        dialog with the FE.

        NOW, even the communication with the FE is asynchronous, at the BE
        itself it is a synchronous process, so the caller thread should wait
        for the FE to reply to this prompt; for that reason the prompt_cb is
        a lambda function in the form of:

        lambda : event.set()

        Where event is a threading Event being waited in the caller thread.

        The lambda function will be executed when the FE responds to this
        prompt at process_prompt_reply.
        """
self
request_id
prompt
prompt_event_cb