osuosl / formsender

Simple script to email form submissions.
Apache License 2.0
3 stars 1 forks source link

Hugo migration: form returns an immutablemultidict, change request_handler to handle accordingly #123

Closed agaetep closed 1 year ago

agaetep commented 1 year ago

Instead of using request.form as a dict (how pelican submits the form), Hugo submits request.form as an ImmutableMultiDict. The only change to request_handler.py, then, is to change how we grab data from request.form (request.form[key] vs request.form.get(key)).

ramereth commented 1 year ago

@antoniagaete will this impact how it's currently working on the pelican site?

agaetep commented 1 year ago

@antoniagaete will this impact how it's currently working on the pelican site?

No, it shouldn't. I've tested this update on both the pelican site and the hugo site, and it worked on my end on the development instance of pelican.