[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser - LoadedFolderContents.py:1.1.2.1
Christian Theune
ct@gocept.com
Sat, 18 May 2002 06:30:32 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv32097
Added Files:
Tag: ctheune-foldermove-branch
LoadedFolderContents.py
Log Message:
Renamed LoadedFolderContents.py to ../../../Content/Folder/Views/Browser//LoadedFolderContents.py
=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/LoadedFolderContents.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.
#
##############################################################################
"""
Define view component for loaded folder contents.
$Id: LoadedFolderContents.py,v 1.1.2.1 2002/05/18 10:30:32 ctheune Exp $
"""
from Zope.PageTemplate.PageTemplateFile import PageTemplateFile
from FolderContents import FolderContents
class LoadedFolderContents( FolderContents ):
index = PageTemplateFile( 'loaded_folder_contents.pt' )
# OrderedFolder functionality
def moveObjectsUp(self, ids, REQUEST = None):
'''See interface IOrderedContainer'''
self.getContext().moveObjectsUp(ids)
if REQUEST is not None:
# for unit tests
REQUEST.getResponse().redirect(REQUEST.getURL(1))
def moveObjectsDown(self, ids, REQUEST = None):
'''See interface IOrderedContainer'''
self.getContext().moveObjectsDown(ids)
if REQUEST is not None:
# for unit tests
REQUEST.getResponse().redirect(REQUEST.getURL(1))
def moveObjectsToTop(self, ids, REQUEST = None):
'''See interface IOrderedContainer'''
self.getContext().moveObjectsToTop(ids)
if REQUEST is not None:
# for unit tests
REQUEST.getResponse().redirect(REQUEST.getURL(1))
def moveObjectsToBottom(self, ids, REQUEST = None):
'''See interface IOrderedContainer'''
self.getContext().moveObjectsToBottom(ids)
if REQUEST is not None:
# for unit tests
REQUEST.getResponse().redirect(REQUEST.getURL(1))