Skip to content

Commit

Permalink
Adapt to the move of IDefaultViewName from zope.component to zope.pub…
Browse files Browse the repository at this point in the history
…lisher
  • Loading branch information
nadako committed Mar 12, 2009
1 parent f23ff85 commit 2f50f31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CHANGES
0.2.5 (unreleased)
------------------

- ...
- Adapt to the move of IDefaultViewName from zope.component to zope.publisher.

0.2.4 (2009-02-02)
------------------
Expand Down
2 changes: 1 addition & 1 deletion src/z3c/traverser/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ name to traverse and use if there's no more steps to traverse.
Let's provide a view name registered as an IDefaultView adapter. This
is usually done by zope.app.publisher's browser:defaultView directive.

>>> from zope.component.interfaces import IDefaultViewName
>>> from zope.publisher.interfaces import IDefaultViewName
>>> provideAdapter('view.html', (IContent, Interface), IDefaultViewName)

>>> from z3c.traverser.browser import PluggableBrowserTraverser
Expand Down
3 changes: 2 additions & 1 deletion src/z3c/traverser/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
"""
__docformat__ = "reStructuredText"
from zope.component import getSiteManager
from zope.component.interfaces import ComponentLookupError, IDefaultViewName
from zope.component.interfaces import ComponentLookupError
from zope.interface import implements, providedBy
from zope.publisher.interfaces import IDefaultViewName
from zope.publisher.interfaces.browser import IBrowserPublisher

from z3c.traverser.traverser import PluggableTraverser
Expand Down

0 comments on commit 2f50f31

Please sign in to comment.