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

Christian Theune ct@gocept.com
Sat, 18 May 2002 13:02:28 -0400


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

Added Files:
      Tag: Zope-3x-branch
	Methods.py __init__.py xmlrpc.zcml 
Log Message:
Completing OFS.Folder -> OFS.Content.Folder by merging 'ctheune-foldermove-branch' into Zope-3x-branch

=== 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.4.1 2002/05/18 17:02:26 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



=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/__init__.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: __init__.py,v 1.1.4.1 2002/05/18 17:02:26 ctheune Exp $
"""


=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/xmlrpc.zcml ===
<zopeConfigure
   xmlns='http://namespaces.zope.org/zope'
   xmlns:security='http://namespaces.zope.org/security'
   xmlns:xmlrpc='http://namespaces.zope.org/xmlrpc'
>

  <!-- Folder View Directives -->

  <xmlrpc:view name="methods"
    for="Zope.App.OFS.Content.Folder.LoadedFolder.ILoadedFolder."
    factory="Zope.App.OFS.Content.Folder.Views.XMLRPC.Methods." />

  <security:protectClass 
    name="Zope.App.OFS.Content.Folder.Views.XMLRPC.Methods."
    permission_id="Zope.ManageContent" 
    names="objectIds, setLimit, getLimit"/>

</zopeConfigure>