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
dc62f06a
Commit
dc62f06a
authored
Apr 24, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added getId() (added to interface specs)
parent
77f7f95c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
+4
-2
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
+2
-1
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
+3
-1
lib/python/Products/PluginIndexes/common/UnIndex.py
lib/python/Products/PluginIndexes/common/UnIndex.py
+3
-1
No files found.
lib/python/Products/PluginIndexes/PathIndex/PathIndex.py
View file @
dc62f06a
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Id: PathIndex.py,v 1.
19 2002/04/24 15:42:16
andreasjung Exp $'
__version__
=
'$Id: PathIndex.py,v 1.
20 2002/04/24 15:46:09
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -67,7 +67,9 @@ class PathIndex(Persistent, Implicit, SimpleItem):
self
.
clear
()
def
getId
(
self
):
return
self
.
id
def
clear
(
self
):
""" clear everything """
...
...
lib/python/Products/PluginIndexes/TextIndex/TextIndex.py
View file @
dc62f06a
...
...
@@ -14,7 +14,7 @@
"""Text Index
"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
9
$'
[
11
:
-
2
]
import
re
...
...
@@ -130,6 +130,7 @@ class TextIndex(Persistent, Implicit, SimpleItem):
self
.
vocabulary_id
=
'__userdefined__'
def
getId
(
self
):
return
self
.
id
def
getLexicon
(
self
,
vocab_id
=
None
):
"""Return the Lexicon in use. Removed lots of stinking code"""
...
...
lib/python/Products/PluginIndexes/TopicIndex/TopicIndex.py
View file @
dc62f06a
...
...
@@ -11,7 +11,7 @@
#
##############################################################################
__version__
=
'$Id: TopicIndex.py,v 1.
5 2002/04/24 15:42:16
andreasjung Exp $'
__version__
=
'$Id: TopicIndex.py,v 1.
6 2002/04/24 15:46:09
andreasjung Exp $'
from
Products.PluginIndexes
import
PluggableIndex
from
Products.PluginIndexes.common.util
import
parseIndexRequest
...
...
@@ -55,6 +55,8 @@ class TopicIndex(Persistent, Implicit, SimpleItem):
self
.
defaultOperator
=
'or'
def
getId
(
self
):
return
self
.
id
def
clear
(
self
):
""" clear everything """
self
.
filteredSets
=
OOBTree
()
...
...
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
dc62f06a
...
...
@@ -13,7 +13,7 @@
"""Simple column indices"""
__version__
=
'$Revision: 1.1
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
1
$'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Acquisition
import
Implicit
...
...
@@ -80,6 +80,8 @@ class UnIndex(Persistent, Implicit):
self
.
__len__
=
BTrees
.
Length
.
Length
()
# see __len__ method docstring
self
.
clear
()
def
getId
(
self
):
return
self
.
id
def
clear
(
self
):
# inplace opportunistic conversion from old-style to new style BTrees
try
:
self
.
__len__
.
set
(
0
)
...
...
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