summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-26 09:03:00 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-26 09:03:18 (GMT)
commitaed8a23a0fcb3761955fb28c738ff42d3e6eb095 (patch)
treeb85d9a22896cdf259d022a23b933ffb944dd8b10
parent5d3eb88d2bd2d5f2c2afd962661fe823760e240f (diff)
downloadpfwbged.ocrloader-aed8a23a0fcb3761955fb28c738ff42d3e6eb095.zip
pfwbged.ocrloader-aed8a23a0fcb3761955fb28c738ff42d3e6eb095.tar.gz
pfwbged.ocrloader-aed8a23a0fcb3761955fb28c738ff42d3e6eb095.tar.bz2
add support for multiple treating groups (#22009)
-rwxr-xr-xocrloader.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ocrloader.py b/ocrloader.py
index 408c910..c27f7e0 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -82,7 +82,8 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.portal_type=%s' % cfg.get('default_type'),
'-F', 'form.widgets.location=%s' % cfg.get('default_directory'),
'-F', 'form.widgets.owner=%s' % cfg.get('user'),
- '-F', 'form.widgets.treating_group=%s' % cfg.get('treating_group'),
+ '-F', 'form.widgets.treating_groups=%s' % (
+ cfg.get('treating_groups') or cfg.get('treating_groups') or ''),
'-F', 'form.widgets.title=%s' % title,
'-F', 'form.widgets.keywords=%s' % cfg.get('keywords', ''),
'-u', '%s:%s' % (cfg.get('ged_username'), cfg.get('ged_password')),