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

version 1.80.2.8, 2007/11/27 10:12:58 version 1.80.2.9, 2007/11/27 10:27:39
Line 2190  class CDLIRoot(Folder): Line 2190  class CDLIRoot(Folder):
   
           
     def showWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):      def showWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):
         """get lines with word from all ids in list FileIds"""          """
           get lines with word from all ids in list FileIds.
           returns dict with id:lines pairs.
           """
         logging.debug("showwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds))           logging.debug("showwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds)) 
         return [self.showWordInFile(id, word, indexName, regExp) for id in fileIds]          
           return dict([(id,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):
Line 2248  class CDLIRoot(Folder): Line 2252  class CDLIRoot(Folder):
   
   
     def tagWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):      def tagWordInFiles(self,fileIds,word,indexName='graphemes',regExp=False):
         """get texts with word from all ids in list FileIds"""          """
           get texts with highlighted word from all ids in list FileIds.
           returns dict with id:text pairs.
           """
         logging.debug("tagwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds))           logging.debug("tagwordinfiles word='%s' index=%s file=%s"%(word,indexName,fileIds)) 
         return [self.tagWordInFile(id, word, indexName, regExp) for id in fileIds]          return dict([(id,self.tagWordInFile(id, word, indexName, regExp)) for id in fileIds])
           
   
     def URLquote(self,str):      def URLquote(self,str):

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


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