Author: tack
Date: Wed Mar 12 22:30:11 2008
New Revision: 3187

Log:
Return proxied exception's methods and members.


Modified:
   trunk/base/src/notifier/async.py

Modified: trunk/base/src/notifier/async.py
==============================================================================
--- trunk/base/src/notifier/async.py    (original)
+++ trunk/base/src/notifier/async.py    Wed Mar 12 22:30:11 2008
@@ -85,6 +85,11 @@
     
     def __getattr__(self, attr):
         # Used by python 2.4, where exceptions are old-style classes.
+        exc = self._kaa_exc
+        if attr == '__members__':
+            return [ x for x in dir(exc) if not callable(getattr(exc, x)) ]
+        elif attr == '__methods__':
+            return [ x for x in dir(exc) if callable(getattr(exc, x)) ]
         return self.__getattribute__(attr)
 
     def _kaa_get_header(self):

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to