[Zope] Re: Exceptions and Python Scripts

Dieter Maurer dieter@handshake.de
Wed, 21 Feb 2001 19:58:24 +0100 (CET)


Chris Withers writes:
 > Put these two together and and you need to use sys.exc_info() to analyse the
 > type and value to decide whether you should re-raise it or not.
 > Of course, you're not allowed to import anything from sys in Python Scripts so
 > you're left with no options.
Didn't you learn recently how to allow selective access to module content?

  You asked the list about the standard way to do this and
  got an excellent response from Brian.

Thus, you have an option. Maybe not the most optimal possible, though....


Dieter