[Zope] Catalog contains items, but no results

2000-07-21 Thread ed colmar

Hmmm,  more catalog strangeness..

I've finally gotten my product to add objects to a catalog correctly (with
the correct URL) Whee!   

On my 2.2 development machine all appears fine, but on the 2.1.6 production
server all searches come back with no results.  When I look in "cataloged
objects" in the management interface, there are many objects with correct
URLs...???

Obviously I could just upgrade the production server, but I'm curious if
there's something inherently wrong with my code.

This is a sample of a call that I make to the Catalog.

base_url=self.site_url()
self.Catalog.catalog_object(ob,base_url+'/Promoters/'+id)

Thanks for any ideas.

-e-


___
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] Catalog contains items, but no results

2000-07-24 Thread Chris Withers

ed colmar wrote:
> This is a sample of a call that I make to the Catalog.
> 
> base_url=self.site_url()
> self.Catalog.catalog_object(ob,base_url+'/Promoters/'+id)

I'd go to 2.2 and use the relevent bits of the Traversal interface for
all of this.

This whole area was notoriously problematic in the past (particularly
when things like SiteAccess come into play...)

I hope it's improved in 2.2. What's the 'correct' way to do this sort of
thing in 2.2? Where is it documented? ;-)

cheers,

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 )