[mod_python] Templating system issue

Olaf Stein steino at ccri.net
Fri Mar 30 10:49:46 EST 2007


Just for out how it works....


On 3/30/07 11:38 AM, "Olaf Stein" <steino at ccri.net> wrote:

> Hi All,
> I am writing a little app using mod_python and PyMeld as a templating
> system. I have my own class for handling sessions and now want to pass the
> session id from function to function.
> PyMeld works fine, except it does not allow me (at least not to my
> knowledge) to e.g set values for hidden fields or attach the session id to
> the url, it only lets me set "display" values not values for attributes
> themselves, which is what I would need in this case.
> An PyMeld example ( http://entrian.com/PyMeld/)
> ------------------------
> page = Meld('<html><span id="x">Hello world</span></html>')
> page.x = "Goodbye"
> -------------------------
> The id attribute basically represents the value of displayed in between span
> tags, I cannot set values for attributes themselves.
> Does anyone know if PyMeld can make this happen or of a templating system
> that supports this kind of thing?
> Thanks again
> Olaf
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

Olaf Stein
Center for Quantitative and Computational Biology
Columbus Children's Research Institute
700 Children's Drive
phone: 1-614-355-5685
cell: 1-614-843-0432
email: steino at ccri.net

More information about the Mod_python mailing list