[Zope] Uncaught exception in OFS.Image with LocalFS
Brad Crittenden
bac@ivc.com
Thu, 23 Mar 2000 11:41:07 -0500
hello:
i'm using Zope 2.1.6 and LocalFS 0.1.7. when i try to view an image via a
LocalFS object i get an exception in OFS.Image.py at line 187:
last_mod =int(self._p_mtime)
the error occurs the *first* time i try to access a specific image with a
recently launched browser. accessing other images or subsequent hits to the
troublesome image in the same browser do not cause the problem. subsequent
hits in the same launch of zope from a fresh browser on another machine
causes the exception.
having modified Image.py to catch the exception and dump some information i
see that self._p_mtime is None. i've looked around but cannot determine
where _p_mtime is defined or how it is supposed to be set.
i see this method in Image was re-written after Zope 2.1.4.
similarly, accessing a .wav file via LocalFS causes the following message:
2000-03-23T16:27:13 ERROR(200) ZServer uncaptured python exception, closing
chan
nel <zhttp_channel connected 127.0.0.1:4864 at b7d340 channel#: 15
requests:1> (
exceptions.AttributeError:'int' object has no attribute 'send'
[D:\myzope\ZSer
ver\medusa\asyncore.py|poll|64]
[D:\myzope\ZServer\medusa\asyncore.py|handle_w
rite_event|298] [D:\myzope\ZServer\medusa\asynchat.py|handle_write|144]
[D:\myzope\ZServer\medusa\asynchat.py|initiate_send|211]
[D:\myzope\ZServer\medusa
\http_server.py|send|400] [D:\myzope\ZServer\medusa\asyncore.py|send|231]
[<st
ring>|send|1])
the wav file is delivered to the browser correctly.
as a quick fix to the Image problem, i catch the exception, set last_mod =
0, and continue. this does not seem to have any ill effects.
--brad