[Checkins] SVN: zope.publisher/trunk/ Add handy DoNotReRaiseException adapter that can be simply registered for exceptions to mark that they should not be re-raised.
Christian Theune
ct at gocept.com
Tue Sep 15 07:01:06 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
On 09/09/2009 11:58 AM, Dan Korostelev wrote:
> Log message for revision 103682:
> Add handy DoNotReRaiseException adapter that can be simply registered for exceptions to mark that they should not be re-raised.
> Add __call__ method to the IReRaiseException interface.
Hmm. How about a different interface:
class IExceptionPublisherInfo(Interface):
reraise = zope.interface.Attribute("Boolean indicating whether the
publisher should reraise the exception or not")
This would also allow exceptions to implement this interface directly
and have an attribute introspectable by the publisher.
Christian
- --
Christian Theune · ct at gocept.com
gocept gmbh & co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 0 · fax +49 345 1229889 1
Zope and Plone consulting and development
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkqvc/IACgkQdUt9X/gknwIXbACgySXg//t9WGOw/B8OxrHCyr8W
6IAAoJWJrRVozZbbt0qIZpV08hIrhFuu
=KwVZ
-----END PGP SIGNATURE-----
More information about the checkins
mailing list