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
8726a792
Commit
8726a792
authored
Jul 15, 1999
by
Michel Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a bug where references were not removed from the unindex when
removing them from the index.
parent
419eb703
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
lib/python/SearchIndex/UnIndex.py
lib/python/SearchIndex/UnIndex.py
+5
-3
lib/python/SearchIndex/UnTextIndex.py
lib/python/SearchIndex/UnTextIndex.py
+3
-1
No files found.
lib/python/SearchIndex/UnIndex.py
View file @
8726a792
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Simple column indices"""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
from
Globals
import
Persistent
import
BTree
...
...
@@ -92,7 +92,7 @@ import IOBTree
from
intSet
import
intSet
import
operator
from
Missing
import
MV
import
string
import
string
,
pdb
ListType
=
type
([])
StringType
=
type
(
's'
)
...
...
@@ -190,6 +190,7 @@ class UnIndex(Persistent):
return
None
set
=
index
.
get
(
k
)
if
set
is
not
None
:
set
.
remove
(
i
)
del
unindex
[
i
]
self
.
_index
=
index
self
.
_unindex
=
unindex
...
...
@@ -231,6 +232,7 @@ class UnIndex(Persistent):
if
request
.
has_key
(
id
+
'_usage'
):
# see if any usage params are sent to field
opr
=
string
.
split
(
string
.
lower
(
request
[
id
+
"_usage"
]),
':'
)
pdb
.
set_trace
()
opr
,
opr_args
=
opr
[
0
],
opr
[
1
:]
if
opr
==
"range"
:
...
...
lib/python/SearchIndex/UnTextIndex.py
View file @
8726a792
...
...
@@ -87,7 +87,7 @@
"""
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
from
Globals
import
Persistent
import
BTree
,
IIBTree
,
IOBTree
,
OIBTree
...
...
@@ -249,6 +249,8 @@ class UnTextIndex(Persistent):
else
:
del
index
[
n
][
i
]
del
self
.
_unindex
[
i
]
self
.
_index
=
index
...
...
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