Mercurial > p > roundup > code
diff roundup/backends/back_metakit.py @ 3151:6feac4fcf883
Various bug fixes.
- fix handling of invalid date input [SF#1102165]
- retain Boolean selections in edit error handling [SF#1101492]
- fix bug in date editing in Metakit
- fixed up date spec usage string
- note python 2.3 requirement in announcement and installation docs
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 14 Feb 2005 00:06:55 +0000 |
| parents | dbf80d7db63f |
| children | 57b60bda9473 |
line wrap: on
line diff
--- a/roundup/backends/back_metakit.py Sun Feb 13 22:47:42 2005 +0000 +++ b/roundup/backends/back_metakit.py Mon Feb 14 00:06:55 2005 +0000 @@ -1,4 +1,4 @@ -# $Id: back_metakit.py,v 1.90 2005-02-13 22:37:00 richard Exp $ +# $Id: back_metakit.py,v 1.91 2005-02-14 00:06:55 richard Exp $ '''Metakit backend for Roundup, originally by Gordon McMillan. Known Current Bugs: @@ -771,7 +771,10 @@ setattr(row, key, 0) else: setattr(row, key, int(calendar.timegm(value.get_tuple()))) - changes[key] = str(oldvalue) + if oldvalue is None: + changes[key] = oldvalue + else: + changes[key] = str(oldvalue) propvalues[key] = str(value) elif isinstance(prop, hyperdb.Interval):
