[Zope-Checkins] SVN: Zope/branches/tseaver-zope.app_delenda_est/ Use ``IAdding`` interface from ``zope.browser``

Tres Seaver tseaver at palladion.com
Wed May 13 17:47:23 EDT 2009


Log message for revision 99936:
  Use ``IAdding`` interface from ``zope.browser``
  
  (rather than ``zope.app.container``).
  

Changed:
  U   Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst
  U   Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py
  U   Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml
  U   Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py
  U   Zope/branches/tseaver-zope.app_delenda_est/versions.cfg

-=-
Modified: Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst
===================================================================
--- Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst	2009-05-13 21:35:46 UTC (rev 99935)
+++ Zope/branches/tseaver-zope.app_delenda_est/doc/CHANGES.rst	2009-05-13 21:47:23 UTC (rev 99936)
@@ -11,6 +11,9 @@
 Restructuring
 +++++++++++++
 
+- Use ``IAdding`` interface from ``zope.browser``, rather than
+  ``zope.app.container``.
+
 - No longer depend on ``zope.app.appsetup``;  use the event implementations
   from ``zope.processlifetime`` instead.
 

Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py
===================================================================
--- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py	2009-05-13 21:35:46 UTC (rev 99935)
+++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/browser/adding.py	2009-05-13 21:47:23 UTC (rev 99936)
@@ -42,7 +42,7 @@
 from zope.exceptions.interfaces import UserError
 from zope.lifecycleevent import ObjectCreatedEvent
 
-from zope.app.container.interfaces import IAdding
+from zope.browser.interfaces import IAdding
 from zope.app.publisher.browser.menu import getMenu
 
 from zExceptions import BadRequest
@@ -55,7 +55,7 @@
     implements(IAdding, IPublishTraverse)
 
     def add(self, content):
-        """See zope.app.container.interfaces.IAdding
+        """See zope.browser.interfaces.IAdding
         """
         container = self.context
         name = self.contentName
@@ -90,7 +90,7 @@
     contentName = None # usually set by Adding traverser
 
     def nextURL(self):
-        """See zope.app.container.interfaces.IAdding"""
+        """See zope.browser.interfaces.IAdding"""
         # XXX this is definitely not right for all or even most uses
         # of Five, but can be overridden by an AddView subclass, using
         # the class attribute of a zcml:addform directive

Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml
===================================================================
--- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml	2009-05-13 21:35:46 UTC (rev 99935)
+++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/doc/products/ViewsTutorial/configure.zcml	2009-05-13 21:47:23 UTC (rev 99936)
@@ -46,7 +46,7 @@
   <!-- .democontent.IDemoContent views -->
 
   <browser:page
-      for="zope.app.container.interfaces.IAdding"
+      for="zope.browser.interfaces.IAdding"
       name="addDemoContent.html"
       template="addDemoContent.pt"
       class=".browser.DemoContentAddView"

Modified: Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py
===================================================================
--- Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py	2009-05-13 21:35:46 UTC (rev 99935)
+++ Zope/branches/tseaver-zope.app_delenda_est/src/Products/Five/form/metaconfigure.py	2009-05-13 21:47:23 UTC (rev 99936)
@@ -18,6 +18,7 @@
 from App.class_init import InitializeClass
 from ExtensionClass import Base
 
+from zope.browser.interfaces import IAdding
 import zope.component
 from zope.interface import Interface
 from zope.i18nmessageid import MessageFactory
@@ -25,7 +26,6 @@
 
 from zope.app.publisher.browser.menumeta import menuItemDirective
 from zope.app.form.browser.metaconfigure import BaseFormDirective
-from zope.app.container.interfaces import IAdding
 
 from Products.Five.form import EditView, AddView
 from Products.Five.metaclass import makeClass

Modified: Zope/branches/tseaver-zope.app_delenda_est/versions.cfg
===================================================================
--- Zope/branches/tseaver-zope.app_delenda_est/versions.cfg	2009-05-13 21:35:46 UTC (rev 99935)
+++ Zope/branches/tseaver-zope.app_delenda_est/versions.cfg	2009-05-13 21:47:23 UTC (rev 99936)
@@ -35,7 +35,6 @@
 zope.app.cache = 3.5.0
 zope.app.catalog = 3.8.0
 zope.app.component = 3.7.0
-zope.app.container = 3.7.2
 zope.app.content = 3.4.0
 zope.app.dav = 3.5.0
 zope.app.debug = 3.4.1
@@ -73,7 +72,7 @@
 zope.app.zptpage = 3.5.0
 zope.authentication = 3.7.0
 zope.broken = 3.5.0
-zope.browser = 0.5.0
+zope.browser = 1.1
 zope.cachedescriptors = 3.5.0
 zope.catalog = 3.8.0
 zope.component = 3.6.0



More information about the Zope-Checkins mailing list