[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser - IBrowserPublisher.py:1.1.2.1

Jim Fulton jim@zope.com
Fri, 16 Nov 2001 16:49:46 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv24746

Added Files:
      Tag: Zope-3x-branch
	IBrowserPublisher.py 
Log Message:


=== Added File Zope3/lib/python/Zope/Publisher/Browser/IBrowserPublisher.py ===

from Interface import Interface

class IBrowserPublisher(Interface):

    def browser_traverse(request, name):
        """Lookup a name

        The request argument is the publisher request object.
        """

    def browser_default(request):
        """Provide the default object

        The default object is expressed as a (possibly different)
        object and/or additional traversal steps. There are two
        possible return patterns:

        - Return a string. This is an additional name to be traversed
          to.

        - Reurn an object and a sequence of names.  If the sequence of
          names is not empty, then a traversal step is made for each name.

        'browser_default' will be called once for a request.

        Note that if additional traversal steps are indicated, then
        the publisher will try to adjust the base href.
        """