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
25a82bf4
Commit
25a82bf4
authored
Aug 17, 1999
by
Amos Latteier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Untabbified.
parent
1c471670
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+8
-8
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
25a82bf4
...
...
@@ -245,9 +245,9 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
def
manage_catalogReindex
(
self
,
REQUEST
):
""" iterate over the whole catalog, deleting inexistent
references and refreshing objects"""
items
=
tuple
(
self
.
_catalog
.
uids
.
items
())
items
=
tuple
(
self
.
_catalog
.
uids
.
items
())
for
path
,
i
in
items
:
for
path
,
i
in
items
:
try
:
obj
=
self
.
getobject
(
i
,
REQUEST
)
except
:
...
...
@@ -361,7 +361,7 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
if
REQUEST
is
None
:
REQUEST
=
self
.
REQUEST
url
=
'%s/%s'
%
(
REQUEST
.
script
,
self
.
getpath
(
rid
))
obj
=
REQUEST
.
resolve_url
(
url
)
obj
=
REQUEST
.
resolve_url
(
url
)
return
obj
def
schema
(
self
):
...
...
@@ -444,7 +444,7 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
## Note: do not use, this method is depricated. Use 'getobject'
def
resolve_url
(
self
,
path
,
REQUEST
):
""" The use of this function is depricated. Use 'getobject' """
""" The use of this function is depricated. Use 'getobject' """
# Attempt to resolve a url into an object in the Zope
# namespace. The url must be a fully-qualified url. The
# method will return the requested object if it is found
...
...
@@ -477,12 +477,12 @@ class ZCatalog(Folder, FindSupport, Persistent, Implicit):
else
:
name
=
''
if
name
!=
os
.
path
.
split
(
path
)[
-
1
]:
result
=
req
.
PARENTS
[
0
]
req
.
close
()
result
=
req
.
PARENTS
[
0
]
req
.
close
()
return
result
req
.
close
()
req
.
close
()
return
object
req
.
close
()
req
.
close
()
raise
rsp
.
errmsg
,
sys
.
exc_value
...
...
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