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
d41de6d5
Commit
d41de6d5
authored
Jan 30, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed some more obsolete code
parent
7570aeaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
lib/python/Products/PluginIndexes/common/UnIndex.py
lib/python/Products/PluginIndexes/common/UnIndex.py
+5
-7
No files found.
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
d41de6d5
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
#
#
# This software is subject to the provisions of the Zope Public License,
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
...
@@ -144,13 +143,13 @@ class UnIndex(SimpleItem):
...
@@ -144,13 +143,13 @@ class UnIndex(SimpleItem):
indexRow
.
remove
(
documentId
)
indexRow
.
remove
(
documentId
)
if
not
indexRow
:
if
not
indexRow
:
del
self
.
_index
[
entry
]
del
self
.
_index
[
entry
]
try
:
self
.
_length
.
change
(
-
1
)
self
.
_length
.
change
(
-
1
)
except
AttributeError
:
pass
# pre-BTrees-module instance
except
AttributeError
:
except
AttributeError
:
# index row is an int
# index row is an int
del
self
.
_index
[
entry
]
del
self
.
_index
[
entry
]
try
:
self
.
_length
.
change
(
-
1
)
self
.
_length
.
change
(
-
1
)
except
AttributeError
:
pass
# pre-BTrees-module instance
except
:
except
:
LOG
.
error
(
'%s: unindex_object could not remove '
LOG
.
error
(
'%s: unindex_object could not remove '
'documentId %s from index %s. This '
'documentId %s from index %s. This '
...
@@ -176,8 +175,7 @@ class UnIndex(SimpleItem):
...
@@ -176,8 +175,7 @@ class UnIndex(SimpleItem):
# an IntSet and stuff it in first.
# an IntSet and stuff it in first.
if
indexRow
is
_marker
:
if
indexRow
is
_marker
:
self
.
_index
[
entry
]
=
documentId
self
.
_index
[
entry
]
=
documentId
try
:
self
.
_length
.
change
(
1
)
self
.
_length
.
change
(
1
)
except
AttributeError
:
pass
# pre-BTrees-module instance
else
:
else
:
try
:
indexRow
.
insert
(
documentId
)
try
:
indexRow
.
insert
(
documentId
)
except
AttributeError
:
except
AttributeError
:
...
...
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