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
3657c47f
Commit
3657c47f
authored
Aug 01, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos in the docstring, and also let index()'s arg be optional.
parent
4e7b5aba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lib/python/Products/ZCatalog/regressiontests/loadmail.py
lib/python/Products/ZCatalog/regressiontests/loadmail.py
+10
-7
No files found.
lib/python/Products/ZCatalog/regressiontests/loadmail.py
View file @
3657c47f
...
...
@@ -41,15 +41,16 @@ Commands:
and adding them as documents to the mail folder.
index
threshold
index
[threshold]
Index all of the DTML documents in the database, committing
sub-transactions after each threshold objects.
sub-transactions after each threshold objects. threshold defaults to
1000.
If the threshold is less than the number of messages, then the
size of the temporary sub-transaction commit file is output.
inc mbox start end [threads
wait
]
inc mbox start end [threads
[wait]
]
Incrementally index messages start to end in unix mailbox mbox.
...
...
@@ -73,9 +74,9 @@ Commands:
- The cpu time
- The number of ZODB tra
b
saction conflicts detected when reading
- The number of ZODB tra
n
saction conflicts detected when reading
- The number of ZODB tra
b
saction conflicts detected when committing
- The number of ZODB tra
n
saction conflicts detected when committing
edit edits deletes inserts threads wait
...
...
@@ -266,14 +267,16 @@ def index():
import
AccessControl.SecurityManagement
,
AccessControl
.
SpecialUsers
app
=
Zope
.
app
()
Products
.
ZCatalog
.
ZCatalog
.
manage_addZCatalog
(
app
,
'cat'
,
''
)
app
.
cat
.
threshold
=
atoi
(
sys
.
argv
[
2
])
try
:
app
.
cat
.
threshold
=
atoi
(
sys
.
argv
[
2
])
except
IndexError
:
app
.
cat
.
threashold
=
1000
from
Products.ZCTextIndex.ZCTextIndex
\
import
PLexicon
from
Products.ZCTextIndex.Lexicon
\
import
Splitter
,
CaseNormalizer
app
.
cat
.
_setObject
(
'lex'
,
PLexicon
(
'lex'
,
''
,
Splitter
(),
CaseNormalizer
())
)
...
...
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