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
d7e8aaf3
Commit
d7e8aaf3
authored
Jun 25, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated README.txt
parent
ed876cd0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
81 deletions
+18
-81
lib/python/Products/ZCatalog/README.txt
lib/python/Products/ZCatalog/README.txt
+18
-81
No files found.
lib/python/Products/ZCatalog/README.txt
View file @
d7e8aaf3
Site Index
A Site Index collects information about Zope objects. It allows
indexes of Zope objects to be searched.
To search a site index, use the same conventions as a Tabula. Use
either 'DP_Search_Results' or '__call__' with REQUEST and/or kw
arguments.
Basic indexed meta data includes
id -- The object's id
url -- A url for the object, eg '/MyFolder/MyDoc'
title -- The object's title
meta_type -- The object's meta type
last_modified -- The object's bobobase_lastmodification_time
text_content -- Text of DTML Documents and Methods
All indexes are FieldIndexes, except text_content which is a TextIndex.
How to Use the Catalog
To use a Catalog, create a Catalog object and add items to the catalog.
You can use a Find like interface to search for interesting objects
to add. The catalog does not detect changes to indexed objects, so you
should periodically update the catalog index.
To search the catalog, first create a report form by selecting the 'Report'
for the product add list. After you create your report you can test it by
viewing it.
Next create a search form by selecting 'Search Form' form the product add
list. The wizard will allow you to tailor the search form in a number of
ways. You should indicate that the search form is to use the report that
you previously created.
Now you can search your Zope site by viewing the search page and filling
out the search form.
Cataloging Interface
Zope objects can define additional attributes to be cataloged. When
an object is added to the catalog that specifies additional cataloging
information, additional columns and indexes will be added to the catalog
as needed.
To define additinal cataloging data use the 'ZopeCatalogAttributes'
method. The method should return a tuple or list of dictionaries which
describe the cataloged attributes::
{'name': name, 'attr': attr, 'type': type, 'index': indexType}
Where
'name' is the name of the index.
'attr' is the name of a method or attribute to query.
'type' is a type code ['s'|'t'|'i'|'f'|'d'|'b']
'index' is the index type ['FieldIndex'|'TextIndex'|'KeywordIndex']
Note that problems can occurr if an object tries to define an index that
already exists, but is of a different type or index type. Be careful.
Note: This interface is provisional and subject to change.
ZCatalog
This is the ZCatalog product for the Z Object Publishing
Environment.
****** IMPORTANT ******
This product contains no binaries, and should install
identically on all platforms.
Installation
o Extract the distribution file into the top-level
directory of your Zope installation.
o Restart your Zope installation.
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