|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -#$Id: back_anydbm.py,v 1.40 2002-07-09 04:19:09 richard Exp $ |
| 18 | +#$Id: back_anydbm.py,v 1.41 2002-07-10 00:21:45 richard Exp $ |
19 | 19 | ''' |
20 | 20 | This module defines a backend that saves the hyperdatabase in a database |
21 | 21 | chosen by anydbm. It is guaranteed to always be available in python |
@@ -351,6 +351,7 @@ def getjournal(self, classname, nodeid): |
351 | 351 | journal = marshal.loads(db[nodeid]) |
352 | 352 | except KeyError: |
353 | 353 | raise KeyError, 'no such %s %s'%(classname, nodeid) |
| 354 | + db.close() |
354 | 355 | res = [] |
355 | 356 | for entry in journal: |
356 | 357 | (nodeid, date_stamp, user, action, params) = entry |
@@ -509,6 +510,11 @@ def rollback(self): |
509 | 510 |
|
510 | 511 | # |
511 | 512 | #$Log: not supported by cvs2svn $ |
| 513 | +#Revision 1.40 2002/07/09 04:19:09 richard |
| 514 | +#Added reindex command to roundup-admin. |
| 515 | +#Fixed reindex on first access. |
| 516 | +#Also fixed reindexing of entries that change. |
| 517 | +# |
512 | 518 | #Revision 1.39 2002/07/09 03:02:52 richard |
513 | 519 | #More indexer work: |
514 | 520 | #- all String properties may now be indexed too. Currently there's a bit of |
|
0 commit comments