[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/registry.py
Introduce another deprecated attribute: doc -> info.
Martijn Faassen
faassen at infrae.com
Thu Apr 27 09:14:43 EDT 2006
Log message for revision 67643:
Introduce another deprecated attribute: doc -> info.
Changed:
U Zope3/trunk/src/zope/component/registry.py
-=-
Modified: Zope3/trunk/src/zope/component/registry.py
===================================================================
--- Zope3/trunk/src/zope/component/registry.py 2006-04-27 12:50:58 UTC (rev 67642)
+++ Zope3/trunk/src/zope/component/registry.py 2006-04-27 13:14:43 UTC (rev 67643)
@@ -451,6 +451,13 @@
"in Zope 3.5. Use the factory attribute instead.")
def value(self):
return self.factory
+
+ @property
+ @zope.deprecation.deprecate(
+ "The doc attribute on adapter registrations will be unsupported "
+ "in Zope 3.5. Use the info attribute instead.")
+ def doc(self):
+ return self.info
class SubscriptionRegistration(AdapterRegistration):
More information about the Zope3-Checkins
mailing list