--- ZSQLExtend/importFMPXML.py 2009/11/17 18:21:28 1.30 +++ ZSQLExtend/importFMPXML.py 2010/05/10 15:50:32 1.31 @@ -22,7 +22,7 @@ except: fm_ns = 'http://www.filemaker.com/fmpxmlresult' -version_string = "V0.6.4 ROC 17.11.2009" +version_string = "V0.6.5 ROC 10.5.2010" def unicodify(text, withNone=False): """decode str (utf-8 or latin-1 representation) into unicode object""" @@ -471,7 +471,7 @@ class xml_handler: f = self.xml_field_map[fn] val = self.xml_data[fn] type = self.sql_fields[f.getName()].getType() - if type == "date" and len(val) == 0: + if type == "date" and len(val.strip()) == 0: # empty date field val = None