def saveComplete(self): folder = askForFolder(self, "Select folder to store app") if folder: appdef = self.createAppDefinition() consolidate(folder, appdef)
def selectFolder(self): folder = askForFolder(self, "Folder for local storage") if folder: self.textFolder.setText(folder)
# check if able to login via connect credentials try: utils.getConnectAuthCfg() except Exception as ex: errMessage = str(ex) QMessageBox.warning(self, "Need Connect credentials", errMessage, QMessageBox.Close) return if problems: dlg = AppDefProblemsDialog(problems) dlg.exec_() if not dlg.ok: return # now ask where to store app folder = askForFolder(self, "Select folder to store app") if folder: if os.path.exists(os.path.join( folder, "webapp")) and pluginSetting("overwritewarning"): ret = QMessageBox.warning( self, "Output folder", " The selected folder already contains a 'webapp' subfolder.\n" "Do you confirm that you want to overwrite it?", QMessageBox.Yes | QMessageBox.No, QMessageBox.No) if ret == QMessageBox.No: return # set buttons status self.setButtonsEnabled( status=False, excludeList=[self.buttonCreateOrStopApp])