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
15df1cd2
Commit
15df1cd2
authored
Nov 13, 2000
by
Christopher Petrilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged in changes from branch to make sure that things get unindexed before
they get reindexed.
parent
368e5e1c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
lib/python/SearchIndex/UnIndex.py
lib/python/SearchIndex/UnIndex.py
+7
-1
lib/python/SearchIndex/UnKeywordIndex.py
lib/python/SearchIndex/UnKeywordIndex.py
+5
-2
lib/python/SearchIndex/UnTextIndex.py
lib/python/SearchIndex/UnTextIndex.py
+6
-2
No files found.
lib/python/SearchIndex/UnIndex.py
View file @
15df1cd2
...
...
@@ -84,7 +84,9 @@
##############################################################################
"""Simple column indices"""
__version__
=
'$Revision: 1.14 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.15 $'
[
11
:
-
2
]
from
Globals
import
Persistent
from
Acquisition
import
Implicit
...
...
@@ -157,6 +159,10 @@ class UnIndex(Persistent, Implicit):
def
index_object
(
self
,
i
,
obj
,
threshold
=
None
):
""" index and object 'obj' with integer id 'i'"""
# Before we do anything, unindex the object we've been handed, as
# we can't depend on the user to do the right thing.
self
.
unindex_object
(
i
)
index
=
self
.
_index
unindex
=
self
.
_unindex
...
...
lib/python/SearchIndex/UnKeywordIndex.py
View file @
15df1cd2
...
...
@@ -16,6 +16,10 @@ class UnKeywordIndex(UnIndex):
def
index_object
(
self
,
i
,
obj
,
threshold
=
None
):
""" index an object 'obj' with integer id 'i'"""
# Before we do anything, unindex the object we've been handed, as
# we can't depend on the user to do the right thing.
self
.
unindex_object
(
i
)
index
=
self
.
_index
unindex
=
self
.
_unindex
...
...
@@ -51,8 +55,7 @@ class UnKeywordIndex(UnIndex):
kws
=
unindex
.
get
(
i
,
None
)
if
kws
is
None
:
LOG
(
'UnKeywordIndex'
,
ERROR
,(
'unindex_object was called with bad '
'integer id %s'
%
str
(
i
)))
return
None
for
kw
in
kws
:
set
=
index
.
get
(
kw
,
None
)
if
set
is
not
None
:
...
...
lib/python/SearchIndex/UnTextIndex.py
View file @
15df1cd2
...
...
@@ -92,7 +92,8 @@ is no longer known.
"""
__version__
=
'$Revision: 1.28 $'
[
11
:
-
2
]
__version__
=
'$Revision: 1.29 $'
[
11
:
-
2
]
from
Globals
import
Persistent
import
BTree
,
IIBTree
,
IOBTree
,
OIBTree
...
...
@@ -226,7 +227,10 @@ class UnTextIndex(Persistent, Implicit):
the next four arguments are default optimizations.
"""
# Before we do anything, unindex the object we've been handed, as
# we can't depend on the user to do the right thing.
self
.
unindex_object
(
i
)
id
=
self
.
id
try
:
## sniff the object for our 'id', the 'document source' of
...
...
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