[Zope-dev] CSS file serving

Dieter Maurer dieter@handshake.de
Mon, 22 Jan 2001 23:06:57 +0100 (CET)


richard@bizarsoftware.com.au writes:
 > > http://www.zope.org/Members/haqa/ZStyleSheet
 > 
 >    Hrm - that's a little heavy for what I want - which is just an analog of
 > HTMLFile but for CSS files. That is, something I can add to my Python
 > product as an attribute. Definitely no management or other sorts of
 > trickiness required.
Look at "App.ImageFile".
If you are lucky, you can immediately use it to wrap your
CSS files. If not, you should extend "OFS.content_types.guess_content_type"
such that it recognizes the ".css" extension.


Dieter