objects will never provide IDefaultViewName. It's just a marker interface

for strings, i believe...
parent 21d87fc0
...@@ -404,8 +404,7 @@ class BaseRequest: ...@@ -404,8 +404,7 @@ class BaseRequest:
# BrowserDefault returns the object to be published # BrowserDefault returns the object to be published
# (usually self) and a sequence of names to traverse to # (usually self) and a sequence of names to traverse to
# find the method to be published. # find the method to be published.
if (IBrowserPublisher.providedBy(object) or if IBrowserPublisher.providedBy(object):
IDefaultViewName.providedBy(object)):
adapter = object adapter = object
else: else:
adapter = queryMultiAdapter((object, self), adapter = queryMultiAdapter((object, self),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment