14 Nov
2002
14 Nov
'02
3:36 p.m.
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)?! Thanks in advance, Rares
15 Nov
15 Nov
11:43 a.m.
New subject: [Zope] File objects store in external file
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
8543
Age (days ago)
8544
Last active (days ago)
1 comments
2 participants
participants (2)
-
Chris Withers -
Rares Vernica