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
d0a75ba3
Commit
d0a75ba3
authored
May 29, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add "-b ALL" to built-index all folders.
parent
7306464c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lib/python/Products/ZCTextIndex/tests/mhindex.py
lib/python/Products/ZCTextIndex/tests/mhindex.py
+7
-1
No files found.
lib/python/Products/ZCTextIndex/tests/mhindex.py
View file @
d0a75ba3
...
...
@@ -6,7 +6,7 @@ To index messages from a single folder (messages defaults to 'all'):
mhindex.py [options] -u +folder [messages ...]
To bulk index all messages from several folders:
mhindex.py [options] -b folder ...
mhindex.py [options] -b folder ...
; the folder name ALL means all folders.
To execute a single query:
mhindex.py [options] query
...
...
@@ -419,6 +419,12 @@ class Indexer:
uniqwords
[
word
]
=
uniqwords
.
get
(
word
,
0
)
+
1
def
bulkupdate
(
self
,
args
):
if
not
args
:
print
"No folders specified; use ALL to bulk-index all folders"
return
if
"ALL"
in
args
:
i
=
args
.
index
(
"ALL"
)
args
[
i
:
i
+
1
]
=
self
.
mh
.
listfolders
()
for
folder
in
args
:
if
folder
.
startswith
(
"+"
):
folder
=
folder
[
1
:]
...
...
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