remotelogin/connections/base/term.py
def open_terminal_from_terminal(self, term_tunnel, **kwargs):
        """ in this case we are opening a terminal using a command like command from the original terminal instead
            of a direct connection and use our expect functions to manage the rest.

            Every connection type should implement the _get_shell_and_conn_string function where

        Args:
            term_tunnel:
            **kwargs:

        Returns:

        """
        kwargs.setdefault('connect_timeout', term_tunnel.connect_timeout)
        terminal_shell, conn_string = self._get_shell_and_conn_string(parent=term_tunnel, **kwargs)

        term_tunnel.send_cmd(conn_string, force_flush=True)
        if len(terminal_shell.shell.ask_response_list):

            match_set = term_tunnel.expect_ask_response_list(
                terminal_shell.shell.ask_response_list,
                timeout=self.connect_timeout,
                stop_after_getting='prompt',
                timeout_after_first_match=min(self.connect_timeout, settings.SOCKET_TIMEOUT_FOR_LOGIN),
                remove_prompt_to_compare=False
            )

            if terminal_shell.shell.expected_prompt and 'prompt' not in match_set:
                raise exceptions.ExpectLoginError('we got into a loop of the system askings and we keep responding')

        return terminal_shell
 in this case we are opening a terminal using a command like command from the original terminal instead
            of a direct connection and use our expect functions to manage the rest.

            Every connection type should implement the _get_shell_and_conn_string function where

        Args:
            term_tunnel:
            **kwargs:

        Returns:

        
in this case we are opening a terminal using a command like command from the original terminal instead
of a direct connection and use our expect functions to manage the rest.

Every connection type should implement the _get_shell_and_conn_string function where
in this case we are opening a terminal using a command like command from the original terminal instead of a direct connection and use our expect functions to manage the rest . Every connection type should implement the _get_shell_and_conn_string function where
def open_terminal_from_terminal(self, term_tunnel, **kwargs):
        kwargs.setdefault('connect_timeout', term_tunnel.connect_timeout)
        terminal_shell, conn_string = self._get_shell_and_conn_string(parent=term_tunnel, **kwargs)
        term_tunnel.send_cmd(conn_string, force_flush=True)
        if len(terminal_shell.shell.ask_response_list):
            match_set = term_tunnel.expect_ask_response_list(
                terminal_shell.shell.ask_response_list,
                timeout=self.connect_timeout,
                stop_after_getting='prompt',
                timeout_after_first_match=min(self.connect_timeout, settings.SOCKET_TIMEOUT_FOR_LOGIN),
                remove_prompt_to_compare=False
            )
            if terminal_shell.shell.expected_prompt and 'prompt' not in match_set:
                raise exceptions.ExpectLoginError('we got into a loop of the system askings and we keep responding')
        return terminal_shell
def open_terminal_from_terminal ( self , term_tunnel , ** kwargs ) : kwargs . setdefault ( 'connect_timeout' , term_tunnel . connect_timeout ) terminal_shell , conn_string = self . _get_shell_and_conn_string ( parent = term_tunnel , ** kwargs ) term_tunnel . send_cmd ( conn_string , force_flush = True ) if len ( terminal_shell . shell . ask_response_list ) : match_set = term_tunnel . expect_ask_response_list ( terminal_shell . shell . ask_response_list , timeout = self . connect_timeout , stop_after_getting = 'prompt' , timeout_after_first_match = min ( self . connect_timeout , settings . SOCKET_TIMEOUT_FOR_LOGIN ) , remove_prompt_to_compare = False ) if terminal_shell . shell . expected_prompt and 'prompt' not in match_set : raise exceptions . ExpectLoginError ( 'we got into a loop of the system askings and we keep responding' ) return terminal_shell
in this case we are opening a terminal using a command like command from the original terminal instead
of a direct connection and use our expect functions to manage the rest.
in this case we are opening a terminal using a command like command from the original terminal instead of a direct connection and use our expect functions to manage the rest .
""" in this case we are opening a terminal using a command like command from the original terminal instead
            of a direct connection and use our expect functions to manage the rest.

            Every connection type should implement the _get_shell_and_conn_string function where

        Args:
            term_tunnel:
            **kwargs:

        Returns:

        """
None
self
term_tunnel
None
**kwargs
None