summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-26 09:03:37 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-26 09:03:37 (GMT)
commit6eea71f5eb017edc0067762466d0f26aa5d2a4b9 (patch)
treeaada2d2988caf7199dd1de106b47cd500ddaafc1 /ocrloader.py
parentaed8a23a0fcb3761955fb28c738ff42d3e6eb095 (diff)
downloadpfwbged.ocrloader-6eea71f5eb017edc0067762466d0f26aa5d2a4b9.zip
pfwbged.ocrloader-6eea71f5eb017edc0067762466d0f26aa5d2a4b9.tar.gz
pfwbged.ocrloader-6eea71f5eb017edc0067762466d0f26aa5d2a4b9.tar.bz2
add support for presetting recipients (#22009)
Diffstat (limited to 'ocrloader.py')
-rwxr-xr-xocrloader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocrloader.py b/ocrloader.py
index c27f7e0..c068b4f 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -84,6 +84,7 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.owner=%s' % cfg.get('user'),
'-F', 'form.widgets.treating_groups=%s' % (
cfg.get('treating_groups') or cfg.get('treating_groups') or ''),
+ '-F', 'form.widgets.recipient_groups=%s' % (cfg.get('recipient_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')),