(self)
complete the files list by processing the given template
complete the files list by processing the given template
complete the files list by processing the given template
def finalize(self):
        """ complete the files list by processing the given template """
        if self.finalized:
            return
        if self.files == None:
            self.files = []
        if self.template != None:
            if type(self.template) == StringType:
                self.template = string.split(self.template,";")
            filelist = FileList(self.warn,self.debug_print)
            for line in self.template:
                filelist.process_template_line(string.strip(line))
            filelist.sort()
            filelist.remove_duplicates()
            self.files.extend(filelist.files)
        self.finalized = 1
def finalize ( self ) : if self . finalized : return if self . files == None : self . files = [ ] if self . template != None : if type ( self . template ) == StringType : self . template = string . split ( self . template , ";" ) filelist = FileList ( self . warn , self . debug_print ) for line in self . template : filelist . process_template_line ( string . strip ( line ) ) filelist . sort ( ) filelist . remove_duplicates ( ) self . files . extend ( filelist . files ) self . finalized = 1