[Zope] External Method limits

Andy McKay andym@ActiveState.com
Wed, 11 Jul 2001 08:15:08 -0700


The code in the book is incorrect. Its expecting a string but getting an
object instead.

Cheers.
--
  Andy McKay.


----- Original Message -----
From: "Lee Harr" <missive@hotmail.com>
To: <Zope@zope.org>
Sent: Wednesday, July 11, 2001 6:39 AM
Subject: [Zope] External Method limits


> Hi:
>
> I am working through the section of the Zope Book on External Methods
> (chapter 8: Advanced Zope Scripting --
> http://www.zope.org/Members/michel/ZB/ScriptingZope.dtml -- Secton: Using
> External Methods)
>
> There is an example there which uses PIL that I am having some trouble
with.
> Whenever I try to use makeThumbnail on a file which is more than about 60K
I
> get the following error:
>
>
> Error Type: TypeError
> Error Value: expected string, ImplicitAcquirerWrapper found
>
>
> with this traceback:
>
>
>
> Traceback (innermost last):
> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 223, in
> publish_module
> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 187, in
> publish
> File /usr/local/www/Zope/lib/python/Zope/__init__.py, line 221, in
> zpublisher_exception_hook
> (Object: Traversable)
> File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 171, in
> publish
> File /usr/local/www/Zope/lib/python/ZPublisher/mapply.py, line 160, in
> mapply
> (Object: makeThumbnail)
>   File /usr/local/www/Zope/lib/python/ZPublisher/Publish.py, line 112, in
> call_object
> (Object: makeThumbnail)
> File
> /usr/local/www/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
> line 262, in __call__
> (Object: makeThumbnail)
> (Info: ((<Folder instance at 8a4cf00>, '002_2.JPG', 128), {}, (128,)))
> File /usr/local/www/Zope/Extensions/Thumbnail.py, line 18, in
makeThumbnail
> (Object: Traversable)
> TypeError: (see above)
>
>
> My sense is that I am either running in to limitations on how much
> processing an External Method is allowed to perform (which I do not
believe)
> or else the cStringIO module uses a different approach with files of a
> certain size and PIL does not like it.
>
> Any wisdom?
>
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> _______________________________________________
> 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 )
>