summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ocrloader.ini1
-rw-r--r--ocrloader.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/ocrloader.ini b/ocrloader.ini
index 96d5cc2..669360c 100644
--- a/ocrloader.ini
+++ b/ocrloader.ini
@@ -12,6 +12,7 @@ password = xxxxxx
default_type = dmsincomingmail
default_directory = documents
user = secretariat-greffe
+treating_group = informatique
[xxxx-test-gaetandeberdt@pfwb.be]
password = xxxxxx
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)