Logo Search packages:      
Sourcecode: mago version File versions  Download package

def mago::application::pidgin::pidgin::Pidgin::wait_for_account_connect (   self,
  account_info,
  timeout = 15 
)

It waits for an account to be connected.
A timeout value can be passed, being default 15secs.

It raises an exception if the timeout expires.

@param account_info: The account information.
@type account_info: L{AccountInfo}
@param timeout: Number of seconds to wait for the accout to be connected (default:15s)
@type timeout: integer

Definition at line 173 of file pidgin.py.

00173                                                                 :
        """
        It waits for an account to be connected.
        A timeout value can be passed, being default 15secs.

        It raises an exception if the timeout expires.

        @param account_info: The account information.
        @type account_info: L{AccountInfo}
        @param timeout: Number of seconds to wait for the accout to be connected (default:15s)
        @type timeout: integer
        """
        starttime = time()
        while not self.account_connected(account_info):
            if time() - starttime >= timeout:
                raise Exception('IM server connection timed out')
            exists = ldtp.waittillguiexist('dlgSSLCertificateVerification',
                                           guiTimeOut=1)
            if exists:
                ldtp.click('dlgSSLCertificateVerification', 'btnAccept')

    def account_connected(self, account_info):


Generated by  Doxygen 1.6.0   Back to index