Message7248
Christof, I need to figure out how to call a function to make
the history command only report info in the database.
Currently the data from a rejected form leaks into the history.
What happens if I put
{{ utils.set_form_wins(context,False) }}
before calls to {{ context.history() }}?
I don't think set_form_wins returns anything but I am not sure. I
would like a way to run something in jinja where the result is
discarded and not emitted to the page. It doesn't appear that jinja
statement expressions are enabled.
If I wanted to enable statement expressions so I can use:
{{ do utils.set_form_wins(context,False) }}
would it be as simple as adding a new element to:
extensions=['jinja2.ext.i18n'],
in cgi/engine_jinja.py??
I am asking as you did the last changes in that area.
Thanks and have a great week. |
|
Date |
User |
Action |
Args |
2021-05-26 02:04:10 | rouilj | set | messageid: <1621994650.27.0.483987323064.issue2550964@roundup.psfhosted.org> |
2021-05-26 02:04:10 | rouilj | set | recipients:
+ rouilj, cmeerw, jerrykan |
2021-05-26 02:04:10 | rouilj | link | issue2550964 messages |
2021-05-26 02:04:09 | rouilj | create | |
|