Mercurial > p > roundup > code
diff roundup/backends/indexer_dbm.py @ 3295:a615cc230160
added Xapian indexer; replaces standard indexers if Xapian is available
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 28 Apr 2005 00:21:42 +0000 |
| parents | a8c2371f45b6 |
| children | 5cd1c83dea50 |
line wrap: on
line diff
--- a/roundup/backends/indexer_dbm.py Thu Apr 21 02:40:57 2005 +0000 +++ b/roundup/backends/indexer_dbm.py Thu Apr 28 00:21:42 2005 +0000 @@ -14,7 +14,7 @@ # that promote freedom, but obviously am giving up any rights # to compel such. # -#$Id: indexer_dbm.py,v 1.5 2005-01-08 16:16:59 jlgijsbers Exp $ +#$Id: indexer_dbm.py,v 1.6 2005-04-28 00:21:42 richard Exp $ '''This module provides an indexer class, RoundupIndexer, that stores text indices in a roundup instance. This class makes searching the content of messages, string properties and text files possible. @@ -37,8 +37,8 @@ where identifier is (classname, nodeid, propertyname) ''' - def __init__(self, db_path): - self.indexdb_path = os.path.join(db_path, 'indexes') + def __init__(self, db): + self.indexdb_path = os.path.join(db.config.DATABASE, 'indexes') self.indexdb = os.path.join(self.indexdb_path, 'index.db') self.reindex = 0 self.quiet = 9
