diff roundup/backends/back_anydbm.py @ 3390:a2e4b8ab5b51

include hack from [SF#1238571]
author Richard Jones <richard@users.sourceforge.net>
date Mon, 18 Jul 2005 01:35:48 +0000
parents c1c67c62b699
children 4aeb0d0cf0d6
line wrap: on
line diff
--- a/roundup/backends/back_anydbm.py	Mon Jul 18 01:32:04 2005 +0000
+++ b/roundup/backends/back_anydbm.py	Mon Jul 18 01:35:48 2005 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 #
-#$Id: back_anydbm.py,v 1.188 2005-07-12 01:37:49 richard Exp $
+#$Id: back_anydbm.py,v 1.189 2005-07-18 01:35:48 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
 versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -2031,7 +2031,9 @@
                             if not isinstance(value, type('')):
                                 value = value.get_tuple()
                         elif isinstance(prop, hyperdb.Interval):
-                            value = value.get_tuple()
+                            # hack too - some intervals are stored as strings
+                            if not isinstance(value, type('')):
+                                value = value.get_tuple()
                         elif isinstance(prop, hyperdb.Password):
                             value = str(value)
                         export_data[propname] = value

Roundup Issue Tracker: http://roundup-tracker.org/