예제 #1
0
    def okClicked(self):
        """ okClicked() -> None
        Verify selected ports and initiate control flow creation
        
        """
        try:
            self.enablePackage()
        except MissingPackage:
            debug.critical("The controlflow package is not available")
            return

        # Verify that at least one input and one output have been chosen
        input_ports_info = self.getInputPortsInfo()
        output_ports_info = self.getOutputPortsInfo()
        if len(input_ports_info) == 0:
            show_info(
                'No Input Ports Selected',
                'No Input Ports have been selected.  You must select at least one to proceed.'
            )
        elif len(output_ports_info) == 0:
            show_info(
                'No Output Port Selected',
                'No Output Port has been selected.  You must select one to proceed.'
            )
        else:
            self.createControlFlow(input_ports_info, output_ports_info)
            self.close()
 def testConnection(self):
     """testConnection() -> None """
     config = {'host': str(self.hostEdt.text()),
               'port': int(self.portEdt.value()),
               'user': str(self.userEdt.text()),
               'passwd': str(self.passwdEdt.text()),
               'db': str(self.databaseEdt.text())}
     try:
         vistrails.db.services.io.test_db_connection(config)
         show_info('Vistrails',"Connection succeeded!")
         
     except Exception, e:
         debug.critical('An error has occurred', str(e))
예제 #3
0
 def testConnection(self):
     """testConnection() -> None """
     config = {'host': str(self.hostEdt.text()),
               'port': int(self.portEdt.value()),
               'user': str(self.userEdt.text()),
               'passwd': str(self.passwdEdt.text()),
               'db': str(self.databaseEdt.text())}
     try:
         vistrails.db.services.io.test_db_connection(config)
         show_info('Vistrails',"Connection succeeded!")
         
     except Exception, e:
         debug.critical('An error has occurred', e)
예제 #4
0
    def testConnection(self):
        """testConnection() -> None """
        config = {
            "host": str(self.hostEdt.text()),
            "port": int(self.portEdt.value()),
            "user": str(self.userEdt.text()),
            "passwd": str(self.passwdEdt.text()),
            "db": str(self.databaseEdt.text()),
        }
        try:
            vistrails.db.services.io.test_db_connection(config)
            show_info("Vistrails", "Connection succeeded!")

        except Exception, e:
            debug.critical("An error has occurred", e)
예제 #5
0
    def okClicked(self):
        """ okClicked() -> None
        Verify selected ports and initiate control flow creation
        
        """
        try:
            self.enablePackage()
        except MissingPackage:
            debug.critical("The controlflow package is not available")
            return

        # Verify that at least one input and one output have been chosen
        input_ports_info = self.getInputPortsInfo()
        output_ports_info = self.getOutputPortsInfo()
        if len(input_ports_info) == 0:
            show_info('No Input Ports Selected', 'No Input Ports have been selected.  You must select at least one to proceed.')
        elif len(output_ports_info) == 0:
            show_info('No Output Port Selected', 'No Output Port has been selected.  You must select one to proceed.')
        else:
            self.createControlFlow(input_ports_info, output_ports_info)
            self.close()