summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-04-26 08:15:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-04-26 08:15:30 (GMT)
commit5d3eb88d2bd2d5f2c2afd962661fe823760e240f (patch)
treee4f4cf8da8526c4c85a556b8cc3e82121c9065cc /ocrloader.py
parentc60cc535c6258316ff5d798d6ac858bc1c66a148 (diff)
downloadpfwbged.ocrloader-5d3eb88d2bd2d5f2c2afd962661fe823760e240f.zip
pfwbged.ocrloader-5d3eb88d2bd2d5f2c2afd962661fe823760e240f.tar.gz
pfwbged.ocrloader-5d3eb88d2bd2d5f2c2afd962661fe823760e240f.tar.bz2
add support for predefined keywords (#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 6606f7e..408c910 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_group=%s' % cfg.get('treating_group'),
'-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')),
'%s/@@fileimport' % cfg.get('ged_base_url'),])
return (t == 0)