[ocrfeeder] Fix engine migration



commit 97fa025ced3be2f27852fa6dadb3aa0f09154e3c
Author: Joaquim Rocha <me joaquimrocha com>
Date:   Thu Feb 7 23:57:49 2013 -0800

    Fix engine migration
    
    It was not considering the languages

 src/ocrfeeder/feeder/ocrEngines.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/ocrfeeder/feeder/ocrEngines.py b/src/ocrfeeder/feeder/ocrEngines.py
index 0e45e13..b8636d0 100644
--- a/src/ocrfeeder/feeder/ocrEngines.py
+++ b/src/ocrfeeder/feeder/ocrEngines.py
@@ -233,6 +233,8 @@ class OcrEnginesManager:
     def migrateEngine(self, engine, configuration, only_version = False):
         if not only_version:
             engine.arguments = configuration['arguments']
+            engine.language_argument = configuration['language_argument']
+            engine.setLanguages(configuration['languages'])
         engine.version = configuration['version']
         self.replaceEngine(engine, engine)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]