[Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/component/metaconfigure.py Make deprecation warning a bit more informative about what to do.

Martijn Faassen faassen at infrae.com
Wed Jun 14 08:35:04 EDT 2006


Log message for revision 68628:
  Make deprecation warning a bit more informative about what to do.
  

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

-=-
Modified: Zope3/branches/3.3/src/zope/app/component/metaconfigure.py
===================================================================
--- Zope3/branches/3.3/src/zope/app/component/metaconfigure.py	2006-06-14 12:30:23 UTC (rev 68627)
+++ Zope3/branches/3.3/src/zope/app/component/metaconfigure.py	2006-06-14 12:35:03 UTC (rev 68628)
@@ -185,7 +185,9 @@
         for_ = for_ + (layer,)
         warnings.warn_explicit(
             "The 'layer' argument of the 'view' directive has been "
-            "deprecated.  Use the 'type' argument instead.",
+            "deprecated.  Use the 'type' argument instead. If you have "
+            "an existing type BrowserRequest, replace it with the layer, "
+            "which subclasses BrowserRequest.",
             DeprecationWarning, _context.info.file, _context.info.line)
     else:
         for_ = for_ + (type,)



More information about the Zope3-Checkins mailing list