[Moin-devel] Macro that generates a dyamic png

Florian Festi festifn at rupert.informatik.uni-stuttgart.de
Mon Apr 28 10:49:49 EDT 2003


On Mon, 28 Apr 2003, Nick Trout wrote:

>
> > So what I would need, is either how to send a PNG 'on the fly' from a
> macro,
> or how to make an action that is not listed at the bottom of all pages.
>
> I haven't tried this but you could write the PNG to the page's
> attachment directory and return the attachment name as a link (eg. <img
> src="attachment-name">) from the macro. You could check the page
> timestamp and PNG timestamp to decide whether to recreate the PNG after
> a page save.

Implement an action that returns the png and and return al link to this
action as source of the image link:

<img src="?action=shown_picture">

See the Code of the StatsChart macro

Perhap you would want to use caching. See the MoinMoin/caching.py


	cu

		Florian Festi





More information about the Moin-devel mailing list