Skip to content

Commit

Permalink
Polish up API docs, fixed constructors. added record objects (I fergot)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Pelletier committed Jul 3, 2000
1 parent 56aca3f commit 3ed7264
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 22 deletions.
20 changes: 12 additions & 8 deletions help/Vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,17 @@
#
##############################################################################

def manage_addVocabulary(self, id, title, globbing=None, REQUEST=None):
"""
Add a Vocabulary object to an ObjectManager.
"""





class Vocabulary:
"""
Expand All @@ -92,14 +103,13 @@ class Vocabulary:
"""

__constructor__=manage_addVocabulary

def query(self, pattern):
"""
Query Vocabulary for words matching pattern.
Pattern format -- XXX
"""


Expand All @@ -118,9 +128,3 @@ def words(self):
"""


def manage_addVocabulary(self, id, title, globbing=None, REQUEST=None):
"""
Add a Vocabulary object to an ObjectManager.
"""
43 changes: 29 additions & 14 deletions help/ZCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@
#
##############################################################################

def manage_addZCatalog(self, id, title, vocab_id=None):
"""
Add a ZCatalog object.
'vocab_id' is the name of a Vocabulary object this catalog should
use. A value of None will cause the Catalog to create its own
private vocabulary.
"""




class ZCatalog:
"""
Expand All @@ -95,15 +108,25 @@ class ZCatalog:
Indexes
Text -- XXX
Text -- Text indexes index textual content. The index can be
used to search for objects containing certain words.
Field -- XXX
Field -- Field indexes index atomic values. The index can be
used to search for objects that have certain properties.
Keyword -- XXX
Keyword -- Keyword indexes index sequences of values. The index
can be used to search for objects that match one or more of the
search terms.
Meta-data
XXX
The ZCatalog can maintain a table of extra data about cataloged
objects. This information can be used on search result pages to
show information about a search result.
The meta-data table schema is used to build the schema for
ZCatalog Result objects. The objects have the same attributes
as the column of the meta-data table.
ZCatalog does not store references to the objects themselves, but
rather to a unique identifier that defines how to get to the
Expand All @@ -113,6 +136,8 @@ class ZCatalog:
"""

__constructor__=manage_addZCatalog

def catalog_object(self, obj, uid):
"""
Expand Down Expand Up @@ -189,13 +214,3 @@ def __call__(self, REQUEST=None, **kw):
Search the catalog, the same way as 'searchResults'.
"""

def manage_addZCatalog(self, id, title, vocab_id=None):
"""
Add a ZCatalog object.
'vocab_id' is the name of a Vocabulary object this catalog should
use. A value of None will cause the Catalog to create its own
private vocabulary.
"""

0 comments on commit 3ed7264

Please sign in to comment.