diff MoinMoin/multiconfig.py @ 855:481c72d4a181

support for common indices directory cfg.xapian_index_dir
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 19 Jun 2006 09:53:52 +0200
parents 910ed4667859
children c76dd5d97e0e
line wrap: on
line diff
--- a/MoinMoin/multiconfig.py	Sun Jun 18 01:07:21 2006 +0200
+++ b/MoinMoin/multiconfig.py	Mon Jun 19 09:53:52 2006 +0200
@@ -481,6 +481,11 @@
             name = dirname + '_dir'
             if not getattr(self, name, None):
                 setattr(self, name, os.path.join(data_dir, dirname))
+
+        # common xapian index directory
+        if getattr(self, 'xapian_search', False):
+            name = 'xapian_index_dir'
+            setattr(self, name, getattr(self, name, None))
             
         # Try to decode certain names which allow unicode
         self._decode()