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
6509c5cf
Commit
6509c5cf
authored
Apr 25, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanup: removed removed SimpleItem as base class, removed
unneeded imports
parent
dd6e5c2f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
25 deletions
+10
-25
lib/python/Products/PluginIndexes/FieldIndex/FieldIndex.py
lib/python/Products/PluginIndexes/FieldIndex/FieldIndex.py
+3
-11
lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
...ython/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
+1
-4
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+2
-4
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
+2
-3
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
+2
-3
No files found.
lib/python/Products/PluginIndexes/FieldIndex/FieldIndex.py
View file @
6509c5cf
...
...
@@ -13,12 +13,8 @@
"""Simple column indices"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Acquisition
import
Implicit
import
BTree
import
IOBTree
from
zLOG
import
LOG
,
ERROR
from
types
import
StringType
,
ListType
,
IntType
,
TupleType
...
...
@@ -30,15 +26,11 @@ import BTrees.Length
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.UnIndex
import
UnIndex
from
Globals
import
Persistent
,
DTMLFile
from
Acquisition
import
Implicit
from
OFS.History
import
Historical
from
OFS.SimpleItem
import
SimpleItem
from
Globals
import
DTMLFile
_marker
=
[]
class
FieldIndex
(
UnIndex
,
Persistent
,
Implicit
,
SimpleItem
):
class
FieldIndex
(
UnIndex
):
"""Field Indexes"""
__implements__
=
(
PluggableIndex
.
PluggableIndexInterface
,)
...
...
lib/python/Products/PluginIndexes/KeywordIndex/KeywordIndex.py
View file @
6509c5cf
...
...
@@ -15,18 +15,15 @@ from zLOG import LOG, ERROR
from
types
import
StringType
from
BTrees.OOBTree
import
OOSet
,
difference
from
Globals
import
Persistent
,
DTMLFile
from
Acquisition
import
Implicit
from
OFS.History
import
Historical
from
OFS.SimpleItem
import
SimpleItem
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.UnIndex
import
UnIndex
_marker
=
[]
class
KeywordIndex
(
UnIndex
,
Persistent
,
Implicit
,
SimpleItem
):
class
KeywordIndex
(
UnIndex
,
Persistent
,
Implicit
):
__implements__
=
(
PluggableIndex
.
PluggableIndexInterface
,)
...
...
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
6509c5cf
...
...
@@ -11,14 +11,13 @@
#
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.2
0 2002/04/24 15:46:09
andreasjung Exp $'
__version__
=
'$Id: PathIndex.py,v 1.2
1 2002/04/25 12:32:13
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Globals
import
Persistent
,
DTMLFile
from
Acquisition
import
Implicit
from
OFS.SimpleItem
import
SimpleItem
from
BTrees.IOBTree
import
IOBTree
from
BTrees.OOBTree
import
OOBTree
,
OOSet
...
...
@@ -29,8 +28,7 @@ import re,warnings
_marker
=
[]
class
PathIndex
(
Persistent
,
Implicit
,
SimpleItem
):
class
PathIndex
(
Persistent
,
Implicit
):
""" A path index stores all path components of the physical
path of an object:
...
...
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
View file @
6509c5cf
...
...
@@ -14,14 +14,13 @@
"""Text Index
"""
__version__
=
'$Revision: 1.
29
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
30
$'
[
11
:
-
2
]
import
re
import
operator
,
warnings
from
Globals
import
Persistent
,
DTMLFile
from
zLOG
import
LOG
,
ERROR
from
OFS.SimpleItem
import
SimpleItem
from
Acquisition
import
Implicit
from
Products.PluginIndexes.common.ResultList
import
ResultList
from
Products.PluginIndexes
import
PluggableIndex
...
...
@@ -52,7 +51,7 @@ operator_dict = {'andnot': AndNot, 'and': And, 'or': Or,
'...'
:
Near
,
'near'
:
Near
,
AndNot
:
AndNot
,
And
:
And
,
Or
:
Or
,
Near
:
Near
}
class
TextIndex
(
Persistent
,
Implicit
,
SimpleItem
):
class
TextIndex
(
Persistent
,
Implicit
):
"""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 @
6509c5cf
...
...
@@ -11,21 +11,20 @@
#
##############################################################################
__version__
=
'$Id: TopicIndex.py,v 1.
6 2002/04/24 15:46:09
andreasjung Exp $'
__version__
=
'$Id: TopicIndex.py,v 1.
7 2002/04/25 12:32:14
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
from
Globals
import
Persistent
,
DTMLFile
from
Acquisition
import
Implicit
from
OFS.SimpleItem
import
SimpleItem
from
BTrees.OOBTree
import
OOBTree
from
BTrees.IIBTree
import
IISet
,
intersection
,
union
import
FilteredSet
_marker
=
[]
class
TopicIndex
(
Persistent
,
Implicit
,
SimpleItem
):
class
TopicIndex
(
Persistent
,
Implicit
):
""" A TopicIndex maintains a set of FilteredSet objects.
Every FilteredSet object consists of an expression and
...
...
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