[Zope3-checkins] SVN: Zope3/trunk/src/zope/ The IPresentationService interface was not updated after recent

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Jul 13 18:27:31 EDT 2004


Log message for revision 26512:
  The IPresentationService interface was not updated after recent 
  refactorings. This caused an incorrect implmentation of the local 
  variant, which prohibited the user from registering local presentation 
  services. Fixed the interface and the implementation.
  


Changed:
  U   Zope3/trunk/src/zope/app/presentation/presentation.py
  U   Zope3/trunk/src/zope/component/interfaces.py


-=-
Modified: Zope3/trunk/src/zope/app/presentation/presentation.py
===================================================================
--- Zope3/trunk/src/zope/app/presentation/presentation.py	2004-07-13 22:25:30 UTC (rev 26511)
+++ Zope3/trunk/src/zope/app/presentation/presentation.py	2004-07-13 22:27:31 UTC (rev 26512)
@@ -87,8 +87,8 @@
             return r
         return self.delegate.queryLayer(name)
 
-    def queryView(self, object, name, request,
-                  providing=Interface, default=None):
+    def queryView(self, object, name, request, default=None,
+                  providing=Interface):
         """Look for a named view for a given object and request
 
         The request must implement IPresentationRequest.
@@ -113,8 +113,7 @@
                 return r
         return default
 
-    def queryResource(self, name, request, providing=Interface,
-                      default=None):
+    def queryResource(self, name, request, default=None, providing=Interface):
         """Look up a named resource for a given request
         
         The request must implement IPresentationRequest.

Modified: Zope3/trunk/src/zope/component/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/component/interfaces.py	2004-07-13 22:25:30 UTC (rev 26511)
+++ Zope3/trunk/src/zope/component/interfaces.py	2004-07-13 22:27:31 UTC (rev 26512)
@@ -552,7 +552,7 @@
 class IPresentationService(Interface):
     """A service to manage Presentation components."""
 
-    def queryResource(name, request, providing=Interface, default=None):
+    def queryResource(name, request, default=None, providing=Interface):
         """Look up a named resource for a given request
 
         The request must implement IPresentationRequest.
@@ -560,7 +560,7 @@
         The default will be returned if the component can't be found.
         """
 
-    def queryView(object, name, request, providing=Interface, default=None):
+    def queryView(object, name, request, default=None, providing=Interface):
         """Look for a named view for a given object and request
 
         The request must implement IPresentationRequest.



More information about the Zope3-Checkins mailing list