changeset 409:598b1731069b

remove cfg.index_rebuild and related code (not needed any more)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 07 Aug 2011 00:36:13 +0200
parents 8cc72401fc25
children 0f9a97f74a8d d755f798fe66
files MoinMoin/app.py MoinMoin/config/default.py MoinMoin/storage/backends/indexing.py
diffstat 3 files changed, 0 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/app.py	Sun Aug 07 00:34:20 2011 +0200
+++ b/MoinMoin/app.py	Sun Aug 07 00:36:13 2011 +0200
@@ -133,10 +133,6 @@
     clock.start('create_app init backends')
     app.unprotected_storage, app.storage = init_backends(app)
     clock.stop('create_app init backends')
-    clock.start('create_app index rebuild')
-    if app.cfg.index_rebuild:
-        app.unprotected_storage.index_rebuild() # XXX run this from a script
-    clock.stop('create_app index rebuild')
     clock.start('create_app load/save xml')
     import_export_xml(app)
     clock.stop('create_app load/save xml')
--- a/MoinMoin/config/default.py	Sun Aug 07 00:34:20 2011 +0200
+++ b/MoinMoin/config/default.py	Sun Aug 07 00:36:13 2011 +0200
@@ -403,8 +403,6 @@
     ('namespace_mapping', None,
     "This needs to point to a (correctly ordered!) list of tuples, each tuple containing: Namespace identifier, backend, acl protection to be applied to that backend. " + \
     "E.g.: [('/', FSBackend('wiki/data'), dict(default='All:read,write,create')), ]. Please see HelpOnStorageConfiguration for further reference."),
-    ('index_rebuild', True,
-     'rebuild item index from scratch (you may set this to False to speedup startup once you have an index)'),
     ('load_xml', None,
      'If this points to an xml file, the file is loaded into the storage backend(s) upon first request.'),
     ('save_xml', None,
--- a/MoinMoin/storage/backends/indexing.py	Sun Aug 07 00:34:20 2011 +0200
+++ b/MoinMoin/storage/backends/indexing.py	Sun Aug 07 00:36:13 2011 +0200
@@ -57,9 +57,6 @@
         item.publish_metadata()
         return item
 
-    def index_rebuild(self):
-        return self._index.index_rebuild(self)
-
     def history(self, reverse=True, item_name=u'', start=None, end=None):
         """
         History implementation using the index.
@@ -216,10 +213,6 @@
         self.index_object.all_revisions_index.close()
         self.index_object.latest_revisions_index.close()
 
-    def index_rebuild(self, backend):
-        # do we need a whoosh implementation of this?
-        pass
-
     def update_item(self, metas):
         """
         update item (not revision!) metadata