I'm working thru the book (great work, BTW) and I'm in Chap 8, Adv Scripting.

I wrote the external method makeThumb in Example.py with the following signature

def makeThumbnail(self, original_id, size=128):

I do have an image object named bigImg

when I access external method via http://localhost:8080/makeThumbnail?original_id=bigImg

I get the following error

Error Type: SystemError
Error Value: bad argument to internal function

here's the traceback

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)

Any ideas what I'm doing wrong?

Thanks in advance for your help


jeff@hotz.net
www.hotz.net