[Zope] File objects store in external file
Chris Withers
chrisw@nipltd.com
Fri, 15 Nov 2002 11:43:28 +0000
Rares Vernica wrote:
> Hi,
> I know how to use Image objects stored in external files,
>
> misc_={
> "new_gif": ImageFile("icons/new.gif",globals()),...
>
> but, how can I use a normal file (text file - a CSS file) like this (without
> storing it as an Image file or DTML file)?!
I do this:
setattr(MyProductClass,'stylesheet.css',ImageFile('templates/stylesheet.css',globals()))
...in MyProductClass.py
cheers,
Chris