Mercurial > p > roundup > code
comparison roundup/backends/rdbms_common.py @ 1751:ab7760caf6ff
Importing wasn't setting None values explicitly when it should have been
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 26 Aug 2003 00:06:56 +0000 |
| parents | 5ca448ff8052 |
| children | d2801a2b0a77 |
comparison
equal
deleted
inserted
replaced
| 1748:0f2678eeeac6 | 1751:ab7760caf6ff |
|---|---|
| 1 # $Id: rdbms_common.py,v 1.58 2003-08-12 02:18:46 richard Exp $ | 1 # $Id: rdbms_common.py,v 1.59 2003-08-26 00:06:56 richard Exp $ |
| 2 ''' Relational database (SQL) backend common code. | 2 ''' Relational database (SQL) backend common code. |
| 3 | 3 |
| 4 Basics: | 4 Basics: |
| 5 | 5 |
| 6 - map roundup classes to relational tables | 6 - map roundup classes to relational tables |
| 1120 continue | 1120 continue |
| 1121 elif propname == 'is retired': | 1121 elif propname == 'is retired': |
| 1122 # is the item retired? | 1122 # is the item retired? |
| 1123 if int(value): | 1123 if int(value): |
| 1124 retire = 1 | 1124 retire = 1 |
| 1125 continue | |
| 1126 elif value is None: | |
| 1127 d[propname] = None | |
| 1125 continue | 1128 continue |
| 1126 | 1129 |
| 1127 prop = properties[propname] | 1130 prop = properties[propname] |
| 1128 if value is None: | 1131 if value is None: |
| 1129 # don't set Nones | 1132 # don't set Nones |
