From aed8a23a0fcb3761955fb28c738ff42d3e6eb095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Thu, 26 Apr 2018 11:03:00 +0200 Subject: [PATCH] add support for multiple treating groups (#22009) --- ocrloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')),