Re: [Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 5 Apr 2006, at 14:19, Bert Vanderbauwhede wrote:
I'm currently setting up a CMF site for testing purposes. While  
configuring the
CachingPolicyManager, I discovered that it didn't work for the  
Image and File

content types. However, it worked perfectly for the Document content
type. I only
got it working for Image and File after I modified the index_html()  
method in
CMFDefault/Image.py and CMFDefault/File.py. Anyone knows what I'm  
doing

wrong? Or is this a known problem?

I'm using CMF 1.4.7. Is this problem perhaps solved in a later  
version?


Can't speak for CMF 1.4, looking at 1.5+ here:

Later versions use the very same rendering code for CMFDefault/ 
Image.py and CMFDefault/File.py, there were no changes. Not sure if  
that's helpful to you, but putting them into a skins directory on the  
filesystem *will* trigger the CachingPolicyManager.


jens

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEM8reRAx5nvEhZLIRAiYHAJ9jp3RpwEHwNfBi2byS1F1mNWCHEQCgkThW
jxEYoV5oIoDa6V6p+bHHFIg=
=0fkO
-END PGP SIGNATURE-
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Dieter Maurer
Bert Vanderbauwhede wrote at 2006-4-5 15:19 +0200:
 ...
I'm currently setting up a CMF site for testing purposes. While configuring the
CachingPolicyManager, I discovered that it didn't work for the Image and File
content types. However, it worked perfectly for the Document content
type. I only
got it working for Image and File after I modified the index_html() method in
CMFDefault/Image.py and CMFDefault/File.py. Anyone knows what I'm doing
wrong? Or is this a known problem?

You may look how I made FSFile and FSImage CachingPolicyManager
aware. The change is now in CMFCore.


-- 
Dieter
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

The combining of Zope's HTTPCacheManager and the CMF  
CachingPolicyManager is yet another item which really should not be  
in some standalone thingy but integrated into the  
CachingPolicyManager itself...  I hope to do this in time for CMF 2.1.


jens


On 5 Apr 2006, at 21:06, Stefan H. Holek wrote:


I have it working fine using the PolicyHTTPCacheManager from CacheFu.
http://dev.plone.org/collective/browser/CacheFu/trunk/ 
PolicyHTTPCacheManager


Stefan

On 5. Apr 2006, at 15:19, Bert Vanderbauwhede wrote:


Hi,

I'm currently setting up a CMF site for testing purposes. While  
configuring the
CachingPolicyManager, I discovered that it didn't work for the  
Image and File

content types. However, it worked perfectly for the Document content
type. I only
got it working for Image and File after I modified the index_html 
() method in
CMFDefault/Image.py and CMFDefault/File.py. Anyone knows what I'm  
doing

wrong? Or is this a known problem?

I'm using CMF 1.4.7. Is this problem perhaps solved in a later  
version?




--
Anything that happens, happens.  --Douglas Adams


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFENCs9RAx5nvEhZLIRAtf0AKCYG8xSa4oZ52MXGYDJuaDPKFDYtwCgumIZ
7yM1Js9vAPGirq299TLHrrg=
=XXfO
-END PGP SIGNATURE-
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests