def createFso(self): """ Creates a list of FSO objects and appends them to fsoList. """ self.fsoList = [] for location in string.split(self.varValue, self.separator): # extra bracket is important! self.fsoList.append ((location, createFSO(location, self.arg())))
def postpendPath(self, locationList): """ Postpends new FSO objects to the end of the list. """ for location in locationList: newValue = self.varValue+self.separator+location self.setValue(newValue) # update fso: self.fsoList.append ((location, createFSO(location, self.arg())))
def prependPath(self, locationList): """ Prepends new FSO objects to the front of fsoLIst. """ for location in locationList: newValue = location+self.separator+self.varValue self.setValue(newValue) # update fso: self.fsoList[:0] = [(location, createFSO(location, self.arg()))]
def createFso(self, value): """ Sets fso attribute by calling FSO.createFSO. """ self.fso = createFSO(value, self.arg())