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
b2b44418
Commit
b2b44418
authored
Aug 16, 2005
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Catalog.clear(): fixed handling of _length attribute (caused import
problems for some .zexp files e.g. Squishdot instances)
parent
9fc92426
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/ZCatalog/Catalog.py
lib/python/Products/ZCatalog/Catalog.py
+1
-2
No files found.
doc/CHANGES.txt
View file @
b2b44418
...
@@ -49,6 +49,9 @@ Zope Changes
...
@@ -49,6 +49,9 @@ Zope Changes
Bugs fixed
Bugs fixed
- Catalog.clear(): fixed handling of _length attribute (caused import
problems for some .zexp files e.g. Squishdot instances)
- Collector #1773: by default user accounts are now encrypted for
- Collector #1773: by default user accounts are now encrypted for
security reasons
security reasons
...
...
lib/python/Products/ZCatalog/Catalog.py
View file @
b2b44418
...
@@ -78,7 +78,6 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
...
@@ -78,7 +78,6 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
# object unique identifier to the rid, and self.paths is a
# object unique identifier to the rid, and self.paths is a
# mapping of the rid to the unique identifier.
# mapping of the rid to the unique identifier.
self
.
_length
=
BTrees
.
Length
.
Length
()
self
.
clear
()
self
.
clear
()
if
brains
is
not
None
:
if
brains
is
not
None
:
...
@@ -103,7 +102,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
...
@@ -103,7 +102,7 @@ class Catalog(Persistent, Acquisition.Implicit, ExtensionClass.Base):
self
.
data
=
IOBTree
()
# mapping of rid to meta_data
self
.
data
=
IOBTree
()
# mapping of rid to meta_data
self
.
uids
=
OIBTree
()
# mapping of uid to rid
self
.
uids
=
OIBTree
()
# mapping of uid to rid
self
.
paths
=
IOBTree
()
# mapping of rid to uid
self
.
paths
=
IOBTree
()
# mapping of rid to uid
self
.
_length
.
set
(
0
)
self
.
_length
=
BTrees
.
Length
.
Length
(
)
for
index
in
self
.
indexes
.
keys
():
for
index
in
self
.
indexes
.
keys
():
self
.
getIndex
(
index
).
clear
()
self
.
getIndex
(
index
).
clear
()
...
...
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