Add index parameter to Plugins

Change constructor to HHC to accept an index arg, so that file reads can seek
This commit is contained in:
Worros
2009-07-17 17:45:22 +08:00
parent 61b0b8f4fe
commit 34932c14ee
8 changed files with 20 additions and 14 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ class Importer:
mod = __import__(filter)
obj = getattr(mod, filter_name, None)
if callable(obj):
conv = obj(in_path = file, out_path = out_path)
conv = obj(in_path = file, out_path = out_path, index = 0) # Index into file 0 until changeover
if(conv.getStatus() and self.NEWIMPORT == False):
(stored, duplicates, partial, errors, ttime) = self.import_fpdb_file(out_path, site)
elif (conv.getStatus() and self.NEWIMPORT == True):