"Priya Ramkumar" <[EMAIL PROTECTED]> wrote:

> I am trying to use ZTopic for categorizing obejcts in a Zcatalog. After
> specifying the criteria, when I try to view the list of topics, it gives me
> the traceback error:
> Error Type: AttributeError
> Error Value: Vocabulary
> Is there any bug fix for this?

ZTopic is slightly out of date;  in particular, it uses the (text)
indices without wrapping them in their catalog, so they can't
acquire their vocabulary object.

The patch is a simple one-liner:

$ diff -bu Topic.py.org Topic.p >
--- Topic.py.org        Wed Nov  3 16:25:15 1999
+++ Topic.py    Thu Nov 30 21:27:48 2000
@@ -224,7 +224,7 @@
             for search_term in search_map.keys():
                 if c.indexes.has_key(search_term):
-                    index=c.indexes[search_term]
+                    index=c.indexes[search_term].__of__(c)
                     if search_results is not None:

Tres Seaver                                [EMAIL PROTECTED]
Digital Creations     "Zope Dealers"       http://www.zope.org

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

Reply via email to