diff MoinMoin/app.py @ 1780:4a054063fbb0

make whoosh storage type and params configurable, updated docs Currently it only supports: index_storage = 'FileStorage', (index_dir, ), {} But it is now easy to add other types of whoosh storages, see MoinMoin/storage/middleware/indexing.py (search for WHOOSH_FILESTORAGE).
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 08 Sep 2012 23:57:40 +0200
parents 54be46b8a0b4
children 52dd2c449e07 ff503e7ea7a0 f38a893334b5
line wrap: on
line diff
--- a/MoinMoin/app.py	Sat Sep 08 21:21:57 2012 +0200
+++ b/MoinMoin/app.py	Sat Sep 08 23:57:40 2012 +0200
@@ -168,7 +168,7 @@
     if app.cfg.create_storage:
         app.router.create()
     app.router.open()
-    app.storage = indexing.IndexingMiddleware(app.cfg.index_dir, app.router,
+    app.storage = indexing.IndexingMiddleware(app.cfg.index_storage, app.router,
                                               wiki_name=app.cfg.interwikiname,
                                               acl_rights_contents=app.cfg.acl_rights_contents)
     if app.cfg.create_index: