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
be21d3ca
Commit
be21d3ca
authored
May 14, 2002
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added clear method to comply with plug-in index API.
parent
a33a96b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
lib/python/Products/ZCTextIndex/ZCTextIndex.py
lib/python/Products/ZCTextIndex/ZCTextIndex.py
+4
-0
No files found.
lib/python/Products/ZCTextIndex/ZCTextIndex.py
View file @
be21d3ca
...
@@ -115,6 +115,10 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
...
@@ -115,6 +115,10 @@ class ZCTextIndex(Persistent, Acquisition.Implicit, SimpleItem):
get_word
=
self
.
lexicon
.
get_word
get_word
=
self
.
lexicon
.
get_word
return
[
get_word
(
wid
)
for
wid
in
word_ids
]
return
[
get_word
(
wid
)
for
wid
in
word_ids
]
def
clear
(
self
):
"""reinitialize the index"""
self
.
index
=
Index
(
self
.
lexicon
)
def
_get_object_text
(
self
,
obj
):
def
_get_object_text
(
self
,
obj
):
x
=
getattr
(
obj
,
self
.
_fieldname
)
x
=
getattr
(
obj
,
self
.
_fieldname
)
if
callable
(
x
):
if
callable
(
x
):
...
...
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