Compare commits

...
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.

2 Commits

Author SHA1 Message Date
Nicolas Demonte d59a465ba2 Add transitions to apply parameter PFWBINT-7 2021-03-18 13:14:54 +01:00
Nicolas Demonte 8a81d924ed Add requirements.txt PFWBINT-7 2021-03-18 13:13:39 +01:00
3 changed files with 3 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)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
python-ldap