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
6c6e563f
Commit
6c6e563f
authored
Oct 31, 2005
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- accept also the z3 version of PluggableIndex interface
parent
7a0266b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lib/python/Products/ZCatalog/ZCatalog.py
lib/python/Products/ZCatalog/ZCatalog.py
+4
-2
No files found.
lib/python/Products/ZCatalog/ZCatalog.py
View file @
6c6e563f
...
...
@@ -35,6 +35,7 @@ from ZODB.POSException import ConflictError
import
transaction
from
Products.PluginIndexes.common.PluggableIndex
\
import
PluggableIndexInterface
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.PluginIndexes.TextIndex
import
Splitter
from
zLOG
import
LOG
from
zope.interface
import
implements
...
...
@@ -933,7 +934,7 @@ class ZCatalog(Folder, Persistent, Implicit):
bases
=
[
str
(
name
)
for
name
in
idx
.
__class__
.
__bases__
]
found
=
False
if
idx
.
meta_type
==
'PathIndex'
:
if
idx
.
meta_type
==
'PathIndex'
:
found
=
True
else
:
for
base
in
bases
:
...
...
@@ -958,6 +959,7 @@ class ZCatalog(Folder, Persistent, Implicit):
if
indexed_attrs
:
setattr
(
new_idx
,
'indexed_attrs'
,
indexed_attrs
)
if
idx
.
meta_type
==
'DateRangeIndex'
:
setattr
(
new_idx
,
'_since_field'
,
since_field
)
setattr
(
new_idx
,
'_until_field'
,
until_field
)
...
...
@@ -984,7 +986,7 @@ class ZCatalog(Folder, Persistent, Implicit):
# this interface by that name. Bleah
products
=
ObjectManager
.
all_meta_types
(
self
,
interfaces
=
(
PluggableIndexInterface
,))
PluggableIndexInterface
,
IPluggableIndex
))
p
=
None
...
...
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