[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC - Methods.py:1.2 __init__.py:1.2 xmlrpc.zcml:1.2
Jim Fulton
jim@zope.com
Mon, 10 Jun 2002 19:28:32 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv17445/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC
Added Files:
Methods.py __init__.py xmlrpc.zcml
Log Message:
Merged Zope-3x-branch into newly forked Zope3 CVS Tree.
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/Methods.py 1.1 => 1.2 ===
+#
+# 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$
+"""
+
+from Zope.Publisher.XMLRPC.MethodPublisher import MethodPublisher
+from Zope.Publisher.XMLRPC.IXMLRPCPublisher import IXMLRPCPublisher
+from Zope.App.PageTemplate import ViewPageTemplateFile
+
+
+class Methods(MethodPublisher):
+ """ """
+
+
+ def __init__(self, folder, request):
+ self.context = folder
+
+
+ def objectIds(self):
+ ''' '''
+ return self.context.objectIds()
+
+
+ def setLimit(self, limit):
+ ''' '''
+ return self.context.setLimit(limit)
+
+
+ def getLimit(self):
+ ''' '''
+ return self.context.getLimit()
+
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/__init__.py 1.1 => 1.2 ===
+#
+# 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$
+"""
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/xmlrpc.zcml 1.1 => 1.2 ===
+ 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."
+ permission="Zope.ManageContent"
+ allowed_attributes="objectIds setLimit getLimit"
+ factory="Zope.App.OFS.Content.Folder.Views.XMLRPC.Methods." />
+
+</zopeConfigure>