Re: [Zope] ZTopic error

2001-01-18 Thread Chris Withers

 Priya Ramkumar wrote:
 Error Type: AttributeError
 Error Value: Vocabulary
 
 Is there any bug fix for this?

Try adding a Vocabulary object into your ZCatalog...

...and don't post this list in HTML ;-)

Chris

___
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 )




Re: [Zope] ZTopic error

2001-01-18 Thread Chris Withers

Keep CC'ing to the list, that way other peopel can help too :P  

Priya Ramkumar wrote:
 
 But there is a Vocabulary object already existing for the ZCatalog.

..then I have no idea, sorry.

Chris

___
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 )




Re: [Zope] ZTopic error

2001-01-18 Thread Priya Ramkumar

Hi

But there is a Vocabulary object already existing for the ZCatalog.

Thanks
Priya

---
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?


Try adding a Vocabulary object into your ZCatalog...

...and don't post this list in HTML ;-)

Chris





___
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 )




Re: [Zope] ZTopic error

2001-01-18 Thread Tres Seaver

"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.orgWed Nov  3 16:25:15 1999
+++ Topic.pyThu Nov 30 21:27:48 2000
@@ -224,7 +224,7 @@
 c=zcatalog._catalog
 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)
 search_results=index._apply_index(search_map)
 if search_results is not None:

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

___
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] ZTopic error

2001-01-17 Thread Priya Ramkumar





Hi

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: AttributeErrorError Value: 
Vocabulary

Is there any bug fix for this?

Thanks
Priya
Email: [EMAIL PROTECTED]