summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c4e5e4)
raw | patch | inline | side by side (parent: 5c4e5e4)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 22 Aug 2002 04:42:28 +0000 (04:42 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 22 Aug 2002 04:42:28 +0000 (04:42 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@984 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/back_anydbm.py | patch | blob | history |
index ffbe3ed496c4c7fd081dfeaff2a419e90ef5b2a6..bb15ad2d397ba1b0022b5599c418ecc851264162 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-#$Id: back_anydbm.py,v 1.62 2002-08-21 07:07:27 richard Exp $
+#$Id: back_anydbm.py,v 1.63 2002-08-22 04:42:28 richard Exp $
'''
This module defines a backend that saves the hyperdatabase in a database
chosen by anydbm. It is guaranteed to always be available in python
if __debug__:
print >>hyperdb.DEBUG, 'packjournal', (self, pack_before)
- pack_before = pack_before.get_tuple()
-
classes = self.getclasses()
# figure the class db type
for entry in journal:
(nodeid, date_stamp, self.journaltag, action,
params) = entry
+ date_stamp = date.Date(date_stamp)
if date_stamp > pack_before or action == 'create':
l.append(entry)
elif action == 'set':
# figure the journal entry
l = []
if add:
- l.append(('add', add))
+ l.append(('+', add))
if remove:
- l.append(('remove', remove))
+ l.append(('-', remove))
if l:
journalvalues[propname] = tuple(l)
#
#$Log: not supported by cvs2svn $
+#Revision 1.62 2002/08/21 07:07:27 richard
+#In preparing to turn back on link/unlink journal events (by default these
+#are turned off) I've:
+#- fixed back_anydbm so it can journal those events again (had broken it
+# with recent changes)
+#- changed the serialisation format for dates and intervals to use a
+# numbers-only (and sign for Intervals) string instead of tuple-of-ints.
+# Much smaller.
+#
#Revision 1.61 2002/08/19 02:53:27 richard
#full database export and import is done
#