Explorar el Código

Correct bugs in importer

oz123 hace 10 años
padre
commit
0d7976e2a2
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      pwman/exchange/importer.py

+ 5 - 0
pwman/exchange/importer.py

@@ -21,6 +21,8 @@ A module to hold the importer class
 '''
 import csv
 from pwman.data.nodes import Node
+from pwman.util.crypto_engine import CryptoEngine
+from pwman.ui.tools import CLICallback
 
 
 class BaseImporter(object):
@@ -78,6 +80,9 @@ class CSVImporter(BaseImporter):
         self._db.open()
 
     def run(self):
+
+        enc = CryptoEngine.get()
+        enc.callback = CLICallback()
         self._open_db()
 
         for row in self._read_file():