[Zope3-checkins] SVN: Zope3/trunk/ Removed 'Adding.renderAddButton' method which had been deprecated 2 years ago.

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Feb 16 08:56:24 EST 2006


Log message for revision 41634:
  Removed 'Adding.renderAddButton' method which had been deprecated 2 years ago.
  

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/container/browser/adding.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2006-02-16 12:51:57 UTC (rev 41633)
+++ Zope3/trunk/doc/CHANGES.txt	2006-02-16 13:56:23 UTC (rev 41634)
@@ -33,6 +33,9 @@
 
     Restructuring
 
+      - Removed 'Adding.renderAddButton' method which had been
+        deprecated 2 years ago.
+
       - Removed unused menus and made previous titles, the description,
         since they were awefully long. Then I created new, short titles.
 

Modified: Zope3/trunk/src/zope/app/container/browser/adding.py
===================================================================
--- Zope3/trunk/src/zope/app/container/browser/adding.py	2006-02-16 12:51:57 UTC (rev 41633)
+++ Zope3/trunk/src/zope/app/container/browser/adding.py	2006-02-16 13:56:23 UTC (rev 41634)
@@ -21,8 +21,6 @@
 
 __docformat__ = 'restructuredtext'
 
-from warnings import warn
-
 import zope.security.checker
 from zope.component.interfaces import IFactory
 from zope.event import notify
@@ -85,11 +83,6 @@
     request = None
     context = None
 
-    def renderAddButton(self):
-        warn("The renderAddButton method is deprecated, use nameAllowed",
-            DeprecationWarning, 2)
-
-
     def publishTraverse(self, request, name):
         """See zope.app.container.interfaces.IAdding"""
         if '=' in name:



More information about the Zope3-Checkins mailing list