Mercurial > p > roundup > code
diff roundup/backends/indexer_common.py @ 3613:5f4db2650da3
implement close() on all indexers [SF#1242477]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 27 Apr 2006 05:48:26 +0000 |
| parents | 5cd1c83dea50 |
| children | 0d561b24ceff |
line wrap: on
line diff
--- a/roundup/backends/indexer_common.py Thu Apr 27 05:15:17 2006 +0000 +++ b/roundup/backends/indexer_common.py Thu Apr 27 05:48:26 2006 +0000 @@ -1,4 +1,4 @@ -#$Id: indexer_common.py,v 1.5 2006-02-06 21:00:47 richard Exp $ +#$Id: indexer_common.py,v 1.6 2006-04-27 05:48:26 richard Exp $ import re, sets from roundup import hyperdb @@ -15,7 +15,7 @@ return (isinstance(propclass, hyperdb.Link) or isinstance(propclass, hyperdb.Multilink)) -class Indexer: +class Indexer: def __init__(self, db): self.stopwords = sets.Set(STOPWORDS) for word in db.config[('main', 'indexer_stopwords')]: @@ -89,3 +89,4 @@ else: node_dict[linkprop].append(nodeid) return nodeids +
