Diff for /cdli/cdli_files.py between versions 1.80.2.7 and 1.80.2.8

version 1.80.2.7, 2007/11/19 15:14:44 version 1.80.2.8, 2007/11/27 10:12:58
Line 2167  class CDLIRoot(Folder): Line 2167  class CDLIRoot(Folder):
   
     def showWordInFile(self,fileId,word,indexName='graphemes',regExp=False,):      def showWordInFile(self,fileId,word,indexName='graphemes',regExp=False,):
         """get lines with word from FileId"""          """get lines with word from FileId"""
           logging.debug("showwordinfile word='%s' index=%s file=%s"%(word,indexName,fileId)) 
                   
         file = formatAtfFullLineNum(self.getFile(fileId))          file = formatAtfFullLineNum(self.getFile(fileId))
         ret=[]          ret=[]
Line 2188  class CDLIRoot(Folder): Line 2189  class CDLIRoot(Folder):
         return ret          return ret
           
   
       def showWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):
           """get lines with word from all ids in list FileIds"""
           logging.debug("showwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds)) 
           return [self.showWordInFile(id, word, indexName, regExp) for id in fileIds]
       
   
     def tagWordInFile(self,fileId,word,indexName='graphemes',regExp=False):      def tagWordInFile(self,fileId,word,indexName='graphemes',regExp=False):
         """get text with word highlighted from FileId"""          """get text with word highlighted from FileId"""
           logging.debug("tagwordinfile word='%s' index=%s file=%s"%(word,indexName,fileId)) 
                   
         file=self.getFile(fileId)          file=self.getFile(fileId)
         tagStart=u'<span class="found">'          tagStart=u'<span class="found">'
Line 2238  class CDLIRoot(Folder): Line 2246  class CDLIRoot(Folder):
         return u'<br>\n'.join(ret)          return u'<br>\n'.join(ret)
           
   
   
       def tagWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):
           """get texts with word from all ids in list FileIds"""
           logging.debug("tagwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds)) 
           return [self.tagWordInFile(id, word, indexName, regExp) for id in fileIds]
       
   
     def URLquote(self,str):      def URLquote(self,str):
         """quote url"""          """quote url"""
         return urllib.quote(str)          return urllib.quote(str)

Removed from v.1.80.2.7  
changed lines
  Added in v.1.80.2.8


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>