Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zope-container
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
zope-container
Commits
0ac1d433
Commit
0ac1d433
authored
Jan 29, 2009
by
Wolfgang Schnerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copy over the whole stanza from zope.app.publisher
parent
b9ca9648
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/zope/container/traversal.py
src/zope/container/traversal.py
+4
-3
No files found.
src/zope/container/traversal.py
View file @
0ac1d433
...
@@ -17,8 +17,8 @@ $Id$
...
@@ -17,8 +17,8 @@ $Id$
"""
"""
__docformat__
=
'restructuredtext'
__docformat__
=
'restructuredtext'
from
zope.interface
import
implements
from
zope.interface
import
implements
,
providedBy
from
zope.component
import
queryMultiAdapter
from
zope.component
import
queryMultiAdapter
,
getSiteManager
from
zope.component.interfaces
import
IDefaultViewName
from
zope.component.interfaces
import
IDefaultViewName
from
zope.traversing.interfaces
import
TraversalError
,
ITraversable
from
zope.traversing.interfaces
import
TraversalError
,
ITraversable
from
zope.publisher.interfaces.browser
import
IBrowserPublisher
from
zope.publisher.interfaces.browser
import
IBrowserPublisher
...
@@ -57,7 +57,8 @@ class ContainerTraverser(object):
...
@@ -57,7 +57,8 @@ class ContainerTraverser(object):
"""See zope.publisher.browser.interfaces.IBrowserPublisher"""
"""See zope.publisher.browser.interfaces.IBrowserPublisher"""
# XXX this re-implements zope.app.publisher.browser.getDefaultViewName()
# XXX this re-implements zope.app.publisher.browser.getDefaultViewName()
# to break our only dependency on it.
# to break our only dependency on it.
view_name
=
queryMultiAdapter
((
self
.
context
,
request
),
IDefaultViewName
)
view_name
=
getSiteManager
(
None
).
adapters
.
lookup
(
map
(
providedBy
,
(
self
.
context
,
request
)),
IDefaultViewName
)
if
view_name
is
None
:
if
view_name
is
None
:
raise
ComponentLookupError
(
"Couldn't find default view name"
,
raise
ComponentLookupError
(
"Couldn't find default view name"
,
context
,
request
)
context
,
request
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment