summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-05-31 05:13:17 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-05-31 05:13:17 (GMT)
commit7dfcec5756930f5281288508b45c3fa1a63b4cfe (patch)
tree23de9a0bdb77a05663360a6a5af4848c639c7b83
parenta328d15855bebded88878f5d3850cf7b5102f524 (diff)
downloadpfwbged.ocrloader-7dfcec5756930f5281288508b45c3fa1a63b4cfe.zip
pfwbged.ocrloader-7dfcec5756930f5281288508b45c3fa1a63b4cfe.tar.gz
pfwbged.ocrloader-7dfcec5756930f5281288508b45c3fa1a63b4cfe.tar.bz2
add possibility to specify recipients of notifications
-rwxr-xr-xocrloader.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocrloader.py b/ocrloader.py
index 1738da1..1fff8a7 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -86,6 +86,7 @@ def process(cfg, filename, payload, enable_ocr=True):
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.notification_recipients=%s' % cfg.get('notification_recipients', ''),
'-F', 'form.widgets.keywords=%s' % cfg.get('keywords', ''),
'-u', '%s:%s' % (cfg.get('ged_username'), cfg.get('ged_password')),
'%s/@@fileimport' % cfg.get('ged_base_url'),])