[ocrfeeder/fixes: 2/3] Fix issue with the engines migration when there is no configuration folder
- From: Joaquim Manuel Pereira Rocha <jrocha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ocrfeeder/fixes: 2/3] Fix issue with the engines migration when there is no configuration folder
- Date: Sat, 31 Mar 2012 18:34:13 +0000 (UTC)
commit d67ee15b74cf2c09e7b312e0fc864ab9635b640b
Author: Joaquim Rocha <jrocha igalia com>
Date: Sat Mar 31 20:12:59 2012 +0200
Fix issue with the engines migration when there is no configuration folder
The warnings about engines' migrations were being shown because
the right version was not being set.
src/ocrfeeder/util/configuration.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ocrfeeder/util/configuration.py b/src/ocrfeeder/util/configuration.py
index 79189fb..d0f658d 100644
--- a/src/ocrfeeder/util/configuration.py
+++ b/src/ocrfeeder/util/configuration.py
@@ -130,12 +130,14 @@ class ConfigurationManager(object):
continue
image_format = PREDEFINED_ENGINES[name].get('image_format', 'PPM')
failure_string = PREDEFINED_ENGINES[name].get('failure_string', '')
+ version = PREDEFINED_ENGINES[name].get('version', 0.0)
engine = Engine(engine_name,
path,
arguments,
temporary_folder = self.TEMPORARY_FOLDER,
image_format = image_format,
- failure_string = failure_string)
+ failure_string = failure_string,
+ version = version)
existing_engines.append(engine)
return existing_engines
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]