Andreas Tille writes:
On Mon, 9 Sep 2002, Dieter Maurer wrote:
For instance I just try to do some processing onto an image named bland.gif which is in the same folder of ZMI as the External Method. I've got a.
Error Type: IOError Error Value: [Errno 2] No such file or directory: 'bland.gif' You cannot access file in the "Extension" folders with bare (relative) names. This has nothing to do with Zope but with you OS: No. BUt I have installed the file in ZMI in the same folder as the External Method is defined in - not in the Extension folder. Apparently, you use "open" to open this file.
"open" interprets its argument as a file name in the filesystem. It is to be expected that it does not find the file there... Use "str(fileobject.data)" to access the content of a Zope file object "fileobject". Dieter