changeset 1517:85edb97b08b5 maint-0.5

fix string props and required flag
author Richard Jones <richard@users.sourceforge.net>
date Sat, 15 Mar 2003 23:30:07 +0000
parents c8a596aa5aba
children ba2812e0edc5
files CHANGES.txt doc/index.txt roundup/cgi/client.py
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Fri Mar 14 02:52:03 2003 +0000
+++ b/CHANGES.txt	Sat Mar 15 23:30:07 2003 +0000
@@ -5,6 +5,7 @@
 - fixed Interval maths (sf bug 665357)
 - fixed sqlite rollback/caching bug (sf bug 689383)
 - fixed rdbms table update detection logic (sf bug 703297)
+- required String properties not being flagged (thanks Ajit George)
 
 
 2003-02-27 0.5.6
--- a/doc/index.txt	Fri Mar 14 02:52:03 2003 +0000
+++ b/doc/index.txt	Sat Mar 15 23:30:07 2003 +0000
@@ -55,6 +55,7 @@
 Seb Brezel,
 Titus Brown,
 Roch'e Compaan,
+Ajit George,
 Engelbert Gruber,
 Juergen Hermann,
 Tobias Hunger,
--- a/roundup/cgi/client.py	Fri Mar 14 02:52:03 2003 +0000
+++ b/roundup/cgi/client.py	Sat Mar 15 23:30:07 2003 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.65.2.4 2003-02-08 23:03:36 richard Exp $
+# $Id: client.py,v 1.65.2.5 2003-03-15 23:30:07 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -1236,6 +1236,8 @@
         if isinstance(proptype, hyperdb.String):
             # fix the CRLF/CR -> LF stuff
             value = fixNewlines(value)
+            if not value:
+                value = None
         elif isinstance(proptype, hyperdb.Password):
             if not value:
                 # ignore empty password values

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