[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture/tests - Request.py:1.1.2.1

Andreas Jung andreas@digicool.com
Thu, 10 Jan 2002 14:07:17 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture/tests
In directory cvs.zope.org:/tmp/cvs-serv11613/Zope/ComponentArchitecture/tests

Added Files:
      Tag: Zope-3x-branch
	Request.py 
Log Message:
added, refactored Request 


=== Added File Zope3/lib/python/Zope/ComponentArchitecture/tests/Request.py ===
##############################################################################
#
# Copyright (c) 2001 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
# 
##############################################################################
"""

Revision information: $Id: Request.py,v 1.1.2.1 2002/01/10 19:07:16 andreasjung Exp $
"""

class Request:

    def __init__(self,iface, skin):
        self._iface     = iface
        self._skin      = skin

    # Implementation methods for interface
    # Zope.ComponentArchitecture.IViewService.IViewRequest

    def getViewSkin(self):
        '''See interface IViewRequest'''

        return self._skin

    def getViewType(self):
        '''See interface IViewRequest'''
       
        return self._iface