[Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Bert Vanderbauwhede
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?

--
Batlock666...
  "I aim to misbehave."
___
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


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 Stefan H. Holek

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


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


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

2006-04-05 Thread Sidnei da Silva
Title: Re: [Zope-CMF] CachingPolicyManager and Image/File content






The PolicyHTTPCacheManager 
is ZPL. I'm willing to donate it's code.
-- 
Sidnei da Silva
Enfold Systems, Inc.
http://www.enfoldsystems.com



De: [EMAIL PROTECTED] em nome de 
Jens VagelpohlEnviada: qua 5/4/2006 17:40Para: 
zope-cmf@lists.zope.orgAssunto: Re: [Zope-CMF] CachingPolicyManager 
and Image/File content

-BEGIN PGP SIGNED MESSAGE-Hash: SHA1The 
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.jensOn 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)iD8DBQFENCs9RAx5nvEhZLIRAtf0AKCYG8xSa4oZ52MXGYDJuaDPKFDYtwCgumIZ7yM1Js9vAPGirq299TLHrrg==XXfO-END 
PGP 
SIGNATURE-___Zope-CMF 
maillist  -  Zope-CMF@lists.zope.orghttp://mail.zope.org/mailman/listinfo/zope-cmfSee 
http://collector.zope.org/CMF for 
bug reports and feature requests


___
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: RES: [Zope-CMF] CachingPolicyManager and Image/File content

2006-04-05 Thread Jens Vagelpohl

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


On 5 Apr 2006, at 21:44, Sidnei da Silva wrote:


The PolicyHTTPCacheManager is ZPL. I'm willing to donate it's code.
-- Sidnei da Silva Enfold Systems, Inc. http://www.enfoldsystems.com


Thanks Sidnei, this is much appreciated. I'm going to update the  
existing CMF collector issue accordingly and assign it to myself. As  
I said, this won't make it into CMF 2.0 but 2.1, which means you can  
count on it for Plone 3.0.


jens


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

iD8DBQFENC3dRAx5nvEhZLIRAl34AJ4y8rgvbFywvkLUHaqAp+IiNfO0XgCffOsL
z0MWXsmP2bXoIsDubDgNtsk=
=m/dW
-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