[Zope-Checkins] SVN: Zope/trunk/lib/python/ZPublisher/BaseRequest.py objects will never provide IDefaultViewName. It's just a marker interface

Philipp von Weitershausen philikon at philikon.de
Tue May 2 17:15:19 EDT 2006


Log message for revision 67870:
  objects will never provide IDefaultViewName. It's just a marker interface
  for strings, i believe...
  

Changed:
  U   Zope/trunk/lib/python/ZPublisher/BaseRequest.py

-=-
Modified: Zope/trunk/lib/python/ZPublisher/BaseRequest.py
===================================================================
--- Zope/trunk/lib/python/ZPublisher/BaseRequest.py	2006-05-02 20:59:07 UTC (rev 67869)
+++ Zope/trunk/lib/python/ZPublisher/BaseRequest.py	2006-05-02 21:15:18 UTC (rev 67870)
@@ -404,8 +404,7 @@
                     # BrowserDefault returns the object to be published
                     # (usually self) and a sequence of names to traverse to
                     # find the method to be published.
-                    if (IBrowserPublisher.providedBy(object) or 
-                        IDefaultViewName.providedBy(object)):
+                    if IBrowserPublisher.providedBy(object):
                         adapter = object
                     else:
                         adapter = queryMultiAdapter((object, self), 



More information about the Zope-Checkins mailing list