add possibility to set treating group

This commit is contained in:
Frédéric Péters 2014-02-24 14:31:38 +01:00
parent 209759d8f1
commit be3c07f6bd
2 changed files with 3 additions and 0 deletions

View File

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

View File

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