[Zope3-checkins] SVN: Zope3/branches/srichter-blow-services/src/zope/component/bbb/__init__.py Corrected deprecation warning message.

Stephan Richter srichter at cosmos.phy.tufts.edu
Wed Jan 12 17:10:00 EST 2005


Log message for revision 28817:
  Corrected deprecation warning message.
  

Changed:
  U   Zope3/branches/srichter-blow-services/src/zope/component/bbb/__init__.py

-=-
Modified: Zope3/branches/srichter-blow-services/src/zope/component/bbb/__init__.py
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/component/bbb/__init__.py	2005-01-12 20:37:44 UTC (rev 28816)
+++ Zope3/branches/srichter-blow-services/src/zope/component/bbb/__init__.py	2005-01-12 22:09:59 UTC (rev 28817)
@@ -178,7 +178,7 @@
     if __warn__:
         warnings.warn(
             "The concrete concept of a view has been deprecated. You want to "
-            "use `getSiteManager(context).lookup(map(providedBy, "
+            "use `getSiteManager(context).adapters.lookup(map(providedBy, "
             "(object, request)), IDefaultViewName)",
             DeprecationWarning, warningLevel())
     view = queryDefaultViewName(object, request, context=context)
@@ -193,7 +193,7 @@
     if __warn__:
         warnings.warn(
             "The concrete concept of a view has been deprecated. You want to "
-            "use `getSiteManager(context).lookup(map(providedBy, "
+            "use `getSiteManager(context).adapters.lookup(map(providedBy, "
             "(object, request)), IDefaultViewName)`",
             DeprecationWarning, warningLevel())
     from zope.component.bbb.exceptions import ComponentLookupError



More information about the Zope3-Checkins mailing list