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
96e42254
Commit
96e42254
authored
Jan 29, 2009
by
Wolfgang Schnerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed dependency to zope.app.publisher
parent
189cade4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
setup.py
setup.py
+0
-1
src/zope/container/traversal.py
src/zope/container/traversal.py
+7
-1
No files found.
setup.py
View file @
96e42254
...
...
@@ -61,7 +61,6 @@ setup(name='zope.container',
install_requires
=
[
'setuptools'
,
'zope.interface'
,
'zope.app.publisher'
,
'zope.cachedescriptors'
,
'zope.dottedname'
,
'zope.schema'
,
...
...
src/zope/container/traversal.py
View file @
96e42254
...
...
@@ -19,6 +19,7 @@ __docformat__ = 'restructuredtext'
from
zope.interface
import
implements
from
zope.component
import
queryMultiAdapter
from
zope.component.interfaces
import
IDefaultViewName
from
zope.traversing.interfaces
import
TraversalError
,
ITraversable
from
zope.publisher.interfaces.browser
import
IBrowserPublisher
from
zope.publisher.interfaces.xmlrpc
import
IXMLRPCPublisher
...
...
@@ -55,7 +56,12 @@ class ContainerTraverser(object):
def
browserDefault
(
self
,
request
):
"""See zope.publisher.browser.interfaces.IBrowserPublisher"""
view_name
=
getDefaultViewName
(
self
.
context
,
request
)
# XXX this re-implements zope.app.publisher.browser.getDefaultViewName()
# to break our only dependency on it.
view_name
=
queryMultiAdapter
((
self
.
context
,
request
),
IDefaultViewName
)
if
view_name
is
None
:
raise
ComponentLookupError
(
"Couldn't find default view name"
,
context
,
request
)
view_uri
=
"@@%s"
%
view_name
return
self
.
context
,
(
view_uri
,)
...
...
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