Re: [Zope] handling exceptions for external methods

2007-07-09 Thread David Bear
On Sat, Jul 07, 2007 at 08:11:29AM +0200, Andreas Jung wrote: > >1 external methods run in the same interpreter as zope > right > >2 external methods have access to a larger namespace and therefor more > >functionality > > they have access to the *full* Python functionality > >3 external methods i

Re: [Zope] handling exceptions for external methods

2007-07-09 Thread Sascha Welter
(Fri, Jul 06, 2007 at 02:55:47PM -0700) David Bear wrote/schrieb/egrapse: > I've begun using external methods and am trying to better understand the > context they run and and how to handle exceptions. I have concluded > the following (and I don't recall reading some of these in any documentation)

Re: [Zope] handling exceptions for external methods

2007-07-08 Thread Dieter Maurer
Jonathan wrote at 2007-7-7 08:55 -0400: > ... >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). You can. You must, however, be awa

Re: [Zope] handling exceptions for external methods

2007-07-08 Thread Dieter Maurer
David Bear wrote at 2007-7-6 14:55 -0700: > ... >5 external methods do not have access to stdin/stdout They have. However, "stdin/stdout/stderr" have not much worth in "server mode". "server mode" means that there is no "terminal" where this IO comes from is directed to. You can change Zope's s

Re: [Zope] handling exceptions for external methods

2007-07-07 Thread Jonathan
- Original Message - From: "Andreas Jung" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "zope" Sent: Saturday, July 07, 2007 2:11 AM Subject: Re: [Zope] handling exceptions for external methods 6 external methods must return only strings, Nonse

Re: [Zope] handling exceptions for external methods

2007-07-06 Thread Andreas Jung
--On 6. Juli 2007 14:55:47 -0700 David Bear <[EMAIL PROTECTED]> wrote: I've begun using external methods and am trying to better understand the context they run and and how to handle exceptions. I have concluded the following (and I don't recall reading some of these in any documentation) (ple

Re: [Zope] handling exceptions for external methods

2007-07-06 Thread Jonathan
- Original Message - From: "David Bear" <[EMAIL PROTECTED]> To: "zope" Sent: Friday, July 06, 2007 5:55 PM Subject: [Zope] handling exceptions for external methods I've begun using external methods and am trying to better understand the context

[Zope] handling exceptions for external methods

2007-07-06 Thread David Bear
I've begun using external methods and am trying to better understand the context they run and and how to handle exceptions. I have concluded the following (and I don't recall reading some of these in any documentation) (please correct me if I'm wrong) 1 external methods run in the same interpreter