Re: [Zope] still trying to get Catalog to work in my python product

2000-05-24 Thread Kevin Dangoor

- Original Message -
From: "ed colmar" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 23, 2000 11:54 AM
Subject: [Zope] still trying to get Catalog to work in my python product


 After looking over the PTK snapshot, I've tried to duplicate the catlog
 that is implemented there.  I could not find any search utilities built
in,
 so I'm assuming this is still done by adding the ZsearchInterface from the
 management screen.  Is this right, or is there some built-in PTK searching
 tool?

ZSearchInterface is basically just a quickie tool to generate DTML Methods.
You can always make the DTML on your own... it's really not too difficult to
do searching of a ZCatalog (there are a couple related howtos on zope.org).

Kevin


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




[Zope] still trying to get Catalog to work in my python product

2000-05-23 Thread ed colmar

Thanks to everone who has given me suggestions on this.  I really do
appreciate it.

After looking over the PTK snapshot, I've tried to duplicate the catlog
that is implemented there.  I could not find any search utilities built in,
so I'm assuming this is still done by adding the ZsearchInterface from the
management screen.  Is this right, or is there some built-in PTK searching
tool?

So now I have a "myproductcatalog" class which inherits ZCatalog.  All it
does is set up the Indexes, and columns

In my base class, I initialize the catalog using (PTK code):

# Install MyCatalog
id = 'SiteIndex'
catalog = MyCatalog(id, '')
self._setObject(id, catalog)
catalog = self.SiteIndex
catalog.initialize()



My sub-classes are all catalog aware, with reindex-object in all of the
editing areas.  

I don't see my catalog when I go to add a Zsearch interface.  Am I
supposed to?  What else do I need to do to make this work?

-ed-


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