[Zope-Checkins] CVS: Zope/lib/python/DocumentTemplate - DT_In.py:1.54
Andreas Jung
andreas@zope.com
Tue, 14 Aug 2001 13:23:58 -0400
Update of /cvs-repository/Zope/lib/python/DocumentTemplate
In directory cvs.zope.org:/tmp/cvs-serv24847/DocumentTemplate
Modified Files:
DT_In.py
Log Message:
changed default value of orphan parameter for <dtml-in> from 3 to 0
because it confuses too much newbies (multiple collector entries,
mailing list questions). The default value of 0 is much more straight-
forward.
=== Zope/lib/python/DocumentTemplate/DT_In.py 1.53 => 1.54 ===
'orphan' -- The desired minimum number of objects to be
displayed. The default value for this
- parameter is 3.
+ parameter is 0.
'overlap' -- The desired overlap between batches. The
default is no overlap.
@@ -435,7 +435,7 @@
def __init__(self, blocks):
tname, args, section = blocks[0]
args=parse_params(args, name='', start='1',end='-1',size='10',
- orphan='3',overlap='1',mapping=1,
+ orphan='0',overlap='1',mapping=1,
skip_unauthorized=1,
previous=1, next=1, expr='', sort='',
reverse=1, sort_expr='', reverse_expr='',
@@ -543,7 +543,7 @@
end=int_param(params,md,'end',0)
size=int_param(params,md,'size',0)
overlap=int_param(params,md,'overlap',0)
- orphan=int_param(params,md,'orphan','3')
+ orphan=int_param(params,md,'orphan','0')
start,end,sz=opt(start,end,size,orphan,sequence)
if params.has_key('next'): next=1
if params.has_key('previous'): previous=1