Skip to content

Commit 27d74b4

Browse files
author
Richard Jones
committed
merge from HEAD
1 parent 7a4bea2 commit 27d74b4

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Fixed:
1010
- fix search_checkboxes macro (sf patch 1113828)
1111
- fix bug in date editing in Metakit
1212
- allow suppression of search_text in indexargs_form (sf bug 1101548)
13+
- hack to fix some anydbm export problems (sf bug 1081454)
1314

1415

1516
2005-01-06 0.7.11

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ Frank Gibbons,
8888
Johannes Gijsbers,
8989
Gus Gollings,
9090
Dan Grassi,
91+
Charles Groves,
9192
Engelbert Gruber,
9293
Bruce Guenter,
9394
Juergen Hermann,

roundup/backends/back_anydbm.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.146.2.25 2005-01-04 03:24:51 richard Exp $
18+
#$Id: back_anydbm.py,v 1.146.2.26 2005-02-14 05:41:56 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -2055,7 +2055,9 @@ def export_journals(self):
20552055
# don't export empties
20562056
continue
20572057
elif isinstance(prop, Date):
2058-
value = value.get_tuple()
2058+
# this is a hack - some dates are stored as strings
2059+
if not isinstance(value, type('')):
2060+
value = value.get_tuple()
20592061
elif isinstance(prop, Interval):
20602062
value = value.get_tuple()
20612063
elif isinstance(prop, Password):

0 commit comments

Comments
 (0)