Roundup Tracker - Issues

Message7248

Author rouilj
Recipients cmeerw, jerrykan, rouilj
Date 2021-05-26.02:04:09
Message-id <1621994650.27.0.483987323064.issue2550964@roundup.psfhosted.org>
In-reply-to
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.
History
Date User Action Args
2021-05-26 02:04:10rouiljsetmessageid: <1621994650.27.0.483987323064.issue2550964@roundup.psfhosted.org>
2021-05-26 02:04:10rouiljsetrecipients: + rouilj, cmeerw, jerrykan
2021-05-26 02:04:10rouiljlinkissue2550964 messages
2021-05-26 02:04:09rouiljcreate