Add transitions to apply parameter PFWBINT-7

This commit is contained in:
Nicolas Demonte 2021-03-18 13:14:54 +01:00
parent 8a81d924ed
commit d59a465ba2
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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)