[Zope] problem with catalog and VHM

Steffen Hausmann steffen@hausmann-family.de
Fri, 4 Apr 2003 00:29:43 +0200


On Thu, Apr 03, 2003 at 08:14:28PM +0200, dieter@handshake.de wrote:
> Steffen Hausmann wrote at 2003-4-2 22:25 +0200:
>  > getItem(self, metaType, verband, REQUEST=None):
>  >         for object in self.brkCatalog({'meta_type':metaType}):
>  >                 path = re.match("(.*)/edit/.+?/.+?", object.getObject().absolute_url())
>  > 
>  > The request that is passed to the funktion by a dtml-in call looks ok
>  > (it is not None), but another AttributeError occurs.
>  > 
>  > AttributeError: 'None' object has no attribute 'absolute_url'
> 
> Apparently, "getObject()" returned "None".
> Call "getPath()" instead and see what is strange with the path.

The path that is returned is ok (from the visitors point of view the
url is correct; the /brk was stripped off).

> If "getPath()" returns None, too, then you have a catalog inconsistency.

I think the problem occurs somewhere here.

The old objects (which were catalog with the old RewriteRule (with the
/brk in the url)) 'object identifier' has the /brk, but objects which
were cataloged with the new RewriteRule don't have the /brk in their
'object identifier'.

If I delete these items and reindex them by the catalog they have the
missing /brk and the website works.

MfG Steffen
-- 
That you're not paranoid doesn't mean they aren't right behind you.