[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XUL - SetLimit.py:1.1.2.1
Christian Theune
ct@gocept.com
Sat, 18 May 2002 06:42:15 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XUL
In directory cvs.zope.org:/tmp/cvs-serv2910
Added Files:
Tag: ctheune-foldermove-branch
SetLimit.py
Log Message:
Renamed SetLimit.py to ../../../Content/Folder/Views/XUL//SetLimit.py
=== Added File Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/XUL/SetLimit.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: SetLimit.py,v 1.1.2.1 2002/05/18 10:42:14 ctheune Exp $
"""
from Zope.App.Formulator.Form import Form
from Zope.PageTemplate.PageTemplateFile import PageTemplateFile
class SetLimit(Form):
__implements__ = (Form.__implements__,)
name = 'limitForm'
title = 'Folder Item Limit Form'
description = ('This edit form allows you to ...')
_fieldViewNames = ['XULLimitFieldView']
template = PageTemplateFile('limit.pt')
action_js = PageTemplateFile('action.pt')
def action(self, limit):
''' '''
self.getContext().setLimit(int(limit))