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
799dd03b
Commit
799dd03b
authored
Apr 11, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PathIndex returned wrong number of indexed objects
parent
6b94ad72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+2
-8
No files found.
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
799dd03b
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.1
7 2002/04/02 14:57:2
0 andreasjung Exp $'
__version__
=
'$Id: PathIndex.py,v 1.1
8 2002/04/11 19:26:4
0 andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -255,13 +255,7 @@ class PathIndex(PluggableIndex.PluggableIndex, Persistent,
def
numObjects
(
self
):
""" return the number of indexed objects"""
x
=
IISet
()
for
k
,
v
in
self
.
_index
.
items
():
for
level
,
ids
in
v
.
items
():
x
=
union
(
x
,
ids
)
return
len
(
x
)
return
len
(
self
.
_unindex
)
def
keys
(
self
):
...
...
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