diff roundup/backends/rdbms_common.py @ 1753:9d7c396defe1 maint-0.5

backporting fix from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 26 Aug 2003 00:15:09 +0000
parents 44319ba5a7a7
children
line wrap: on
line diff
--- a/roundup/backends/rdbms_common.py	Fri Jul 18 07:05:56 2003 +0000
+++ b/roundup/backends/rdbms_common.py	Tue Aug 26 00:15:09 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: rdbms_common.py,v 1.27.2.9 2003-06-24 08:18:19 anthonybaxter Exp $
+# $Id: rdbms_common.py,v 1.27.2.10 2003-08-26 00:15:09 richard Exp $
 ''' Relational database (SQL) backend common code.
 
 Basics:
@@ -1124,7 +1124,17 @@
             if propname == 'id':
                 newid = value
                 continue
+            elif propname == 'is retired':
+                # is the item retired?
+                if int(value):
+                    retire = 1
+                continue
             elif value is None:
+                d[propname] = None
+                continue
+
+            prop = properties[propname]
+            if value is None:
                 # don't set Nones
                 continue
             elif isinstance(prop, hyperdb.Date):

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