I've got a problem with the image class. I use Zope 2.1.4 (downloaded from http://yyy.zope.org/) with Windows 98 second edition. Let me give an example: 1. I create an image object head_1 and upload an image "cat". Everything is fine. 2. I upload an other image "dog". Almost nothing happens. The image is not there. But something has changed: The size properties. What ever I do, I do not get the right picture, I will see always "cat" but always in different sizes, the size from the last uploaded picture. But that's not all. 3. I delete the image object head_1 4. Create a new one, let's say head_2 and give it an image "dog". I see dog. 5. But now, when I rename the image object from head_2 to head_1 I will get again the old picture "cat". This scenario is always the same, regardless what I do: * shutdown the database in between * clearing the undo buffer * new installation * hide the python installation dir * delete the database I played around with the lib/python/OFS/Image.py. But I experienced enough with Zope thus I know Python. What ist wrong with me or the Image class. Help Jens
On Sun, 12 Mar 2000, Jens Gelhaar, cuiod-tec wrote:
5. But now, when I rename the image object from head_2 to head_1 I will get again the old picture "cat". This scenario is always the same, regardless what I do:
This is almost certainly because your browser has cached the image. Try clearing your browser cache. Or better yet (because sometimes clearing the cache on some browsers doesn't seem to completely clear it), try loading the thing from a browser that hasn't looked at that image before, and you will probably see the correct image. At least, that's how it worked for me when I ran into this. --RDM
Ive been having a similar problem. The problem lies not with Zope, but with your browser and its cache. As long as you are trying to retrieve the image from the same URL, your browser will grab the cached image rther than the one from Zope. I havent delved into this, but I think adding some content expiry info to the 'view' tab might be necessary. Either that or change your browser settings.
-----Original Message----- From: gelhaar@compuserve.com [mailto:gelhaar@compuserve.com] Sent: Sunday, March 12, 2000 1:48 PM To: zope@zope.org Subject: [Zope] Problem with Images
I've got a problem with the image class. I use Zope 2.1.4 (downloaded from http://yyy.zope.org/) with Windows 98 second edition. Let me give an example: 1. I create an image object head_1 and upload an image "cat". Everything is fine. 2. I upload an other image "dog". Almost nothing happens. The image is not there. But something has changed: The size properties. What ever I do, I do not get the right picture, I will see always "cat" but always in different sizes, the size from the last uploaded picture. But that's not all. 3. I delete the image object head_1 4. Create a new one, let's say head_2 and give it an image "dog". I see dog. 5. But now, when I rename the image object from head_2 to head_1 I will get again the old picture "cat". This scenario is always the same, regardless what I do: * shutdown the database in between * clearing the undo buffer * new installation * hide the python installation dir * delete the database
I played around with the lib/python/OFS/Image.py. But I experienced enough with Zope thus I know Python. What ist wrong with me or the Image class.
Help
Jens
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
I think both NS and IE default to check for modified content 'only once per session'. Changing this preference to 'every time' fixes this problem. -jfarr ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hi! I'm a signature virus. Copy me into your .sig to join the fun! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ----- Original Message ----- From: Damian Morton <morton@dennisinter.com> To: <gelhaar@compuserve.com>; <zope@zope.org> Sent: Sunday, March 12, 2000 2:20 PM Subject: RE: [Zope] Problem with Images
Ive been having a similar problem. The problem lies not with Zope, but with your browser and its cache. As long as you are trying to retrieve the image from the same URL, your browser will grab the cached image rther than the one from Zope. I havent delved into this, but I think adding some content expiry info to the 'view' tab might be necessary. Either that or change your browser settings.
[snip]
participants (4)
-
Jens Gelhaar, cuiod-tec -
Jonothan Farr -
morton@dennisinter.com -
R. David Murray