[Zope] handling exceptions for external methods
Jonathan
dev101 at magma.ca
Sat Jul 7 08:55:42 EDT 2007
----- Original Message -----
From: "Andreas Jung" <lists at zopyx.com>
To: <David.Bear at asu.edu>; "zope" <Zope at zope.org>
Sent: Saturday, July 07, 2007 2:11 AM
Subject: Re: [Zope] handling exceptions for external methods
>>
>> 6 external methods must return only strings,
>
> Nonsense. External methods can return anything.
Just one caveat: you cannot define a class within an external method and
then return an instance of that class (the routine that invoked the external
method will not have any reference to the instance's class).
If you want to create your own object classes then put the class definitions
in a Zope Product. You can then access that class from within an external
method and then return instances of the class to the routine that called the
external method (the calling routine will be able to reference the class
because of the Zope Product).
Jonathan
More information about the Zope
mailing list