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
a3ed0554
Commit
a3ed0554
authored
Jul 16, 2004
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added ZMI configuration option for log reindexing progress
parent
79d3b778
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+11
-0
lib/python/Products/ZCatalog/dtml/catalogAdvanced.dtml
lib/python/Products/ZCatalog/dtml/catalogAdvanced.dtml
+13
-0
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
a3ed0554
...
@@ -127,6 +127,7 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -127,6 +127,7 @@ class ZCatalog(Folder, Persistent, Implicit):
'manage_catalogClear'
,
'manage_addColumn'
,
'manage_delColumn'
,
'manage_catalogClear'
,
'manage_addColumn'
,
'manage_delColumn'
,
'manage_addIndex'
,
'manage_delIndex'
,
'manage_clearIndex'
,
'manage_addIndex'
,
'manage_delIndex'
,
'manage_clearIndex'
,
'manage_reindexIndex'
,
'manage_main'
,
'availableSplitters'
,
'manage_reindexIndex'
,
'manage_main'
,
'availableSplitters'
,
'manage_setProgress'
,
# these two are deprecated:
# these two are deprecated:
'manage_delColumns'
,
'manage_deleteIndex'
'manage_delColumns'
,
'manage_deleteIndex'
...
@@ -875,6 +876,16 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -875,6 +876,16 @@ class ZCatalog(Folder, Persistent, Implicit):
'%s unchanged.'
%
(
len
(
fixed
),
len
(
removed
),
unchanged
),
'%s unchanged.'
%
(
len
(
fixed
),
len
(
removed
),
unchanged
),
action
=
'./manage_main'
)
action
=
'./manage_main'
)
def
manage_setProgress
(
self
,
pgthreshold
=
0
,
RESPONSE
=
None
,
URL1
=
None
):
"""Set parameter to perform logging of reindexing operations very
'pgthreshold' objects
"""
self
.
pgthreshold
=
pgthreshold
if
RESPONSE
:
RESPONSE
.
redirect
(
URL1
+
'/manage_main?manage_tabs_message=Catalog%20Changed'
)
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
)
...
...
lib/python/Products/ZCatalog/dtml/catalogAdvanced.dtml
View file @
a3ed0554
...
@@ -36,6 +36,19 @@
...
@@ -36,6 +36,19 @@
</form>
</form>
</td>
</td>
</tr>
</tr>
<tr>
<td align="left" valign="top">
<p class="form-help">Log progress of reindexing every N objects to the Zope logger
</p>
</td>
<td align="right" valign="top">
<form action="&dtml-URL1;">
<input type="text" name="pgthreshold:int" value="<dtml-var pgthreshold missing="0">">
<input class="form-element" type="submit"
name="manage_setProgress:method" value=" Change ">
</form>
</td>
</tr>
<tr>
<tr>
<td>
<td>
...
...
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