[Zope] 2.3.2 SiteRoot and ZCatalog Woe

Chris McDonough chrism@digicool.com
Thu, 17 May 2001 15:37:54 -0400


Hi Rob,

I believe CatalogAware is not virtual host aware.  Use CatalogPathAware
instead, IIRC.

- C

----- Original Message -----
From: <rob.sheppard@btinternet.com>
To: <zope@zope.org>
Sent: Thursday, May 17, 2001 8:03 PM
Subject: [Zope] 2.3.2 SiteRoot and ZCatalog Woe


> Hi,
> I'm using SiteRoot on a 2.3.2 installation. It looks like
> there is a mismatch between the Zcatalog and Siteroot.
>
> When I add a new catalogaware Zclass instance to a
> Catalog it gets cataloged with its SiteRoot relative path
> (i.e not including the real root folder), which is what I
> would expect. But when I try to access the cataloged
> object's properties from DTML using either the new
> getObject or the old getobject(data_record_id_), I get a
> key error.
>
> If I use the "Find Objects" tab in the Catalog's
> management interface, it catalogs duplicates of the
> objects (i.e. the object is in there twice), but this time
> with the full path from Zope's real root (i.e. ignoring the
> SiteRoot). And I *can* access these using get[Oo]bject.
>
> So it looks to me like ZCatalog is not aware of
> SiteRoot's URL magic.
>
> Anyone got a patch?
>
> ---
> Rob
>
> _______________________________________________
> 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 )
>