SV: [Zope-CMF] VHM and portal_catalog

Dieter Maurer dieter@handshake.de
Mon, 25 Feb 2002 23:15:16 +0100


Magnus Heino writes:
 > >> What is the right way to solve this?
 > 
 > > It sounds like either you have a fairly old version of the
 > > CMF, or that you have customized the search template.  The
 > > HREF of the anchor tag should use 'obj.getURL()', rather than
 > > 'obj.getPath()', in order to do the Right Thing (TM) whether
 > > in the presence of virtual or not.
 > 
 > Zope 2.5.0 and CMF1.2 using the latest plone skin.
 > 
 > portal_catalog(request) returns None when called through VHM, so the problem
 > is not getPath or anything like that.
Some suggestions:

  *  "request" contains a query that does not have hits
     (though it should then probably not return None but some
     empty sequence).

  *  maybe an exception that was improperly catched.
 > 
 > Data.fs has been moved between machines, if that makes any difference.
In a recent post, Tres suggested to use the External Method "update_ZCatalog"
(or something similar). Maybe you should try (though I do not expect
this will be the solution).

 > Request using VHM looks like this (returns 1 object when called on 8080,
 > None called with VHM)
You are sure that the request's are identical (as far as the catalog
is concerned)?
 > 
 > form
 > start_usage 'range:min:max'
 > start [DateTime('2002/04/03'), DateTime('2002/04/03')]
This interval is not large...


Dieter