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
f0c41431
Commit
f0c41431
authored
Jul 25, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge fix from 2.4 branch
parent
2315d98f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+19
-11
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
f0c41431
...
@@ -191,7 +191,7 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -191,7 +191,7 @@ class ZCatalog(Folder, Persistent, Implicit):
(
'Manage ZCatalog Entries'
,
(
'Manage ZCatalog Entries'
,
[
'manage_catalogObject'
,
'manage_uncatalogObject'
,
[
'manage_catalogObject'
,
'manage_uncatalogObject'
,
'catalog_object'
,
'uncatalog_object'
,
'catalog_object'
,
'uncatalog_object'
,
'refreshCatalog'
,
'manage_catalogView'
,
'manage_catalogFind'
,
'manage_catalogView'
,
'manage_catalogFind'
,
'manage_catalogSchema'
,
'manage_catalogIndexes'
,
'manage_catalogSchema'
,
'manage_catalogIndexes'
,
...
@@ -323,16 +323,8 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -323,16 +323,8 @@ class ZCatalog(Folder, Persistent, Implicit):
elapse
=
time
.
time
()
elapse
=
time
.
time
()
c_elapse
=
time
.
clock
()
c_elapse
=
time
.
clock
()
paths
=
tuple
(
self
.
_catalog
.
paths
.
values
())
self
.
_catalog
.
clear
()
for
p
in
paths
:
self
.
refreshCatalog
(
clear
=
1
)
obj
=
self
.
resolve_path
(
p
)
if
not
obj
:
obj
=
self
.
resolve_url
(
p
,
REQUEST
)
if
obj
is
not
None
:
self
.
catalog_object
(
obj
,
p
)
elapse
=
time
.
time
()
-
elapse
elapse
=
time
.
time
()
-
elapse
c_elapse
=
time
.
clock
()
-
c_elapse
c_elapse
=
time
.
clock
()
-
c_elapse
...
@@ -344,8 +336,24 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -344,8 +336,24 @@ class ZCatalog(Folder, Persistent, Implicit):
'Total CPU time: %s'
%
(
`elapse`
,
`c_elapse`
)))
'Total CPU time: %s'
%
(
`elapse`
,
`c_elapse`
)))
def
refreshCatalog
(
self
,
clear
=
0
):
""" re-index everything we can find """
cat
=
self
.
_catalog
paths
=
cat
.
paths
.
values
()
if
clear
:
paths
=
tuple
(
paths
)
cat
.
clear
()
for
p
in
paths
:
obj
=
self
.
resolve_path
(
p
)
if
not
obj
:
obj
=
self
.
resolve_url
(
p
,
self
.
REQUEST
)
if
obj
is
not
None
:
self
.
catalog_object
(
obj
,
p
)
def
manage_catalogClear
(
self
,
REQUEST
=
None
,
RESPONSE
=
None
,
URL1
=
None
):
def
manage_catalogClear
(
self
,
REQUEST
=
None
,
RESPONSE
=
None
,
URL1
=
None
):
""" clears the whole ench
e
lada """
""" clears the whole ench
i
lada """
self
.
_catalog
.
clear
()
self
.
_catalog
.
clear
()
if
REQUEST
and
RESPONSE
:
if
REQUEST
and
RESPONSE
:
...
...
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