Xml import: Use a set instead of a list to store all the ids.

This commit is contained in:
Bertrand Chenal committed 2009-01-25 00:47:59 +01:00
1 parent 406692ab69
commit e803fa7461
1 file changed
+2 -2
+2 -2
View File
@@ -525,8 +525,8 @@ class TrytondXmlHandler(sax.handler.ContentHandler):
('module', '=', self.module),
('inherit', '=', False),
], order=[('id', 'DESC')])
return [rec.fs_id for rec in self.modeldata_obj.browse(
self.cursor, self.user, module_data_ids)]
return set(rec.fs_id for rec in self.modeldata_obj.browse(
self.cursor, self.user, module_data_ids))
def import_record(self, model, values, fs_id):