> I honestly don't understand what your question is.
>
> Display the image on the same page as what?

Sorry, maybe a new page but on the same tab. I can return a .png
string from controller and it opens in a new tab but sending it to a
template for a page in the same tab seems not possible.

Yes, it is a bit strange what I do. I know in HTML <img
src="filepath" /> wants a file but I don't want to write my generated
image and then read it again. I tried to trick tg.url with
NamedTemporaryFile but no good. Also, I think my NTF in memory is
disappearing already when I return.

So what about SVG?  TG works with strings of HTML and with XML and I
can display SVG generated by my controller method in a new tab. Again,
this is as if I opened a file but can I return my XML string into a
template variable to display inline SVG?  Actually I think to a widget
on my templated page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to