[Zope] ZClasses and ZCatalog: reindexing problem

Jason Spisak 444@hiretechs.com
Fri, 21 Apr 2000 15:58:50 GMT


Anthony,

> 
> Thanks Jason and Kevin for the prompt replies. 

No problem.
> 
> And that's what puzzles me: it doesn't work.  I tried doing this:
> 
> >    <dtml-call reindex_object()>
> 

No need to shoot in the dark.  We'll figure it out. :)

What is leading you to believe that it's not getting indexed?
Is it your report page?  If so, let's bypass that and ask the Catalog
directly.
Providing that your Catalog is named 'Catalog' make a DTMLMethod to test
it:

<dtml-in "Catalog(myProperty='SomevalueIthoughtIindexed')">
<dtml-var id>
</dtml-in>

Now view it.  It should give you the 'id' of any object that has that value
sotred in the index for myProperty.  (You have created an index on that
property, right?:-)

If there is nothing, then call the url of the object that doesn't get
indexed in you browser like this(assuming zope is running locally and no
the default port:

http://localhost:8080/Path/To/My/ZClass/Instance/reindex_object

This will force the object's url to be indexed.
Now view your 'test' method again.  It will definately be there.  Let me
know what happens during these steps.

All my best,


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.