[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC - Methods.py:1.1.4.3 xmlrpc.zcml:1.1.4.3
Jim Fulton
jim@zope.com
Fri, 7 Jun 2002 10:41:41 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC
In directory cvs.zope.org:/tmp/cvs-serv12187/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC
Modified Files:
Tag: Zope-3x-branch
Methods.py xmlrpc.zcml
Log Message:
Merging in Zope3InWonderland-branch, which implemented the following
proposals (see
http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/OldProposals):
- RenameAllowToRequire
- GroupClassRelatedDirectivesInClassDirective
- ViewInterfaceAndSimplification
- ConsistentUseOfSpacesAsDelimitersInZCMLAttributes
- TwoArgumentViewConstructors
- ImplementsInZCML
- SimpleViewCreationInZCML
- RemoveGetView
- ReplaceProtectWithAllow
- ViewMethodsAsViews
- MergeProtectionAndComponentDefinitions
There were also various security fixes resulting of better integration
of security with components.
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/Methods.py 1.1.4.2 => 1.1.4.3 ===
""" """
- __implements__ = MethodPublisher.__implements__
-
- def __init__(self, folder):
- self._folder = folder
+ def __init__(self, folder, request):
+ self.context = folder
def objectIds(self):
''' '''
- return self.getContext().objectIds()
+ return self.context.objectIds()
def setLimit(self, limit):
''' '''
- return self.getContext().setLimit(limit)
+ return self.context.setLimit(limit)
def getLimit(self):
''' '''
- return self.getContext().getLimit()
-
-
- def getContext( self ):
- return self._folder
+ return self.context.getLimit()
=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XMLRPC/xmlrpc.zcml 1.1.4.2 => 1.1.4.3 ===
<!-- 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
- class="Zope.App.OFS.Content.Folder.Views.XMLRPC.Methods."
- permission_id="Zope.ManageContent"
- names="objectIds, setLimit, getLimit"/>
+ <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>