def updateCurrentTag(self, name): if BaseController.updateCurrentTag(self, name) == False: show_warning('Name Exists', "There is already another version named '%s'.\n" "Please enter a different one." % name) return False else: return True
def execute(self, params): from gui.vistrails_window import _app result = BaseController.execute(self, params) _app.notify('execution_updated') return result
def moveTag(self, from_version, to_version, name): BaseController.moveTag(self, from_version, to_version, name) self.stateChanged.emit()
def updateAlias(self, alias): BaseController.updateAlias(self, alias)
def removeAlias(self, name): BaseController.removeAlias(self, name)
def setCurrentVersion(self, version, quiet=True): BaseController.setCurrentVersion(self, version) if not quiet: self.stateChanged.emit() self.versionChanged.emit(version)
def setChanged(self, on): BaseController.setChanged(self, on) self.stateChanged.emit()
def __init__(self, originalController, vt_controller, vt_version, mshptrail=None): QObject.__init__(self) BaseController.__init__(self, originalController, vt_controller, vt_version, mshptrail) self.name = '' self.currentMashupView = None