[Zope3-checkins] SVN: Zope3/trunk/src/zope/importtool/reporter.py add exception() method to minimal reporter

Fred L. Drake, Jr. fred at zope.com
Fri May 28 23:07:48 EDT 2004


Log message for revision 25117:
add exception() method to minimal reporter


-=-
Modified: Zope3/trunk/src/zope/importtool/reporter.py
===================================================================
--- Zope3/trunk/src/zope/importtool/reporter.py	2004-05-29 03:06:17 UTC (rev 25116)
+++ Zope3/trunk/src/zope/importtool/reporter.py	2004-05-29 03:07:47 UTC (rev 25117)
@@ -45,3 +45,18 @@
 
         This method may veto the import by raising an exception.
         """
+
+    def exception(self, importer, name, fromlist, exc_info):
+        """Called after an attempted import has failed.
+
+        `importer` is the full name of the module performing the import.
+
+        `name` is the module name requested for the import.  This may
+        be a relative module name.  It may represent a module that has
+        already been loaded.
+
+        `fromlist` is the `fromlist` argument to `__import__()`.
+
+        `exc_info` is the return value from sys.exc_info(), indicating
+        the error that occurred.
+        """




More information about the Zope3-Checkins mailing list