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

Stephan Richter srichter@cbu.edu
Wed, 27 Mar 2002 10:54:46 -0500


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

Added Files:
      Tag: Zope-3x-branch
	Methods.py __init__.py xmlrpc.zcml 
Log Message:
New Content Objects:

- NaiveFile --> all the data is stored in one string
- File --> Uses a BTree to store the data in chunks (more efficient)
- Image --> Can store and display an image a la Z2 (based on File)
- ZPTPage --> A simple version of ZPT for the content space to allow some 
  dynamics data (please do not use this for scripting)

Also:

- Expansion of supported views
- all edit screens are Formulator supported



=== Added File Zope3/lib/python/Zope/App/OFS/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/03/27 15:54:44 srichter 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/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/03/27 15:54:44 srichter Exp $
"""


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

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

</zopeConfigure>