Re: [Zope-dev] CSS file serving

2001-01-23 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  That (or rather Image.File) was where I started. I decided to go with
  HTMLFile as a basis so we could have some DTML in the CSS file - but
  overrode it so we weren't forced to have the .dtml extension (much happier
  web designers that way :)
Thus, the only thing, you need to do in addition, is to set
the correct content type.

Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] CSS file serving

2001-01-23 Thread richard

Dieter Maurer wrote:
 
 [EMAIL PROTECTED] writes:
   That (or rather Image.File) was where I started. I decided to go with
   HTMLFile as a basis so we could have some DTML in the CSS file - but
   overrode it so we weren't forced to have the .dtml extension (much happier
   web designers that way :)
 
 Thus, the only thing, you need to do in addition, is to set
 the correct content type.

   Which is pretty much what I did. I've attached the CSSFile class (which
I suppose I should have done in the first place)...

   I'm not sure if this implementation is entirely "correct" - I have no
idea what the func_code stuff is for (though if it's not commented out, the
class breaks) or the __need_name__... but it works well for us :)


 Richard

-- 
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)
 CSSFile.py


Re: [Zope-dev] CSS file serving

2001-01-21 Thread richard

Casey Duncan wrote:
 [EMAIL PROTECTED] wrote:
 
  I've ended up hacking a version of special_dtml / ClassicHTMLFile that
  serves up CSS. Has anyone got a better way of doing it (that detects
  changes in the file and serves it up with the correct Content-Type)?
 
 Check out:
 
 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.



Richard

-- 
Richard Jones
[EMAIL PROTECTED]
Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )