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
3ac4c21d
Commit
3ac4c21d
authored
Sep 24, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #593: fix for the fix: we must return an IISet() instance
instead of the complete IOBTree
parent
b4b4275e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+6
-4
No files found.
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
3ac4c21d
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
##############################################################################
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.2
5 2002/08/14 22:19:31 mj
Exp $'
__version__
=
'$Id: PathIndex.py,v 1.2
6 2002/09/24 11:03:24 andreasjung
Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
@@ -190,8 +190,8 @@ class PathIndex(Persistent, Implicit, SimpleItem):
...
@@ -190,8 +190,8 @@ class PathIndex(Persistent, Implicit, SimpleItem):
relative URL or a part of a relative URL or
relative URL or a part of a relative URL or
a tuple (path,level).
a tuple (path,level).
level
>=
0 starts searching at the given level
level
>=
0 starts searching at the given level
level
<0
not implemented yet
level
< 0
not implemented yet
"""
"""
if
isinstance
(
path
,
StringType
):
if
isinstance
(
path
,
StringType
):
...
@@ -202,8 +202,10 @@ class PathIndex(Persistent, Implicit, SimpleItem):
...
@@ -202,8 +202,10 @@ class PathIndex(Persistent, Implicit, SimpleItem):
comps
=
self
.
splitPath
(
path
)
comps
=
self
.
splitPath
(
path
)
if
len
(
comps
)
==
0
:
return
IISet
(
self
.
_unindex
.
keys
())
if
level
>=
0
:
if
level
>=
0
:
results
=
[]
results
=
[]
for
i
in
range
(
len
(
comps
)):
for
i
in
range
(
len
(
comps
)):
...
...
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