--- ZSQLExtend/importFMPXML.py 2007/04/18 16:18:58 1.12 +++ ZSQLExtend/importFMPXML.py 2007/05/25 15:49:40 1.13 @@ -229,10 +229,13 @@ class xml_handler: # check fields to update if self.update_fields is None: if self.keep_fields: - # update existing fields - self.update_fields = self.sql_fields - - + # update all existing fields from sql (when they are in the xml file) + self.update_fields = {} + for f in self.sql_fields.keys(): + if self.sql_field_map.has_key(f): + xf = self.sql_field_map[f] + self.update_fields[f] = self.xml_field_map[xf] + else: # update all fields if self.lc_names: