Mercurial > p > roundup > code
diff roundup/backends/indexer_xapian.py @ 3555:91c495476db3 1.1.0
pre-release stuff and test fix
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 10 Feb 2006 00:16:13 +0000 |
| parents | 7728ee93efd2 |
| children | c7363442cdbb |
line wrap: on
line diff
--- a/roundup/backends/indexer_xapian.py Thu Feb 09 23:53:11 2006 +0000 +++ b/roundup/backends/indexer_xapian.py Fri Feb 10 00:16:13 2006 +0000 @@ -1,4 +1,4 @@ -#$Id: indexer_xapian.py,v 1.3 2006-02-07 04:59:05 richard Exp $ +#$Id: indexer_xapian.py,v 1.4 2006-02-10 00:16:13 richard Exp $ ''' This implements the full-text indexer using the Xapian indexer. ''' import re, os @@ -33,6 +33,14 @@ '''close the indexing database''' pass + def rollback(self): + if not self.transaction_active: + return + # XXX: Xapian databases don't actually implement transactions yet + database = self._get_database() + database.cancel_transaction() + self.transaction_active = False + def force_reindex(self): '''Force a reindexing of the database. This essentially empties the tables ids and index and sets a flag so
