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
db3603ff
Commit
db3603ff
authored
Oct 02, 2005
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accept also the z3 version of the PluggableIndex interface
parent
9e0e6633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
lib/python/Products/ZCatalog/ZCatalogIndexes.py
lib/python/Products/ZCatalog/ZCatalogIndexes.py
+12
-7
No files found.
lib/python/Products/ZCatalog/ZCatalogIndexes.py
View file @
db3603ff
...
@@ -7,33 +7,37 @@
...
@@ -7,33 +7,37 @@
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
.
#
#
##############################################################################
##############################################################################
"""Virtual container for ZCatalog indexes.
"""
$Id$
$Id$
"""
"""
from
Acquisition
import
Implicit
from
Acquisition
import
Implicit
from
Persistence
import
Persistent
from
Persistence
import
Persistent
from
Globals
import
DTMLFile
,
InitializeClass
from
Globals
import
DTMLFile
,
InitializeClass
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
AccessControl.Permissions
import
manage_zcatalog_indexes
from
AccessControl.Permissions
import
manage_zcatalog_indexes
from
OFS.Folder
import
Folder
from
OFS.Folder
import
Folder
from
OFS.SimpleItem
import
SimpleItem
from
OFS.ObjectManager
import
IFAwareObjectManager
from
OFS.ObjectManager
import
IFAwareObjectManager
from
OFS.SimpleItem
import
SimpleItem
from
Products.PluginIndexes.common.PluggableIndex
\
import
PluggableIndexInterface
from
Products.PluginIndexes.interfaces
import
IPluggableIndex
from
Products.PluginIndexes.common.PluggableIndex
import
PluggableIndexInterface
_marker
=
[]
_marker
=
[]
class
ZCatalogIndexes
(
IFAwareObjectManager
,
Folder
,
Persistent
,
Implicit
):
class
ZCatalogIndexes
(
IFAwareObjectManager
,
Folder
,
Persistent
,
Implicit
):
"""A mapping object, responding to getattr requests by looking up
"""A mapping object, responding to getattr requests by looking up
the requested indexes in an object manager."""
the requested indexes in an object manager."""
# The interfaces we want to show up in our object manager
# The interfaces we want to show up in our object manager
_product_interfaces
=
(
PluggableIndexInterface
,
)
_product_interfaces
=
(
PluggableIndexInterface
,
IPluggableIndex
)
meta_type
=
"ZCatalogIndex"
meta_type
=
"ZCatalogIndex"
manage_options
=
()
manage_options
=
()
...
@@ -113,6 +117,7 @@ class ZCatalogIndexes (IFAwareObjectManager, Folder, Persistent, Implicit):
...
@@ -113,6 +117,7 @@ class ZCatalogIndexes (IFAwareObjectManager, Folder, Persistent, Implicit):
InitializeClass
(
ZCatalogIndexes
)
InitializeClass
(
ZCatalogIndexes
)
class
OldCatalogWrapperObject
(
SimpleItem
,
Implicit
):
class
OldCatalogWrapperObject
(
SimpleItem
,
Implicit
):
manage_options
=
(
manage_options
=
(
...
...
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