def noninteractiveMode(self):
        usedb = False
        passwd = ''
        if self.temp_configuration.check('host'):
            usedb = True
        if usedb and self.temp_configuration.check('user'):
            db_config = dict((x, self.temp_configuration.check(x))
                             for x in ['host', 'port', 
                                       'db', 'user'])
            try:
                test_db_connection(db_config)
            except VistrailsDBException:
                passwd = \
                    getpass.getpass("Connecting to %s:%s. Password for user '%s':" % (
                                    db_config['host'],
                                    db_config['db'],
                                    db_config['user']))
                db_config['passwd'] = passwd
                try:
                    test_db_connection(db_config)
                except VistrailsDBException:
                    debug.critical("Cannot login to database")
                    return False
    
        if self.input:
            w_list = []
            vt_list = []
            for filename in self.input:
                f_name, version = self._parse_vtinfo(filename, not usedb)
                if not f_name:
                    debug.critical("File not found: %s" % filename)
                    return False
                if not usedb:
                    locator = FileLocator(os.path.abspath(f_name))
                else:
                    locator = DBLocator(
                           host=self.temp_configuration.check('host'),
                           port=self.temp_configuration.check('port') or 3306,
                           database=self.temp_configuration.check('db'),
                           user=self.temp_configuration.check('user'),
                           passwd=passwd,
                           obj_id=f_name,
                           obj_type=None,
                           connection_id=None)
                    if not locator.is_valid():
                        #here there is a problem: as we allow execution from 
                        #command line with VisTrails already running, we need
                        #to update from the gui
                        if hasattr(self, 'builderWindow'):
                            ok = locator.update_from_gui(self.builderWindow)
                        else:
                            ok = locator.update_from_console()
                        if not ok:
                            debug.critical("Cannot login to database")
                if self.temp_configuration.check('jobList'):
                    return self.printJobs(locator)
                if self.temp_configuration.check('jobInfo'):
                    return self.printJob(locator, version)

                w_list.append((locator, version))
                vt_list.append(locator)
            import vistrails.core.console_mode

            if self.temp_configuration.check('outputDirectory'):
                output_dir = self.temp_configuration.outputDirectory
            else:
                output_dir = None

            errs = []
            if self.temp_configuration.check('outputPipelineGraph'):
                results = vistrails.core.console_mode.get_wf_graph(w_list, output_dir or '',
                                                                   self.temp_configuration.graphsAsPdf)
                for r in results:
                    if r[0] is False:
                        errs.append("Error generating workflow graph: %s" % \
                                    r[1])
                        debug.critical("*** Error in get_wf_graph: %s" % r[1])
            
            if self.temp_configuration.check('outputVersionTree'):
                results = vistrails.core.console_mode.get_vt_graph(vt_list, output_dir or '',
                                                                   self.temp_configuration.graphsAsPdf)
                for r in results:
                    if r[0] is False:
                        errs.append("Error generating vistrail graph: %s" % \
                                    r[1])
                        debug.critical("*** Error in get_vt_graph: %s" % r[1])

            if not self.temp_configuration.check('noExecute'):
                if self.temp_configuration.check('parameterExploration'):
                    errs.extend(
                        vistrails.core.console_mode.run_parameter_explorations(
                            w_list))
                else:
                    errs.extend(vistrails.core.console_mode.run(
                            w_list,
                            self.temp_configuration.check('parameters') or '',
                            update_vistrail=True))
                if len(errs) > 0:
                    for err in errs:
                        print err
                        debug.critical("*** Error in %s:%s:%s -- %s" % err)
                    return [False, ["*** Error in %s:%s:%s -- %s" % err for err in errs]]
            return True
        else:
            debug.warning("no input vistrails provided")
            return True
noninteractiveMode() -> None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/application.py/VistrailsApplicationSingleton.noninteractiveMode