Skip to content

Fix templating on multiform body - #83

Open
alexbourret wants to merge 4 commits into
masterfrom
fix/var-templating-w-multiform-templating
Open

Fix templating on multiform body#83
alexbourret wants to merge 4 commits into
masterfrom
fix/var-templating-w-multiform-templating

Conversation

@alexbourret

Copy link
Copy Markdown
Collaborator

No description provided.

@alexbourret
alexbourret requested review from yannickbetou-dku and removed request for yannickbetou-dku July 27, 2026 07:35
@MayeulRousselet

Copy link
Copy Markdown
Contributor

[sc-333719]

@Ellana42
Ellana42 self-requested a review July 30, 2026 12:33
self.requests_kwargs.update({"files": {k: (None, v) for k, v in get_dku_key_values(key_value_body).items()}})
files = {}
for key, value in get_dku_key_values(key_value_body).items():
files[key] = (None, format_template(value, **self.presets_variables))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code technically works but it the keyword replacement logic should be put downstream where it is for all the other formats IMO
(ie line 155). The issue is that format_template currently doesn't handle tuples. I think it would be cleaner to just modify it to handle them.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be made better but refacto of this part will take a lot more testing. I'll look into it when we have more time 🤞

@alexbourret
alexbourret requested a review from Ellana42 August 6, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants