Commit 0ce5aeff authored by Romain Courteaud's avatar Romain Courteaud

Fix type: elif instead of if

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13986 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b335befb
......@@ -71,9 +71,10 @@ def SQLVar_render(self, md):
try:
if hasattr(v, 'ISO'):
v=v.ISO()
if hasattr(v, 'strftime'):
elif hasattr(v, 'strftime'):
v=v.strftime('%Y-%m-%d %H:%M:%S')
else: v=str(v)
else:
v=str(v)
except:
if not v and args.has_key('optional') and args['optional']:
return 'null'
......
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