[Zope3-checkins] CVS: Zope3/src/zope/app/browser - redirector.py:1.1.2.1

Jim Fulton jim@zope.com
Thu, 17 Apr 2003 06:17:53 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv27463/src/zope/app/browser

Added Files:
      Tag: uk-april-2003-usability-branch
	redirector.py 
Log Message:
Checking Seb's sprint work into a branch

=== Added File Zope3/src/zope/app/browser/redirector.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
from zope.publisher.browser import BrowserView
from zope.component import getDefaultViewName

class DefaultRedirector(BrowserView):

    def show(self):        
        self.request.response.redirect(".")