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
c78ee0c4
Commit
c78ee0c4
authored
Apr 25, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
waahhhh...re-added SimpleItem as base class as SimpleItem seems to
be needed for the ZMI
parent
6509c5cf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
9 deletions
+14
-9
lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
...ython/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
+2
-1
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+3
-2
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
+3
-2
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
+3
-2
lib/python/Products/PluginIndexes/common/UnIndex.py
lib/python/Products/PluginIndexes/common/UnIndex.py
+3
-2
No files found.
lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
View file @
c78ee0c4
...
...
@@ -19,11 +19,12 @@ from Globals import Persistent, DTMLFile
from
Acquisition
import
Implicit
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.UnIndex
import
UnIndex
_marker
=
[]
class
KeywordIndex
(
UnIndex
,
Persistent
,
Implicit
):
class
KeywordIndex
(
UnIndex
):
__implements__
=
(
PluggableIndex
.
PluggableIndexInterface
,)
...
...
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
c78ee0c4
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.2
1 2002/04/25 12:32:13
andreasjung Exp $'
__version__
=
'$Id: PathIndex.py,v 1.2
2 2002/04/25 12:44:02
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -23,12 +23,13 @@ from BTrees.IOBTree import IOBTree
from
BTrees.OOBTree
import
OOBTree
,
OOSet
from
BTrees.OIBTree
import
OIBTree
from
BTrees.IIBTree
import
IISet
,
difference
,
intersection
,
union
from
OFS.SimpleItem
import
SimpleItem
from
types
import
StringType
,
ListType
,
TupleType
import
re
,
warnings
_marker
=
[]
class
PathIndex
(
Persistent
,
Implicit
):
class
PathIndex
(
Persistent
,
Implicit
,
SimpleItem
):
""" A path index stores all path components of the physical
path of an object:
...
...
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
View file @
c78ee0c4
...
...
@@ -14,7 +14,7 @@
"""Text Index
"""
__version__
=
'$Revision: 1.3
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
1
$'
[
11
:
-
2
]
import
re
...
...
@@ -26,6 +26,7 @@ from Products.PluginIndexes.common.ResultList import ResultList
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
OFS.SimpleItem
import
SimpleItem
from
BTrees.IOBTree
import
IOBTree
from
BTrees.OIBTree
import
OIBTree
from
BTrees.IIBTree
import
IIBTree
,
IIBucket
,
IISet
,
IITreeSet
...
...
@@ -51,7 +52,7 @@ operator_dict = {'andnot': AndNot, 'and': And, 'or': Or,
'...'
:
Near
,
'near'
:
Near
,
AndNot
:
AndNot
,
And
:
And
,
Or
:
Or
,
Near
:
Near
}
class
TextIndex
(
Persistent
,
Implicit
):
class
TextIndex
(
Persistent
,
Implicit
,
SimpleItem
):
"""Full-text index.
There is a ZCatalog UML model that sheds some light on what is
...
...
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
View file @
c78ee0c4
...
...
@@ -11,12 +11,13 @@
#
##############################################################################
__version__
=
'$Id: TopicIndex.py,v 1.
7 2002/04/25 12:32:14
andreasjung Exp $'
__version__
=
'$Id: TopicIndex.py,v 1.
8 2002/04/25 12:44:02
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Globals
import
Persistent
,
DTMLFile
from
OFS.SimpleItem
import
SimpleItem
from
Acquisition
import
Implicit
from
BTrees.OOBTree
import
OOBTree
from
BTrees.IIBTree
import
IISet
,
intersection
,
union
...
...
@@ -24,7 +25,7 @@ import FilteredSet
_marker
=
[]
class
TopicIndex
(
Persistent
,
Implicit
):
class
TopicIndex
(
Persistent
,
Implicit
,
SimpleItem
):
""" A TopicIndex maintains a set of FilteredSet objects.
Every FilteredSet object consists of an expression and
...
...
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
c78ee0c4
...
...
@@ -13,7 +13,7 @@
"""Simple column indices"""
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
2
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Acquisition
import
Implicit
...
...
@@ -25,6 +25,7 @@ from types import StringType, ListType, IntType, TupleType
from
BTrees.OOBTree
import
OOBTree
,
OOSet
from
BTrees.IOBTree
import
IOBTree
from
BTrees.IIBTree
import
IITreeSet
,
IISet
,
union
,
intersection
from
OFS.SimpleItem
import
SimpleItem
import
BTrees.Length
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -32,7 +33,7 @@ import sys
_marker
=
[]
class
UnIndex
(
Persistent
,
Implicit
):
class
UnIndex
(
Persistent
,
Implicit
,
SimpleItem
):
"""UnIndex object interface"""
...
...
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