4 Sep
2001
4 Sep
'01
2:27 p.m.
Stig-Arne Nordin wrote:
If you encounter a null value in the datbase zope returns the value None under NT. At least if it is an integer field.
I gather this is something new with the new DBAPI 2.0-based adapters. In any event, the way to handle it is like so: <dtml-var field null> "null" tells DTML to render "None" (which means no object) as an empty string. IMO, the whole "None" thing with SQL does violate the principle of least surprise, though. -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture