add support for multiple treating groups (#22009)

This commit is contained in:
Frédéric Péters 2018-04-26 11:03:00 +02:00
parent 5d3eb88d2b
commit aed8a23a0f
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ def process(cfg, filename, payload, enable_ocr=True):
'-F', 'form.widgets.portal_type=%s' % cfg.get('default_type'),
'-F', 'form.widgets.location=%s' % cfg.get('default_directory'),
'-F', 'form.widgets.owner=%s' % cfg.get('user'),
'-F', 'form.widgets.treating_group=%s' % cfg.get('treating_group'),
'-F', 'form.widgets.treating_groups=%s' % (
cfg.get('treating_groups') or cfg.get('treating_groups') or ''),
'-F', 'form.widgets.title=%s' % title,
'-F', 'form.widgets.keywords=%s' % cfg.get('keywords', ''),
'-u', '%s:%s' % (cfg.get('ged_username'), cfg.get('ged_password')),