[Zope] DTMLFile from products
massimop at users.berlios.de
massimop at users.berlios.de
Sat Dec 11 09:59:24 EST 2004
Hi,
I'm experimenting with products an I'm finding challenging to serve a
javascript file from the context of the product.
I've simply defined a function
def posts_js(self):
"""javascript file"""
return DTMLFile('dtml/posts.js', globals())
The file is served but some chars are substituted by entity, so if I
have
if (i < 10) {
I get
if (i < 10) {
and the browser dislike it...
I need something like 'structure' of ZPTs, but I don't know how to use
it from products, and however I suspect it could be useless cause the
function return an object (am I right?).
thanks for any hint
massimo
More information about the Zope
mailing list