[Zope] External methods and images
Wolf Logan
wolf@searchbutton.com
Fri, 7 May 1999 13:48:29 -0700
i think what you're seeing is the by-now-infamous ExternalMethod
exception-handling bug (tm). ExternalMethod is seeing an exception in some
part of the external method. in processing that exception, it assumes the
exception type is a string, which it almost never is. this usually causes a
second exception in the exception-handling code, which kills the function
(and produces the traceback you see).
i was able to patch it by replacing line 255 in ExternalMethod.py with:
-----
if (type(error_type) is type('')) and (lower(error_type) in
('redirect',)):
-----
i know less than nothing about the version control system, or even the bug
reporting system (please forgive me, i'm only marginally competent with the
systems we use here in-house) so i haven't made the change above "official"
in any way. if someone could take care of that, i'd appreciate it.
-----Original Message-----
From: Tony McDonald [mailto:tony.mcdonald@ncl.ac.uk]
Sent: Friday, May 07, 1999 8:50 AM
Hi,
I have an external method that gets an image from a directory (ie the
image is *not* in the ZODB) and then adds the correct headers to
display it to the browser.
Trouble is, it don't work.
anyone got any ideas? This is driving me batty.