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
c17f27d8
Commit
c17f27d8
authored
Sep 15, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #1899: fixed migration issue when using export/import for
ZCatalog instances
parent
346f4e7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/PluginIndexes/common/UnIndex.py
lib/python/Products/PluginIndexes/common/UnIndex.py
+17
-2
No files found.
doc/CHANGES.txt
View file @
c17f27d8
...
...
@@ -26,6 +26,9 @@ Zope Changes
Bugs Fixed
- Collector #1899: fixed migration issue when using export/import for
ZCatalog instances
- 'ZPublisher.Test.publish' now takes a 'done_string' argument, which
is written to standard error when the request completes (forward
ported from Zope 2.7 branch).
...
...
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
c17f27d8
...
...
@@ -175,7 +175,15 @@ class UnIndex(SimpleItem):
except
AttributeError
:
# index row is an int
del
self
.
_index
[
entry
]
try
:
del
self
.
_index
[
entry
]
except
KeyError
:
# XXX swallow KeyError because it was probably
# removed and then _length AttributeError raised
pass
if
isinstance
(
self
.
__len__
,
BTrees
.
Length
.
Length
):
self
.
_length
=
self
.
__len__
del
self
.
__len__
self
.
_length
.
change
(
-
1
)
except
:
...
...
@@ -202,7 +210,14 @@ class UnIndex(SimpleItem):
# an IntSet and stuff it in first.
if
indexRow
is
_marker
:
self
.
_index
[
entry
]
=
documentId
self
.
_length
.
change
(
1
)
# XXX _length needs to be migrated to Length object
try
:
self
.
_length
.
change
(
1
)
except
AttributeError
:
if
isinstance
(
self
.
__len__
,
BTrees
.
Length
.
Length
):
self
.
_length
=
self
.
__len__
del
self
.
__len__
self
.
_length
.
change
(
1
)
else
:
try
:
indexRow
.
insert
(
documentId
)
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