[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC - Methods.py:1.1.2.1

Christian Theune ct@gocept.com
Sat, 18 May 2002 06:40:50 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv2606

Added Files:
      Tag: ctheune-foldermove-branch
	Methods.py 
Log Message:
Renamed Methods.py to ../../../Content/Folder/Views/XMLRPC//Methods.py

=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/Methods.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.
# 
##############################################################################
"""

$Id: Methods.py,v 1.1.2.1 2002/05/18 10:40:50 ctheune Exp $
"""

from Zope.Publisher.XMLRPC.MethodPublisher import MethodPublisher
from Zope.Publisher.XMLRPC.IXMLRPCPublisher import IXMLRPCPublisher
from Zope.PageTemplate.PageTemplateFile import PageTemplateFile


class Methods(MethodPublisher):
    """ """

    __implements__ = MethodPublisher.__implements__

        
    def __init__(self, folder):
        self._folder = folder


    def objectIds(self):
        ''' '''
        return self.getContext().objectIds()


    def setLimit(self, limit):
        ''' '''
        return self.getContext().setLimit(limit)


    def getLimit(self):
        ''' '''
        return self.getContext().getLimit()


    def getContext( self ):
        return self._folder