Re: [Zope-dev] Where best to intercept a request to send a 304 response in Zope 2

2010-01-06 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin Aspeli wrote: Laurence Rowe wrote: 2009/12/31 Martin Aspelioptilude+li...@gmail.com: Hi, A few of us are playing with some caching tools, trying to get to a more sane and less monkey patch-laden approach than CacheFu

Re: [Zope-dev] Where best to intercept a request to send a 304 response in Zope 2

2010-01-06 Thread Martin Aspeli
Tres Seaver wrote: You can lock the status and body of the response, which causes subsequent attempts to set them to fail silently. Oh, that's great! I even remember reading that code and it never struck me. Thanks a lot! Martin -- Author of `Professional Plone Development`, a book for

Re: [Zope-dev] Where best to intercept a request to send a 304 response in Zope 2

2010-01-05 Thread Laurence Rowe
2009/12/31 Martin Aspeli optilude+li...@gmail.com: Hi, A few of us are playing with some caching tools, trying to get to a more sane and less monkey patch-laden approach than CacheFu (Products.CacheSetup), for use with Zope 2.12. It is relatively easy to set response headers, e.g. in an

Re: [Zope-dev] Where best to intercept a request to send a 304 response in Zope 2

2010-01-05 Thread Martin Aspeli
Laurence Rowe wrote: 2009/12/31 Martin Aspelioptilude+li...@gmail.com: Hi, A few of us are playing with some caching tools, trying to get to a more sane and less monkey patch-laden approach than CacheFu (Products.CacheSetup), for use with Zope 2.12. It is relatively easy to set response