[Zope] DTMLFile from products
massimop at users.berlios.de
massimop at users.berlios.de
Mon Dec 13 06:23:01 EST 2004
Il giorno lun, 13-12-2004 alle 00:09 +0100, Dieter Maurer ha scritto:
> 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(...)
>
Perfect! Thanks a lot
massimo
More information about the Zope
mailing list