Skip to content

Commit

Permalink
changed default value of orphan parameter for <dtml-in> from 3 to 0
Browse files Browse the repository at this point in the history
because it confuses too much newbies (multiple collector entries,
mailing list questions). The default value of 0 is much more straight-
forward.
  • Loading branch information
zopyx committed Aug 14, 2001
1 parent 8b0b597 commit 5578e54
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions DT_In.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
'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.
Expand Down Expand Up @@ -402,8 +402,8 @@
''' #'

__rcs_id__='$Id: DT_In.py,v 1.53 2001/07/02 16:30:46 shane Exp $'
__version__='$Revision: 1.53 $'[11:-2]
__rcs_id__='$Id: DT_In.py,v 1.54 2001/08/14 17:23:58 andreasjung Exp $'
__version__='$Revision: 1.54 $'[11:-2]

import sys
from DT_Util import ParseError, parse_params, name_param, str
Expand Down Expand Up @@ -435,7 +435,7 @@ class InClass:
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='',
Expand Down Expand Up @@ -543,7 +543,7 @@ def renderwb(self, md):
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
Expand Down

0 comments on commit 5578e54

Please sign in to comment.