[Zope] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks

I have created a Zclass, the the _ZClass_for_CatalogAware base class
as the first added base class (second in the list of base classes).
My zcatalog (named Catalog) is set to 'Find objects of type:
"myClass_metatype"' and therefore, when I add a new instance of my
class, it is automatically added to the catalog.  By that, I mean that
once I have added the instance, I can go the the 'Cataloged Objects'
view and see it listed there. However, if I try a search using the raw
(TextIndex) search outlined in one of the tutorials, the search fails
to find words that I *know* are in the zclass that I just added, and
that I thought had been cataloged.  Clicking on 'Update Catalog' in
the 'Cataloged Objects' view and then researching means that the
search succeeds in finding the word in the new instance.

The question is, do I need to add the equivalent of what is written in
'How-To: Creating a CatalogAware ZClass' for reindexing zclass
properties, but for reindexing the actual text?  How could I do this?

extract from 'How-To: Creating a CatalogAware ZClass'

dtml-call
"propertysheets.InstanceConstants.manage_changeProperties(REQUEST)"
dtml-call reindex_object

/extract from 'How-To: Creating a CatalogAware ZClass'


Help much appreciated,

tim


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
 The question is, do I need to add the equivalent of what is written in
 'How-To: Creating a CatalogAware ZClass' for reindexing zclass
 properties, but for reindexing the actual text?  How could I do this?

When is the text created?  After it is, you have to call reindex_object.

--RDM


___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks


- Original Message -
From: "R. David Murray" [EMAIL PROTECTED]
To: "Tim Hicks" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, September 07, 2000 10:12 PM
Subject: Re: [Zope] Zclass not reindexing (it is CatalogAware)


 On Thu, 7 Sep 2000, Tim Hicks wrote:
  The question is, do I need to add the equivalent of what is
written in
  'How-To: Creating a CatalogAware ZClass' for reindexing zclass
  properties, but for reindexing the actual text?  How could I do
this?

 When is the text created?  After it is, you have to call
reindex_object.


So each time there is a change made to the text, I must call
reindex_object, is that correct?  If so, how do I make it so that each
time I hit the 'Change' button at the bottom of the text box,
dtml-call "reindex_object()" is executed?

cheers

tim
 --RDM



___
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] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread R. David Murray

On Thu, 7 Sep 2000, Tim Hicks wrote:
 So each time there is a change made to the text, I must call
 reindex_object, is that correct?  If so, how do I make it so that each
 time I hit the 'Change' button at the bottom of the text box,
 dtml-call "reindex_object()" is executed?

If you take a close look at the how-to, it also tells you you have
to write your own management 'editForm' method and assign it to the
view tab.  In the action method for that form, you do the
reindex_object.

--RDM


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