summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Demonte <nicolas@affinitic.be>2021-03-18 12:14:54 (GMT)
committerNicolas Demonte <nicolas@affinitic.be>2021-03-18 12:14:54 (GMT)
commitd59a465ba20f4b92d9c0fd365f44b669569d43eb (patch)
tree2d5184ebd3ba7863654b6c796161f528db4487d2
parent8a81d924edb9f9179a4cf66b22513c8eef06c266 (diff)
downloadpfwbged.ocrloader-transitions_to_apply.zip
pfwbged.ocrloader-transitions_to_apply.tar.gz
pfwbged.ocrloader-transitions_to_apply.tar.bz2
Add transitions to apply parameter PFWBINT-7transitions_to_apply
-rw-r--r--ocrloader.ini1
-rwxr-xr-xocrloader.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/ocrloader.ini b/ocrloader.ini
index 75e0a98..14f2cab 100644
--- a/ocrloader.ini
+++ b/ocrloader.ini
@@ -14,6 +14,7 @@ default_type = dmsincomingmail
default_directory = documents
user = secretariat-greffe
treating_group = informatique
+;transitions_to_apply = to_assign,to_process
[xxxx-test-gaetandeberdt@pfwb.be]
password = xxxxxx
diff --git a/ocrloader.py b/ocrloader.py
index 04bb022..4c30b32 100755
--- a/ocrloader.py
+++ b/ocrloader.py
@@ -88,6 +88,7 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.title=%s' % title,
'-F', 'form.widgets.notification_recipients=%s' % cfg.get('notification_recipients', ''),
'-F', 'form.widgets.keywords=%s' % cfg.get('keywords', ''),
+ '-F', 'form.widgets.transitions_to_apply=%s' % cfg.get('transitions_to_apply', ''),
'-u', '%s:%s' % (cfg.get('ged_username'), cfg.get('ged_password')),
'%s/@@fileimport' % cfg.get('ged_base_url'),])
return (t == 0)