'Tries to connect to Couch using the same URI'

def handle_connection_lost(self, button=None, dialog=None):

    couch_uri = CONF.getCouchURI()
    if self.connect_to_couch(couch_uri, parent=dialog):
        reconnected = True
        if (dialog is not None):
            dialog.destroy()
            self.open_last_workspace()
            self.lost_connection_dialog_raised = False
    else:
        reconnected = False
    return reconnected
