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
1510afd1
Commit
1510afd1
authored
Nov 01, 2001
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved 'size' to after 'length' since almost everyone wants 'length', not 'size'.
parent
3b52b2fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lib/python/Products/PageTemplates/help/ZTUtils.py
lib/python/Products/PageTemplates/help/ZTUtils.py
+5
-5
No files found.
lib/python/Products/PageTemplates/help/ZTUtils.py
View file @
1510afd1
...
...
@@ -26,13 +26,10 @@ class Batch:
Batches have these public attributes:
size -- The desired size. Note that this can be different than the
actual length of the batch due to orphan settings.
start -- The first element number (counting from 1).
first -- The first element index (counting from 0
, this is start -
1)
.
first -- The first element index (counting from 0
). Note that this
is that same as start - 1
.
end -- The last element number (counting from 1).
...
...
@@ -46,6 +43,9 @@ class Batch:
length -- The actual length of the batch. Note that this can be
different than size due to orphan settings.
size -- The desired size. Note that this can be different than the
actual length of the batch due to orphan settings.
previous -- The previous batch or None if this is the first batch.
next -- The next batch or None if this is the last batch.
...
...
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