def createSelected (self):
        try:
            appList = self.domManager.catalogSads()
        except:
            try:
                self.refreshView()
                appList = self.domManager.catalogSads()
            except:
                QMessageBox.critical(self, 'Action failed', 'Unable to connect to the Domain.', QMessageBox.Ok)
                return

        appList = [(self._getSADName(sadFile), sadFile) for sadFile in appList]
        app = installdialog.getApplicationFile(appList, self)
        if app == None:
            return
        try:
            app_inst = self.domManager.createApplication(app)
        except CF.ApplicationFactory.CreateApplicationError, e:
            QMessageBox.critical(self, 'Creation of waveform failed.', e.msg, QMessageBox.Ok)
            return
Beispiel #2
0
    def createSelected (self):
        try:
            appList = self.domManager.catalogSads()
        except:
            try:
                self.refreshView()
                appList = self.domManager.catalogSads()
            except:
                QMessageBox.critical(self, 'Action failed', 'Unable to connect to the Domain.', QMessageBox.Ok)
                return

        # Present the app list in alphabetical order.
        appList.sort()
        app = installdialog.getApplicationFile(appList, self)
        if app == None:
            return
        try:
            app_inst = self.domManager.createApplication(app)
        except CF.ApplicationFactory.CreateApplicationError, e:
            QMessageBox.critical(self, 'Creation of waveform failed.', e.msg, QMessageBox.Ok)
            return
    def createSelected(self):
        try:
            appList = self.domManager.catalogSads()
        except:
            try:
                self.refreshView()
                appList = self.domManager.catalogSads()
            except:
                QMessageBox.critical(self, 'Action failed',
                                     'Unable to connect to the Domain.',
                                     QMessageBox.Ok)
                return

        appList = [(self._getSADName(sadFile), sadFile) for sadFile in appList]
        app = installdialog.getApplicationFile(appList, self)
        if app == None:
            return
        try:
            app_inst = self.domManager.createApplication(app)
        except CF.ApplicationFactory.CreateApplicationError, e:
            QMessageBox.critical(self, 'Creation of waveform failed.', e.msg,
                                 QMessageBox.Ok)
            return
Beispiel #4
0
    def createSelected(self):
        try:
            appList = self.domManager.catalogSads()
        except:
            try:
                self.refreshView()
                appList = self.domManager.catalogSads()
            except:
                QMessageBox.critical(self, 'Action failed',
                                     'Unable to connect to the Domain.',
                                     QMessageBox.Ok)
                return

        # Present the app list in alphabetical order.
        appList.sort()
        app = installdialog.getApplicationFile(appList, self)
        if app == None:
            return
        try:
            app_inst = self.domManager.createApplication(app)
        except CF.ApplicationFactory.CreateApplicationError, e:
            QMessageBox.critical(self, 'Creation of waveform failed.', e.msg,
                                 QMessageBox.Ok)
            return