Commit 2ca037b6 authored by Jim Fulton's avatar Jim Fulton

Always use null if the value is None

parent 1329a641
......@@ -195,8 +195,8 @@ Evaluating expressions without rendering results
''' # '
__rcs_id__='$Id: DT_Var.py,v 1.29 1999/06/21 18:24:11 jim Exp $'
__version__='$Revision: 1.29 $'[11:-2]
__rcs_id__='$Id: DT_Var.py,v 1.30 1999/08/03 16:40:27 jim Exp $'
__version__='$Revision: 1.30 $'[11:-2]
from DT_Util import parse_params, name_param, html_quote, str
import regex, string, sys, regex
......@@ -244,6 +244,11 @@ class Var:
__traceback_info__=name, val, args
if val is None and have_arg('null'):
# Treat None as special case wrt null
return args['null']
# handle special formats defined using fmt= first
if have_arg('fmt'):
fmt=args['fmt']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment