Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
56044b7e
Commit
56044b7e
authored
Oct 02, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed the batch orphan default from 3 to 0, bringing it in line with the dtml-in orphan default
parent
bb3c5d9f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
lib/python/ZTUtils/Batch.py
lib/python/ZTUtils/Batch.py
+3
-3
lib/python/ZTUtils/CHANGES.txt
lib/python/ZTUtils/CHANGES.txt
+7
-0
lib/python/ZTUtils/tests/testBatch.py
lib/python/ZTUtils/tests/testBatch.py
+1
-1
No files found.
lib/python/ZTUtils/Batch.py
View file @
56044b7e
...
...
@@ -84,8 +84,8 @@
##############################################################################
__doc__
=
'''Batch class, for iterating over a sequence in batches
$Id: Batch.py,v 1.
2 2001/04/27 20:51:20 evan
Exp $'''
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
$Id: Batch.py,v 1.
3 2001/10/02 18:34:30 amos
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
from
ExtensionClass
import
Base
...
...
@@ -111,7 +111,7 @@ class Batch(Base):
next
=
LazyNextBatch
()
def
__init__
(
self
,
sequence
,
size
,
start
=
0
,
end
=
0
,
orphan
=
3
,
overlap
=
0
):
orphan
=
0
,
overlap
=
0
):
start
=
start
+
1
...
...
lib/python/ZTUtils/CHANGES.txt
View file @
56044b7e
...
...
@@ -4,6 +4,13 @@ ZTUtils changes
Change information for previous versions can be found in the
file HISTORY.txt.
Version XXX
Bugs Fixed
- Changed the batch orphan default from 3 to 0. This mirrors
the change in the orphan default in dtml-in.
Version 1.1.1
Features Added
...
...
lib/python/ZTUtils/tests/testBatch.py
View file @
56044b7e
...
...
@@ -30,7 +30,7 @@ class BatchTests(unittest.TestCase):
def
testOrphan
(
self
):
'''Test orphan collection'''
for
bsize
in
(
6
,
7
):
b
=
Batch
(
range
(
bsize
),
5
)
b
=
Batch
(
range
(
bsize
),
5
,
orphan
=
3
)
assert
b
.
next
is
None
assert
len
(
b
)
==
bsize
b
=
Batch
(
range
(
8
),
5
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment