[Zope] Use of the different displays with Imagemagick.

William GARCIA wgarcia@esrf.fr
Mon, 06 May 2002 08:57:25 +0200


--=====================_521176750==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

ImageMagick is installed on the server I work. When I create a Photo 
product instance, if I see the properties of the image, several displays 
have been generated.
I would like to display a thumbnail with :<dtml-var 
expr="image(display='thumbnail')">

but Zope generated the next error :
Error Type: AttributeError
Error Value: __call__

Traceback (innermost last):
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 
150, in publish_module
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 
114, in publish
   File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, 
line 159, in zpublisher_exception_hook
     (Object: test_photo_imagemagick)
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 
98, in publish
   File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, 
line 88, in mapply
     (Object: testimagemagick)
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line 
39, in call_object
     (Object: testimagemagick)
   File /zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, 
line 127, in __call__
     (Object: testimagemagick)
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py, 
line 473, in __call__
     (Object: testimagemagick)
   File 
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py, 
line 159, in eval
     (Object: image(display='thumbnail'))
     (Info: image)
   File <string>, line 2, in f

Thanks in advance for the help you can give to me.
William.

--=====================_521176750==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
ImageMagick is installed on the server I work. When I create a Photo
product instance, if I see the properties of the image, several displays
have been generated. <br>
I would like to display a thumbnail with :&lt;dtml-var
expr=&quot;image(display='thumbnail')&quot;&gt;&nbsp;&nbsp; <br><br>
but Zope generated the next error :<br>
<b>Error Type: AttributeError<br>
Error Value: __call__<br><br>
</b>Traceback (innermost last):<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
150, in publish_module<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
114, in publish<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/Zope/__init__.py, line 159,
in zpublisher_exception_hook<br>
&nbsp;&nbsp;&nbsp; (Object: test_photo_imagemagick)<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
98, in publish<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/mapply.py, line
88, in mapply<br>
&nbsp;&nbsp;&nbsp; (Object: testimagemagick)<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/ZPublisher/Publish.py, line
39, in call_object<br>
&nbsp;&nbsp;&nbsp; (Object: testimagemagick)<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/OFS/DTMLMethod.py, line
127, in __call__<br>
&nbsp;&nbsp;&nbsp; (Object: testimagemagick)<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_String.py,
line 473, in __call__<br>
&nbsp;&nbsp;&nbsp; (Object: testimagemagick)<br>
&nbsp; File
/zope/Zope-2.5.0-solaris-2.6-sparc/lib/python/DocumentTemplate/DT_Util.py,
line 159, in eval<br>
&nbsp;&nbsp;&nbsp; (Object: image(display='thumbnail'))<br>
&nbsp;&nbsp;&nbsp; (Info: image)<br>
&nbsp; File &lt;string&gt;, line 2, in f<br><br>
Thanks in advance for the help you can give to me.<br>
William.<br>
</html>

--=====================_521176750==_.ALT--