[Zope3-checkins] CVS: Zope3/src/zope/app/publication -
browser.py:1.12 http.py:1.6 publicationtraverse.py:1.12
xmlrpc.py:1.9 zopepublication.py:1.37
Jim Fulton
jim at zope.com
Fri Mar 5 17:09:45 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/publication
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/publication
Modified Files:
browser.py http.py publicationtraverse.py xmlrpc.py
zopepublication.py
Log Message:
Renamed interface methods:
isImplementedByInstancesOf to implementedBy
isImplementedBy to providedBy
=== Zope3/src/zope/app/publication/browser.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/publication/browser.py:1.11 Mon Nov 3 16:37:58 2003
+++ Zope3/src/zope/app/publication/browser.py Fri Mar 5 17:09:13 2004
@@ -46,7 +46,7 @@
"""Web browser publication handling."""
def getDefaultTraversal(self, request, ob):
- if IBrowserPublisher.isImplementedBy(removeAllProxies(ob)):
+ if IBrowserPublisher.providedBy(removeAllProxies(ob)):
# ob is already proxied, so the result of calling a method will be
return ob.browserDefault(request)
else:
=== Zope3/src/zope/app/publication/http.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/publication/http.py:1.5 Sat Mar 29 12:08:08 2003
+++ Zope3/src/zope/app/publication/http.py Fri Mar 5 17:09:13 2004
@@ -26,7 +26,7 @@
def callObject(self, request, ob):
# Exception handling, dont try to call request.method
- if not IHTTPException.isImplementedBy(ob):
+ if not IHTTPException.providedBy(ob):
ob = getView(ob, request.method, request)
ob = getattr(ob, request.method)
return mapply(ob, request.getPositionalArguments(), request)
=== Zope3/src/zope/app/publication/publicationtraverse.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/publication/publicationtraverse.py:1.11 Sun Sep 21 13:31:56 2003
+++ Zope3/src/zope/app/publication/publicationtraverse.py Fri Mar 5 17:09:13 2004
@@ -68,7 +68,7 @@
if nm == '.':
return ob
- if IPublishTraverse.isImplementedBy(removeAllProxies(ob)):
+ if IPublishTraverse.providedBy(removeAllProxies(ob)):
ob2 = ob.publishTraverse(request, nm)
else:
adapter = queryView(ob, '_traverse', request, self) # marker
=== Zope3/src/zope/app/publication/xmlrpc.py 1.8 => 1.9 ===
--- Zope3/src/zope/app/publication/xmlrpc.py:1.8 Sun Sep 21 13:31:56 2003
+++ Zope3/src/zope/app/publication/xmlrpc.py Fri Mar 5 17:09:13 2004
@@ -54,7 +54,7 @@
view_name = view_name[2:]
# If ob is a presentation object, then we just get the method
- if (IXMLRPCPresentation.isImplementedBy(naked_ob) and
+ if (IXMLRPCPresentation.providedBy(naked_ob) and
hasattr(ob, view_name)
):
return ProxyFactory(getattr(ob, view_name))
=== Zope3/src/zope/app/publication/zopepublication.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/publication/zopepublication.py:1.36 Fri Feb 20 17:02:30 2004
+++ Zope3/src/zope/app/publication/zopepublication.py Fri Mar 5 17:09:13 2004
@@ -78,12 +78,12 @@
get_transaction().begin()
def _maybePlacefullyAuthenticate(self, request, ob):
- if not IUnauthenticatedPrincipal.isImplementedBy(request.user):
+ if not IUnauthenticatedPrincipal.providedBy(request.user):
# We've already got an authenticated user. There's nothing to do.
# Note that beforeTraversal guarentees that user is not None.
return
- if not ISite.isImplementedBy(ob):
+ if not ISite.providedBy(ob):
# We won't find an authentication service here, so give up.
return
@@ -153,7 +153,7 @@
def afterCall(self, request):
txn = get_transaction()
- if IHTTPRequest.isImplementedBy(request):
+ if IHTTPRequest.providedBy(request):
txn.note(request["PATH_INFO"])
# XXX not sure why you would use id vs title or description
txn.setUser(request.user.getId())
@@ -334,7 +334,7 @@
def beginErrorHandlingTransaction(request, note):
get_transaction().begin()
- if IHTTPRequest.isImplementedBy(request):
+ if IHTTPRequest.providedBy(request):
pathnote = '%s ' % request["PATH_INFO"]
else:
pathnote = ''
More information about the Zope3-Checkins
mailing list