Update of /cvs-repository/Packages/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv9678/lib/python/Shared/DC/ZRDB

Modified Files:
      Tag: Zope-2_7-branch
        sqlvar.py 
Log Message:


  - Collector #556:  <dtml-sqlvar> now returns 'null' instead of 'None'
    for values which are None in Python (sponsored by a bounty from
    Logicalware).


=== Packages/Shared/DC/ZRDB/sqlvar.py 1.14.10.1 => 1.14.10.2 ===
--- Packages/Shared/DC/ZRDB/sqlvar.py:1.14.10.1 Mon Nov 17 17:34:16 2003
+++ Packages/Shared/DC/ZRDB/sqlvar.py   Fri Sep  2 19:02:00 2005
@@ -98,6 +98,9 @@
                 raise
             raise ValueError, 'Missing input variable, <em>%s</em>' % name
 
+        if v is None:
+            return 'null'
+
         if t=='int':
             try:
                 if type(v) is StringType:

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to