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
c0c5b904
Commit
c0c5b904
authored
Mar 23, 2001
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merged __len__ bugfix from branch.
parent
b27a4c42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
lib/python/Products/ZCatalog/Catalog.py
lib/python/Products/ZCatalog/Catalog.py
+4
-13
No files found.
lib/python/Products/ZCatalog/Catalog.py
View file @
c0c5b904
...
@@ -476,20 +476,11 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
...
@@ -476,20 +476,11 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
x
=
x
.
__of__
(
self
)
x
=
x
.
__of__
(
self
)
if
hasattr
(
x
,
'unindex_object'
):
if
hasattr
(
x
,
'unindex_object'
):
x
.
unindex_object
(
rid
)
x
.
unindex_object
(
rid
)
# this should never raise an exception
del
data
[
rid
]
for
btree
in
(
data
,
paths
):
del
paths
[
rid
]
try
:
del
uids
[
uid
]
del
btree
[
rid
]
except
KeyError
:
LOG
(
'Catalog'
,
ERROR
,
(
'uncatalogObject unsuccessfully '
'attempted to delete rid %s '
'from paths or data btree.'
%
rid
))
else
:
try
:
self
.
__len__
.
change
(
-
1
)
try
:
self
.
__len__
.
change
(
-
1
)
except
AttributeError
:
pass
# No managed length
except
AttributeError
:
pass
# No managed length
del
uids
[
uid
]
self
.
data
=
data
else
:
else
:
LOG
(
'Catalog'
,
ERROR
,
(
'uncatalogObject unsuccessfully '
LOG
(
'Catalog'
,
ERROR
,
(
'uncatalogObject unsuccessfully '
'attempted to uncatalog an object '
'attempted to uncatalog an object '
...
...
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