<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,14 +1,14 @@
 #!/usr/bin/env python
-# 
+#
 # Copyright 2004-2006 Zuza Software Foundation
-# 
+#
 # This file is part of translate.
 #
 # translate is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
 # (at your option) any later version.
-# 
+#
 # translate is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -24,7 +24,7 @@ from Pootle import potree
 from Pootle import pootle
 from Pootle import users
 from translate.storage import po
-from translate.search import indexer
+from translate.search import indexing
 import os
 import profile
 import pstats
@@ -119,7 +119,7 @@ Pootle:
     def parse_and_create_stats(self):
         &quot;&quot;&quot;parses all the po files in the test directory into memory, using pootlefile, which creates Stats&quot;&quot;&quot;
         count = 0
-        indexer.HAVE_INDEXER = False
+        indexing.HAVE_INDEXER = False
         for dirpath, subdirs, filenames in os.walk(self.po_dir, topdown=False):
             for name in filenames:
                 pofilename = os.path.join(dirpath, name)
@@ -130,7 +130,7 @@ Pootle:
     def parse_and_create_index(self):
         &quot;&quot;&quot;parses all the po files in the test directory into memory, using pootlefile, and allow index creation&quot;&quot;&quot;
         count = 0
-        indexer.HAVE_INDEXER = True
+        indexing.HAVE_INDEXER = True
         self.server.potree.projectcache.clear()
         project = self.server.potree.getproject(&quot;zxx&quot;, &quot;benchmark&quot;)
         for name in project.browsefiles():</diff>
      <filename>benchmark.py</filename>
    </modified>
    <modified>
      <diff>@@ -32,7 +32,7 @@ from translate.convert import po2oo
 from translate.tools import pocompile
 from translate.tools import pogrep
 from translate.search import match
-from translate.search import indexer
+from translate.search import indexing
 from translate.storage import statsdb, base
 from Pootle import statistics
 from Pootle import pootlefile
@@ -759,7 +759,7 @@ class TranslationProject(object):
     but should be used via a short living local variable.
     &quot;&quot;&quot;
     indexdir = os.path.join(self.podir, self.index_directory)
-    index = indexer.get_indexer(indexdir)
+    index = indexing.get_indexer(indexdir)
     index.set_field_analyzers({
             &quot;pofilename&quot;: index.ANALYZER_EXACT,
             &quot;itemno&quot;: index.ANALYZER_EXACT,
@@ -768,7 +768,7 @@ class TranslationProject(object):
 
   def initindex(self):
     &quot;&quot;&quot;initializes the search index&quot;&quot;&quot;
-    if not indexer.HAVE_INDEXER:
+    if not indexing.HAVE_INDEXER:
       return
     pofilenames = self.pofiles.keys()
     pofilenames.sort()
@@ -802,7 +802,7 @@ class TranslationProject(object):
     @param optimize: should the indexing database be optimized afterwards
     @type optimize: bool
     &quot;&quot;&quot;
-    if not indexer.HAVE_INDEXER:
+    if not indexing.HAVE_INDEXER:
       return
     index = self.getindexer()
     pofile = self.pofiles[pofilename]
@@ -896,7 +896,7 @@ class TranslationProject(object):
 
   def indexsearch(self, search, returnfields):
     &quot;&quot;&quot;returns the results from searching the index with the given search&quot;&quot;&quot;
-    if not indexer.HAVE_INDEXER:
+    if not indexing.HAVE_INDEXER:
       return False
     index = self.getindexer()
     searchparts = []
@@ -918,7 +918,7 @@ class TranslationProject(object):
     if lastpofilename and not lastpofilename in self.pofiles:
       # accessing will autoload this file...
       self.pofiles[lastpofilename]
-    if indexer.HAVE_INDEXER and search.searchtext:
+    if indexing.HAVE_INDEXER and search.searchtext:
       # TODO: move this up a level, use index to manage whole search, so we don't do this twice
       hits = self.indexsearch(search, &quot;pofilename&quot;)
       # there will be only result for the field &quot;pofilename&quot; - so we just
@@ -968,7 +968,7 @@ class TranslationProject(object):
         return items
 
     def get_items(pofilename, search, lastitem):
-      if indexer.HAVE_INDEXER and search.searchtext:
+      if indexing.HAVE_INDEXER and search.searchtext:
         # Return an iterator using the indexer if indexing is available and if there is searchtext.
         return indexed(pofilename, search, lastitem)
       else:</diff>
      <filename>projects.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ffb4597e16d43bf4b4f7bc852b68876390996da8</id>
    </parent>
  </parents>
  <author>
    <name>winterstream</name>
    <email>winterstream@54714841-351b-0410-a198-e36a94b762f5</email>
  </author>
  <url>http://github.com/julen/pootle/commit/c24c46353bb3f992f5cd8d20c9ceb8bb1c3b716e</url>
  <id>c24c46353bb3f992f5cd8d20c9ceb8bb1c3b716e</id>
  <committed-date>2008-08-26T07:36:41-07:00</committed-date>
  <authored-date>2008-08-26T07:36:41-07:00</authored-date>
  <message>Rename the module named indexer to indexing.



git-svn-id: https://translate.svn.sourceforge.net/svnroot/translate/src/trunk/Pootle@8187 54714841-351b-0410-a198-e36a94b762f5</message>
  <tree>df8415f93a37b0c2dcbe3d5293168b33e24446b3</tree>
  <committer>
    <name>winterstream</name>
    <email>winterstream@54714841-351b-0410-a198-e36a94b762f5</email>
  </committer>
</commit>
