Write a brains class that you would call to catalog and uncatalog
insert/update/delete ZSQLmethods:

For example:

class MyObject:
    Some arbitrary object - MyObjectID - the id of your object
                            MyCatalog -  the catalog you want to use to
index the sql
                            MyText1 -    metadata column in your catalog
                            MyText2 -    an additional metadata column in
your catalog

    def FullText(self):
        "an index in your catalog"
        return "%s %s" % (self.MyText1, self.MyText2)

    def catalogObject(self):
        "Catalog me"
        self.MyCatalog.catalog_object(self, self.MyObjectID)

    def uncatalogObject(self):
        "Uncatalog me"

Hope this helps,

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to