[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/metaconfigure.py Improved a warning message.

Jim Fulton jim at zope.com
Mon Jun 27 07:53:09 EDT 2005


Log message for revision 30930:
  Improved a warning message.
  

Changed:
  U   Zope3/trunk/src/zope/app/component/metaconfigure.py

-=-
Modified: Zope3/trunk/src/zope/app/component/metaconfigure.py
===================================================================
--- Zope3/trunk/src/zope/app/component/metaconfigure.py	2005-06-27 11:53:06 UTC (rev 30929)
+++ Zope3/trunk/src/zope/app/component/metaconfigure.py	2005-06-27 11:53:09 UTC (rev 30930)
@@ -78,9 +78,11 @@
         if provides is None:
             import warnings
             warnings.warn(
+                "\n  %s\n"
                 "Use of factory without provides to indicate a handler "
                 "is deprecated and will change it's meaning in Zope X3.3. "
-                "Use the handler attribute instead.",
+                "Use the handler attribute instead."
+                % _context.info,
                 DeprecationWarning)
 
     if for_ is None:



More information about the Zope3-Checkins mailing list