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
f9e3f440
Commit
f9e3f440
authored
Jul 16, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrated into the ZMI
parent
a3ed0554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+9
-1
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
f9e3f440
...
@@ -38,6 +38,7 @@ from Products.PluginIndexes.TextIndex import Splitter
...
@@ -38,6 +38,7 @@ from Products.PluginIndexes.TextIndex import Splitter
import
urllib
,
time
,
sys
import
urllib
,
time
,
sys
import
string
,
logging
import
string
,
logging
from
IZCatalog
import
IZCatalog
from
IZCatalog
import
IZCatalog
from
ProgressHandler
import
ZLogHandler
LOG
=
logging
.
getLogger
(
'Zope.ZCatalog'
)
LOG
=
logging
.
getLogger
(
'Zope.ZCatalog'
)
...
@@ -510,7 +511,9 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -510,7 +511,9 @@ class ZCatalog(Folder, Persistent, Implicit):
message
=
'No items were specified!'
,
message
=
'No items were specified!'
,
action
=
"./manage_catalogIndexes"
,)
action
=
"./manage_catalogIndexes"
,)
self
.
reindexIndex
(
ids
,
REQUEST
)
pgthreshold
=
self
.
_getProgressThreshold
()
handler
=
(
pgthreshold
>
0
)
and
ZLogHandler
(
pgthreshold
)
or
None
self
.
reindexIndex
(
ids
,
REQUEST
,
handler
)
if
REQUEST
and
RESPONSE
:
if
REQUEST
and
RESPONSE
:
RESPONSE
.
redirect
(
RESPONSE
.
redirect
(
...
@@ -886,6 +889,11 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -886,6 +889,11 @@ class ZCatalog(Folder, Persistent, Implicit):
RESPONSE
.
redirect
(
RESPONSE
.
redirect
(
URL1
+
'/manage_main?manage_tabs_message=Catalog%20Changed'
)
URL1
+
'/manage_main?manage_tabs_message=Catalog%20Changed'
)
def
_getProgressThreshold
(
self
):
if
not
hasattr
(
self
,
'pgthreshold'
):
self
.
pgthreshold
=
0
return
self
.
pgthreshold
def
manage_convertBTrees
(
self
,
threshold
=
200
):
def
manage_convertBTrees
(
self
,
threshold
=
200
):
"""Convert the catalog's data structures to use BTrees package"""
"""Convert the catalog's data structures to use BTrees package"""
assert
type
(
threshold
)
is
type
(
0
)
assert
type
(
threshold
)
is
type
(
0
)
...
...
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