Changeset 8075

Show
Ignore:
Timestamp:
07/24/08 10:33:54 (5 years ago)
Author:
stedwar2
Message:

Removed redundant copy of pathWithSlash.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/ComponentProject/PythonSrc/MainFrameGlue.py

    r7880 r8075  
    182182 
    183183 
    184     def pathWithSlash(self, path): 
    185         length = len(path) 
    186         if length > 0 and path[length - 1] != '/': 
    187             path = path + '/' 
    188         return path 
    189  
    190  
    191184    def setOssieInstallPath(self, path): 
    192185        self.installPath = self.pathWithSlash(path) 
     
    436429        tmpMsg += '> to /usr/local/include/standardinterfaces in order to ' 
    437430        tmpMsg += 'use the generated code.' 
    438          
    439          
    440          
     431 
     432 
     433 
    441434        self.Available_Ints.extend(newInts) 
    442435        return [MainFrameTreeNode('CF', self.CF_Available_Ints), 
     
    444437                MainFrameTreeNode('Custom Interfaces', self.Custom_Available_Ints), 
    445438                MainFrameTreeNode('New Interfaces', newInts)] 
    446         
     439 
    447440    def getCFInterfaces(self): 
    448441        if len(self.CF_Available_Ints) > 0: 
     
    451444            self.importStandardIDL() 
    452445            return self.CF_Available_Ints 
    453      
     446 
    454447    def getStandardInterfaces(self): 
    455448        if len(self.Standard_Available_Ints) > 0: 
     
    458451            self.importStandardIDL() 
    459452            return self.Standard_Available_Ints 
    460      
     453 
    461454    def getCustomInterfaces(self): 
    462455        if len(self.Custom_Available_Ints) > 0: 
     
    465458            self.importStandardIDL() 
    466459            return self.Custom_Available_Ints 
    467      
     460 
    468461    def getInterFaceList(self): 
    469462        if len(self.AvailableInts) > 0: 
     
    472465            self.importStandardIDL() 
    473466            return self.AvailableInts 
    474          
    475          
     467 
     468 
    476469    def getInterfaces(self, file): 
    477470        f = os.popen('python ' 
     
    557550        component_gen.gen_prf(component, savepath, self.wavedevPath()) 
    558551        return None 
    559      
     552 
    560553    def getTemplates(self): 
    561554        availableTemplates = commands.getoutput("cd " + self.wavedevPath() + "generate/templates; ls") 
     
    564557        availableTemplates.remove("__init__$py.class"); 
    565558        return availableTemplates 
    566      
     559 
    567560    def formatSequenceValues(self, values): 
    568561        returnValues = values.replace(",", " ") 
     
    573566        returnValues = returnValues.split() 
    574567        return returnValues 
    575      
    576      
    577          
    578      
     568 
     569 
     570 
     571