[Zope3-checkins] SVN: Zope3/branches/philikon-reduce-zcml/src/zope/app/publisher/browser/menumeta.py ContentDirective is deprecated

Philipp von Weitershausen philikon at philikon.de
Wed Mar 15 11:04:35 EST 2006


Log message for revision 66041:
  ContentDirective is deprecated
  

Changed:
  U   Zope3/branches/philikon-reduce-zcml/src/zope/app/publisher/browser/menumeta.py

-=-
Modified: Zope3/branches/philikon-reduce-zcml/src/zope/app/publisher/browser/menumeta.py
===================================================================
--- Zope3/branches/philikon-reduce-zcml/src/zope/app/publisher/browser/menumeta.py	2006-03-15 16:03:37 UTC (rev 66040)
+++ Zope3/branches/philikon-reduce-zcml/src/zope/app/publisher/browser/menumeta.py	2006-03-15 16:04:34 UTC (rev 66041)
@@ -34,7 +34,7 @@
 
 from zope.publisher.interfaces.browser import IBrowserRequest
 from zope.app.container.interfaces import IAdding
-from zope.app.component.contentdirective import ContentDirective
+from zope.app.component.contentdirective import ClassDirective
 from zope.app.publisher.interfaces.browser import AddMenu
 
 
@@ -255,7 +255,7 @@
                 "A permission must be specified when a class is used")
         factory = "BrowserAdd%s__%s.%s" % (
             forname, class_.__module__, class_.__name__)
-        ContentDirective(_context, class_).factory(_context, id=factory)
+        ClassDirective(_context, class_).factory(_context, id=factory)
 
     extra = {'factory': factory}
 



More information about the Zope3-Checkins mailing list