Skip to content

Commit 7b0464f

Browse files
author
Richard Jones
committed
implement close() on all indexers [SF#1242477]
1 parent 63b2fc8 commit 7b0464f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Fixed:
2222
- sorting of entries in classhelp popup (sf bug 1449000)
2323
- allow single digit seconds in date spec (sf bug 1447141)
2424
- prevent generation of new single-digit seconds dates (sf bug 1429390)
25+
- implement close() on all indexers (sf bug 1242477)
2526

2627
2006-03-03 1.1.1
2728
Fixed:

roundup/backends/indexer_common.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: indexer_common.py,v 1.5 2006-02-06 21:00:47 richard Exp $
1+
#$Id: indexer_common.py,v 1.6 2006-04-27 05:48:26 richard Exp $
22
import re, sets
33

44
from roundup import hyperdb
@@ -15,7 +15,7 @@ def _isLink(propclass):
1515
return (isinstance(propclass, hyperdb.Link) or
1616
isinstance(propclass, hyperdb.Multilink))
1717

18-
class Indexer:
18+
class Indexer:
1919
def __init__(self, db):
2020
self.stopwords = sets.Set(STOPWORDS)
2121
for word in db.config[('main', 'indexer_stopwords')]:
@@ -89,3 +89,4 @@ def search(self, search_terms, klass, ignore={}):
8989
else:
9090
node_dict[linkprop].append(nodeid)
9191
return nodeids
92+

roundup/backends/indexer_dbm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# that promote freedom, but obviously am giving up any rights
1515
# to compel such.
1616
#
17-
#$Id: indexer_dbm.py,v 1.8 2006-02-10 00:16:13 richard Exp $
17+
#$Id: indexer_dbm.py,v 1.9 2006-04-27 05:48:26 richard Exp $
1818
'''This module provides an indexer class, RoundupIndexer, that stores text
1919
indices in a roundup instance. This class makes searching the content of
2020
messages, string properties and text files possible.
@@ -285,4 +285,8 @@ def rollback(self):
285285
''' load last saved index info. '''
286286
self.load_index(reload=1)
287287

288+
def close(self):
289+
pass
290+
291+
288292
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)