[Zope] DTMLFile from products

Dieter Maurer dieter at handshake.de
Sun Dec 12 18:09:31 EST 2004


massimop at users.berlios.de wrote at 2004-12-11 15:59 +0100:
>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())

Try:

  posrt_js = DTMLFile(...)

-- 
Dieter


More information about the Zope mailing list