Commit 83b1bed4 authored by Yusei Tahara's avatar Yusei Tahara Committed by Kazuhiko Shiozaki

patches: Fix sqlvar monkey patch for Zope2.

<dtml-sqlvar "None" type=nb> should be 'null'.
parent d5c138b0
......@@ -71,6 +71,8 @@ if IS_ZOPE2: # BBB Zope2
('.%06u' % (v.micros() % 1000000))[:1+n] if n else '')
except Exception:
t = 'datetime'
elif t=='nb' and v is None:
return 'null'
elif t=='nb' and not v:
t = 'empty string'
else:
......
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