[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Folder/Views/SOAP - Methods.py:1.1.2.1 __init__.py:1.1.2.1 soap.zcml:1.1.2.1

Stephan Richter srichter@cbu.edu
Wed, 13 Mar 2002 05:57:30 -0500


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

Added Files:
      Tag: srichter-OFS_Formulator-branch
	Methods.py __init__.py soap.zcml 
Log Message:
- Added some more tests. Won;t do more, since Publisher is being redesigned
  later this week. I will wait until then.

- Added preliminary SOAP support, so we can test Mozilla's SOAP 
  capabilities. Unfortunately, soaplib is very old; I will look into using 
  SOAPpy instead. It seems fairly complete.


=== Added File Zope3/lib/python/Zope/App/OFS/Folder/Views/SOAP/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/03/13 10:57:28 srichter Exp $
"""

from Zope.Publisher.SOAP.MethodPublisher import MethodPublisher


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/Folder/Views/SOAP/__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.2.1 2002/03/13 10:57:28 srichter Exp $
"""


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

  <!-- Folder View Directives -->

  <soap:defaultView name="methods"
    for="Zope.App.OFS.Folder.LoadedFolder.ILoadedFolder."
    factory="Zope.App.OFS.Folder.Views.SOAP.Methods." />

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

</zopeConfigure>