def setBufferAsInactive(optionVar,bufferName): tmp = OptionVarFactory(optionVar,'string') tmp.remove(bufferName)
def setBufferAsActive(optionVar,bufferName): tmp = OptionVarFactory(optionVar,'string') if '' in tmp.value: tmp.remove('') tmp.append(bufferName)