[Zope] Error in makeThumbnail script from Zope Book??
Jeff Hotz
jeff@hotz.net
Sun, 08 Jul 2001 22:53:30 -0500
<html>
<br>
I'm working thru the book (great work, BTW) and I'm in Chap 8, Adv
Scripting.<br><br>
I wrote the external method makeThumb in Example.py with the following
signature<br><br>
def makeThumbnail(self, original_id, size=128):<br><br>
I do have an image object named bigImg<br><br>
when I access external method via
<a href="http://localhost:8080/makeThumbnail?original_id=bigImg" eudora="autourl">http://localhost:8080/makeThumbnail?original_id=bigImg</a>
<br><br>
I get the following error<br><br>
<b>Error Type: SystemError<br>
Error Value: bad argument to internal function<br><br>
</b>here's the traceback<br><br>
Traceback (innermost last): File D:\Data\xndex\lib\python\ZPublisher\Publish.py, line 223, in publish_module File D:\Data\xndex\lib\python\ZPublisher\Publish.py, line 187, in publish File D:\Data\xndex\lib\python\Zope\__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File D:\Data\xndex\lib\python\ZPublisher\Publish.py, line 171, in publish File D:\Data\xndex\lib\python\ZPublisher\mapply.py, line 160, in mapply (Object: makeThumbnail) File D:\Data\xndex\lib\python\ZPublisher\Publish.py, line 112, in call_object (Object: makeThumbnail) File D:\Data\xndex\lib\python\Products\ExternalMethod\ExternalMethod.py, line 262, in __call__ (Object: makeThumbnail) (Info: ((<Folder instance at 01002DB0>, 'bigImg', 128), {}, (128,))) File D:\Data\xndex\Extensions\Example2.py, line 8, in makeThumbnail (Object: Traversable) SystemError: (see above) <br><br>
Any ideas what I'm doing wrong?<br><br>
Thanks in advance for your help<br><br>
<br>
<x-sigsep><p></x-sigsep>
jeff@hotz.net<br>
<a href="http://www.hotz.net/" eudora="autourl">www.hotz.net</a></html>