Hi every body. I am new to Zope and I am trying to create a ZClass in order to use automatic cataloging. I am following the Zope book chapter 9 automatic cataloging. The creation of the ZClas "NewsItem" works fine, as described in the book under Zope 2.4.3 (running on NT 4). Unfortunately the same ZClass does not work under Zope 2.5.0 (Windows 2000). If I want to create a new NewsItem I get an error after having entered an id and clicked on add. Any one any suggestion? Thank you very much in advance Beat Zimmerli
I am new to Zope and I am trying to create a ZClass in order to use automatic cataloging. I am following the Zope book chapter 9 automatic cataloging. The creation of the ZClas "NewsItem" works fine, as described in the book under Zope 2.4.3 (running on NT 4). Unfortunately the same ZClass does not work under Zope 2.5.0 (Windows 2000). If I want to create a new NewsItem I get an error after having entered an id and clicked on add.
Any one any suggestion?
I suggest you tell us what the error text is, and post the traceback.
----- Original Message ----- From: "Joel Burton" <joel@joelburton.com> To: "Beat Zimmerli" <b.zimmerli@mssc.ch>; "Zope@Zope. Org" <zope@zope.org> Sent: Wednesday, March 13, 2002 3:02 PM Subject: RE: [Zope] ZClasses under Zope 2.5
I am new to Zope and I am trying to create a ZClass in order to use automatic cataloging. I am following the Zope book chapter 9 automatic cataloging. The creation of the ZClas "NewsItem" works fine, as described in the book under Zope 2.4.3 (running on NT 4). Unfortunately the same ZClass does not work under Zope 2.5.0 (Windows 2000). If I want to create a new NewsItem I get an error after having entered an id and clicked on add.
Any one any suggestion?
I suggest you tell us what the error text is, and post the traceback.
After hanving reinstalled my Zope version 2.5 everything works fine with the ZClass. Unfortunately, I run into another problem. The ZClass "News Item" according to the Zope book chapter 9 automatic cataloging works fine. However, new instances of the News Item Class do not catalog themselvers automatically. They can be found under Catalog->Catalog, but they are not yet searchable. I first have to update the catalog, in order to have the content of my new News Item indexed. This is not really automatically, is it? :-). What might I be doing wrong? Thanks in advance. Beat Zimmerli
Beat Zimmerli wrote:
After hanving reinstalled my Zope version 2.5 everything works fine with the ZClass. Unfortunately, I run into another problem. The ZClass "News Item" according to the Zope book chapter 9 automatic cataloging works fine. However, new instances of the News Item Class do not catalog themselvers automatically. They can be found under Catalog->Catalog, but they are not yet searchable. I first have to update the catalog, in order to have the content of my new News Item indexed. This is not really automatically, is it? :-).
It sounds as if you have forgotten to sybclas CatalogAware. regards Max M
----- Original Message ----- From: "Max M" <maxm@mxm.dk> To: "Beat Zimmerli" <b.zimmerli@mssc.ch> Cc: <zope@zope.org> Sent: Thursday, March 14, 2002 2:13 PM Subject: Re: [Zope] ZClasses under Zope 2.5
Beat Zimmerli wrote:
After hanving reinstalled my Zope version 2.5 everything works fine with the ZClass. Unfortunately, I run into another problem. The ZClass "News Item" according to the Zope book chapter 9 automatic cataloging works fine. However, new instances of the News Item Class do not catalog themselvers automatically. They can be found under Catalog->Catalog, but they are not yet searchable. I first have to update the catalog, in order to have the content of my new News Item indexed. This is not really automatically, is it? :-).
It sounds as if you have forgotten to sybclas CatalogAware.
regards Max M
_______________________________________________ Zope maillist - Zope@zope.org 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 )
That seems not to be the problem, as I included the basis class ZCatalog Aware into my News Item class. Thanks anyway. Beat Z.
participants (3)
-
Beat Zimmerli -
Joel Burton -
Max M