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
7a57f1df
Commit
7a57f1df
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
b2f567b3
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 @
7a57f1df
...
@@ -42,6 +42,9 @@ Zope Changes
...
@@ -42,6 +42,9 @@ Zope Changes
Bugs Fixed
Bugs Fixed
- Collector #1899: fixed migration issue when using export/import for
ZCatalog instances
- Collector #1871: Applied patch to support lists with records using
- Collector #1871: Applied patch to support lists with records using
ZTUtils.make_query()
ZTUtils.make_query()
...
...
lib/python/Products/PluginIndexes/common/UnIndex.py
View file @
7a57f1df
...
@@ -175,7 +175,15 @@ class UnIndex(SimpleItem):
...
@@ -175,7 +175,15 @@ class UnIndex(SimpleItem):
except
AttributeError
:
except
AttributeError
:
# index row is an int
# 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
)
self
.
_length
.
change
(
-
1
)
except
:
except
:
...
@@ -202,7 +210,14 @@ class UnIndex(SimpleItem):
...
@@ -202,7 +210,14 @@ 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
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
:
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