summaryrefslogtreecommitdiffstats
path: root/ocrloader.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-02-24 13:31:38 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-02-24 13:31:38 (GMT)
commitbe3c07f6bd1f95f1b49be3e729abcfb52b5098fa (patch)
tree4d9a25fdc21e0ddae84f3751e0ec0cb068c4861a /ocrloader.py
parent209759d8f164fa006f4e9f0b0c1f6953ebe181e9 (diff)
downloadpfwbged.ocrloader-be3c07f6bd1f95f1b49be3e729abcfb52b5098fa.zip
pfwbged.ocrloader-be3c07f6bd1f95f1b49be3e729abcfb52b5098fa.tar.gz
pfwbged.ocrloader-be3c07f6bd1f95f1b49be3e729abcfb52b5098fa.tar.bz2
add possibility to set treating group
Diffstat (limited to 'ocrloader.py')
-rw-r--r--ocrloader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocrloader.py b/ocrloader.py
index b9b5ead..2db6898 100644
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -60,6 +60,7 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F "form.widgets.portal_type=%s" '\
'-F "form.widgets.location=%s" '\
'-F "form.widgets.owner=%s" '\
+ '-F "form.widgets.treating_group=%s" '\
'-F "form.widgets.title=%s" '\
'-u admin:admin '\
'%s/@@fileimport' % (
@@ -67,6 +68,7 @@ def process(cfg, filename, payload, enable_ocr=True):
cfg.get('default_type'),
cfg.get('default_directory'),
cfg.get('user'),
+ cfg.get('treating_group'),
urllib.quote(title),
cfg.get('ged_base_url')))
return (t == 0)