[Zope-Checkins] CVS: Zope/lib/python/OFS - ObjectManager.py:1.141.6.8

Shane Hathaway shane@digicool.com
Thu, 25 Oct 2001 16:40:59 -0400


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv16301

Modified Files:
      Tag: ComponentArchitecture-branch
	ObjectManager.py 
Log Message:
Fixed spelling


=== Zope/lib/python/OFS/ObjectManager.py 1.141.6.7 => 1.141.6.8 ===
 from App.ZopeComponents import listAddableTypes, AdderEntry, \
      convertMetaTypeList, Adder
-from ZPublisher.Browser import BrowserPublish
+from ZPublisher.Browser import IBrowserPublish
 from ZPublisher.FTP import FTPPublish
 from ZPublisher.WebDAV import WebDAVPublish
 import ComponentArchitecture
@@ -740,7 +740,7 @@
     def _browser_traverse(self, request, name=None):
         if name and name[:3] == '(p)':
             return ComponentArchitecture.getPresentation(
-                self, name[3:], BrowserPublish)
+                self, name[3:], IBrowserPublish)
         subob = self._getOb(name, None)
         if subob is None:
             # b/w compat.  This lets us publish methods of self.
@@ -753,14 +753,14 @@
                     # Waaa. unrestrictedTraverse calls us with a fake REQUEST.
                     # There is proabably a better fix for this.
                     raise KeyError, name
-        if not BrowserPublish.isImplementedBy(subob):
+        if not IBrowserPublish.isImplementedBy(subob):
             subob = ComponentArchitecture.getPresentation(
-                subob, '_default', BrowserPublish, subob)
+                subob, '_default', IBrowserPublish, subob)
         return subob
 
     def _browser_default(self, request):
         p = ComponentArchitecture.getPresentation(
-            self, '_default', BrowserPublish, None)
+            self, '_default', IBrowserPublish, None)
         if p is None:
             return (self, ())
         else:
@@ -799,7 +799,7 @@
     # XXX Uses implicit acquisition so manage_page_* can be found.
     saved_id = None
 
-    __implements__ = Adder, BrowserPublish
+    __implements__ = Adder, IBrowserPublish
 
     form = DTMLFile('dtml/add', globals())
 
@@ -849,7 +849,7 @@
     def _browser_traverse(self, request, name):
         if name[:3] == '(p)':
             return ComponentArchitecture.getPresentation(
-                self, name[3:], BrowserPublish)
+                self, name[3:], IBrowserPublish)
         elif name[:4] == '(id)':
             self.saved_id = name[4:]
             return self
@@ -865,7 +865,7 @@
 
 
 ComponentArchitecture.providePresentation(
-    ObjectManagerInterface, 'add', BrowserPublish,
+    ObjectManagerInterface, 'add', IBrowserPublish,
     ObjectManagerAdder().__of__)