Changeset 3508

Show
Ignore:
Timestamp:
04/27/07 15:31:04 (6 years ago)
Author:
DrewCormier
Message:

creates new component .py file and adds the customized GPL to the beginning. Commented addGPL method

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • WaveDev/trunk/WaveDev/wavedev/generate/templates/py_comp/genStructure.py

    r3502 r3508  
    9292  ##############################################################################       
    9393  def genCompFiles(self,comp): 
     94 
     95      ########################################################################## 
    9496      #generate component .py file 
    95       #TODO: write all the code for generting .py file based on component class instance 
     97      ########################################################################## 
     98      #TODO: write more of the code for generting .py file based on component class instance 
     99      input_tmpl = open('generate/templates/py_comp/_sampleComp.py', 'r') 
     100 
     101      #create the main .py file for the component 
     102      output = open(self.path + comp.name + '/' + comp.name + '.py', 'w') 
     103  
     104      #add the generic public license to the beginning of the component main .py file 
     105      self.addGPL(output, comp.name)    
     106 
     107 
    96108 
    97109 
     
    873885 
    874886  def addGPL(self,outFile,name): 
     887      '''Creates a GPL for the component.  The new GPL will have the component 
     888name.  The new GPL is written to the beginning of the outFile''' 
     889 
    875890      inFile = open('generate/gpl_preamble','r') 
    876891      for line in inFile.readlines():