Mercurial > p > roundup > code
diff roundup/backends/back_metakit.py @ 1840:91a4619b1a14
hyperdb grows a refresh_database() method.
There will be a future roundup-admin command to invoke this.
XXXX Unit tests do _not_ cover large slabs of the hyperdb backend code,
it seems. :-(
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Tue, 07 Oct 2003 11:58:58 +0000 |
| parents | a3b1b1dcf639 |
| children | 2b0ab61db194 |
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py Tue Oct 07 08:52:12 2003 +0000 +++ b/roundup/backends/back_metakit.py Tue Oct 07 11:58:58 2003 +0000 @@ -1,4 +1,4 @@ -# $Id: back_metakit.py,v 1.50 2003-09-08 20:39:18 jlgijsbers Exp $ +# $Id: back_metakit.py,v 1.51 2003-10-07 11:58:57 anthonybaxter Exp $ ''' Metakit backend for Roundup, originally by Gordon McMillan. @@ -69,6 +69,10 @@ if self.indexer.should_reindex(): self.reindex() + def refresh_database(self): + # XXX handle refresh + self.reindex() + def reindex(self): for klass in self.classes.values(): for nodeid in klass.list():
