コード例 #1
0
ファイル: RTEVariable.py プロジェクト: nataliaratnikova/DAR2
 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()))) 
コード例 #2
0
ファイル: RTEVariable.py プロジェクト: nataliaratnikova/DAR2
 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())))
コード例 #3
0
ファイル: RTEVariable.py プロジェクト: nataliaratnikova/DAR2
 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()))]
コード例 #4
0
ファイル: RTEVariable.py プロジェクト: nataliaratnikova/DAR2
 def createFso(self, value):
     """
     Sets fso attribute by calling FSO.createFSO.
     """
     self.fso = createFSO(value,  self.arg())