diff roundup/backends/back_metakit.py @ 2089:93f03c6714d8

A few big changes in this commit: 1. The current indexer has been moved to backends/indexer_dbm in anticipation of my writing an indexer_rdbms, 2. Changed indexer invocation during create / set to follow the pattern set by the metakit backend, which was much cleaner, and 3. The "content" property of FileClass is now mutable in all but the metakit backend. Metakit needs to be changed to support the editing of "content". Hey, and I learnt today that the metakit backend implements its own indexer. How about that... :)
author Richard Jones <richard@users.sourceforge.net>
date Fri, 19 Mar 2004 04:47:59 +0000
parents c091cacdc505
children ad1ef1d9f5a1
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py	Thu Mar 18 22:47:00 2004 +0000
+++ b/roundup/backends/back_metakit.py	Fri Mar 19 04:47:59 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: back_metakit.py,v 1.62 2004-03-18 01:58:45 richard Exp $
+# $Id: back_metakit.py,v 1.63 2004-03-19 04:47:59 richard Exp $
 '''Metakit backend for Roundup, originally by Gordon McMillan.
 
 Known Current Bugs:
@@ -45,7 +45,7 @@
 import metakit
 from sessions_dbm import Sessions, OneTimeKeys
 import re, marshal, os, sys, time, calendar
-from roundup import indexer
+from indexer_dbm import Indexer
 import locking
 from roundup.date import Range
 
@@ -1783,7 +1783,7 @@
         
 CURVERSION = 2
 
-class Indexer(indexer.Indexer):
+class Indexer(Indexer):
     disallows = {'THE':1, 'THIS':1, 'ZZZ':1, 'THAT':1, 'WITH':1}
     def __init__(self, path, datadb):
         self.path = os.path.join(path, 'index.mk4')

Roundup Issue Tracker: http://roundup-tracker.org/