15 Nov
2002
15 Nov
'02
11:43 a.m.
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