Getting output from an action to display in a page

"John P. Rouillard" <[email protected]> Wed, 25 May 2022 20:18:11 -0400
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
Hi all:

I have added a graph action following
https://wiki.roundup-tracker.org/QueryResultPieCharts. However I want
the results of the action to be displayed inside the page.html frame.

I created a _generic.chart.html page and inside the action I set the
self.client.template to chart. However I have no idea how to get the
chart to display in the new page.

If I return the svg graph (or png for that matter) from the action
handler, the image is displayed but it is not inside the html.  If I
do not return anything from the handler() method for the action, I get
the chart template displayed inside the page.html frame, but no image.

Looking at the code in templating.py::renderer() the normal html
template rendering happens only when the action handler returns
nothing (bool false).

So I guess the question is, should the action be calling the renderer
directly? Is there some way for an action to create a payload and pass
it into renderer's code for display?

Thanks for any ideas here.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.