[Erp5-users] why Base_importCsvLine is executed once
Tomasz Brzezina
tomasz at brzezina.pl
Tue Nov 21 18:53:46 CET 2006
while it should be executed as much as lines in csv file?
In the Base_importCsvFile there is a loop:
for object in object_list:
context.activate(priority=4).Base_importCsvLine(object)
context.log('CSVFile','ping')
And it's executed correct -> If in csv file there are 10 lines (+2 first lines)
context.activate.... is executed 10 times
But Base_importCsvLine(object) is executed only once - with first object
------
2006-11-21T18:53:50 INFO(0) Base_importCsvFile, 82: LOOP_TEST
------
2006-11-21T18:53:50 INFO(0) Base_importCsvFile, 82: LOOP_TEST
------
2006-11-21T18:53:50 INFO(0) Base_importCsvFile, 82: LOOP_TEST
------
2006-11-21T18:53:50 INFO(0) Base_importCsvFile, 82: LOOP_TEST
------
2006-11-21T18:53:53 INFO(0) Base_importCsvLine, 1: EXECUTE_TEST
------
2006-11-21T18:53:58 TRACE(-300) SQLDict invoking a group method
portal_catalog/catalogObjectList with 3 objects (4 objects in expanded form)
------
2006-11-21T18:53:58 TRACE(-300) SQLCatalog catalogging 2 objects
Any ideas?
--
T.
More information about the Erp5-users
mailing list