Commit 9a11b856 authored by Jim Fulton's avatar Jim Fulton

Made it easier to call pack on the database. The time argument noe

defaults to the present and a 'days' keyword argument can be used to
specify a number of days pervious to the time to pack to.
parent d49433dd
......@@ -84,8 +84,8 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.24 2000/09/16 02:38:54 jim Exp $"""
__version__='$Revision: 1.24 $'[11:-2]
$Id: DB.py,v 1.25 2000/10/05 20:17:46 jim Exp $"""
__version__='$Revision: 1.25 $'[11:-2]
import cPickle, cStringIO, sys, POSException, UndoLogCompatible
from Connection import Connection
......@@ -526,7 +526,9 @@ class DB(UndoLogCompatible.UndoLogCompatible):
})
return r
def pack(self, t):
def pack(self, t=None, days=0):
if t is None: t=time()
t=t-(days*86400)
self._storage.pack(t,referencesf)
def setCacheDeactivateAfter(self, v):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment