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
f9448c68
Commit
f9448c68
authored
Aug 16, 1999
by
Ken Manheimer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Several spelling/grammar corrections.
parent
79c2587b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
lib/python/Products/ZCatalog/Catalog.py
lib/python/Products/ZCatalog/Catalog.py
+8
-8
No files found.
lib/python/Products/ZCatalog/Catalog.py
View file @
f9448c68
...
...
@@ -96,7 +96,7 @@ from Lazy import LazyMap, LazyFilter, LazyCat
class
NoBrainer
:
""" This is the default class that gets instan
c
iated for records
""" This is the default class that gets instan
t
iated for records
returned by a __getitem__ on the Catalog. By default, no special
methods or attributes are defined.
"""
...
...
@@ -121,8 +121,8 @@ class Catalog(Persistent, Acquisition.Implicit):
""" An Object Catalog
An Object Catalog maintains a table of object metadata, and a
series of managable indexes to quickly search for objects
(references in the metadata) that satify a search query.
series of manag
e
able indexes to quickly search for objects
(references in the metadata) that sati
s
fy a search query.
"""
_v_brains
=
NoBrainer
...
...
@@ -134,12 +134,12 @@ class Catalog(Persistent, Acquisition.Implicit):
self
.
names
=
()
# sequence of column names
self
.
indexes
=
{}
# maping from index name to index object
#
t
he catalog maintains a BTree of object meta_data for
# conv
i
enient display on result pages. meta_data attributes
#
T
he catalog maintains a BTree of object meta_data for
# convenient display on result pages. meta_data attributes
# are turned into brain objects and returned by
# searchResults. The indexing machinery indexes all records
# by an integer id (rid). self.data is a mapping from the
# iteger id to the meta_data, self.uids is a mapping of the
# i
n
teger id to the meta_data, self.uids is a mapping of the
# object unique identifier to the rid, and self.paths is a
# mapping of the rid to the unique identifier.
...
...
@@ -154,7 +154,7 @@ class Catalog(Persistent, Acquisition.Implicit):
def
__getitem__
(
self
,
index
):
"""
r
eturns instances of self._v_brains, or whatever is passed
"""
R
eturns instances of self._v_brains, or whatever is passed
into self.useBrains.
"""
r
=
self
.
_v_result_class
(
self
.
data
[
index
]).
__of__
(
self
.
aq_parent
)
...
...
@@ -320,7 +320,7 @@ class Catalog(Persistent, Acquisition.Implicit):
Catalog identifier
Note, the uid must be the same as when the object was
cataloged, otherwise it will not get removed from the catalog
catalog
u
ed, otherwise it will not get removed from the catalog
"""
...
...
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