From 0ce5aeffc54dbf750c8dc9bd332ce0c40a647679 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Thu, 5 Apr 2007 16:13:32 +0000
Subject: [PATCH] Fix type: elif instead of if

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13986 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/patches/sqlvar.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/patches/sqlvar.py b/product/ERP5Type/patches/sqlvar.py
index b2ab07a24f..d22e43bcc1 100644
--- a/product/ERP5Type/patches/sqlvar.py
+++ b/product/ERP5Type/patches/sqlvar.py
@@ -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'
-- 
2.30.9