SV: [Zope-CMF] VHM and portal_catalog

Magnus Heino magnus.heino@pleon.sigma.se
Mon, 25 Feb 2002 14:35:26 +0100


>> 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.

Data.fs has been moved between machines, if that makes any difference.

Request using VHM looks like this (returns 1 object when called on 8080,
None called with VHM)



form
start_usage 'range:min:max'
start [DateTime('2002/04/03'), DateTime('2002/04/03')]

cookies
__ac_name 'kansli'

lazy items
SESSION <Python Method object at 0x9040d20>

other
start_usage 'range:min:max'
URL1 'http://golf.alvkarleby.net'
PUBLISHED <FSPageTemplate instance at 932f610>
__ac_name 'test
BASE1 'http://golf.alvkarleby.net'
BASE2 'http://golf.alvkarleby.net/search'
start [DateTime('2002/04/03'), DateTime('2002/04/03')]
traverse_subpath []
URL0 'http://golf.alvkarleby.net/search'
SERVER_URL 'http://golf.alvkarleby.net'
VirtualRootPhysicalPath ('', 'Golf')
URL 'http://golf.alvkarleby.net/search'
AUTHENTICATED_USER Anonymous User
TraversalRequestNameStack []
AUTHENTICATION_PATH 'Golf/VHM'
BASE0 'http://golf.alvkarleby.net'
URL0 http://golf.alvkarleby.net/search
URL1 http://golf.alvkarleby.net
BASE0 http://golf.alvkarleby.net
BASE1 http://golf.alvkarleby.net
BASE2 http://golf.alvkarleby.net/search

environ
HTTP_ACCEPT_ENCODING 'gzip, deflate'
channel.creation_time 1014643207
HTTP_PROXY_SOFTWARE 'Roxen/2.1.271'
SERVER_PROTOCOL 'HTTP/1.0'
SERVER_PORT '8080'
PATH_INFO
'/VirtualHostBase/http//golf.alvkarleby.net:80/Golf/VirtualHostRoot/search'
HTTP_HOST 'localhost:8080'
REQUEST_METHOD 'GET'
PATH_TRANSLATED
'/VirtualHostBase/http/golf.alvkarleby.net:80/Golf/VirtualHostRoot/search'
SCRIPT_NAME ''
QUERY_STRING
'start:list:date=2002-04-03%252000%253A00%253A00&amp;start:list:date=2002-04
-03%252023%253A59%253A59&amp;start_usage=range:min:max'
SERVER_SOFTWARE 'Zope/(Zope 2.5.0 (source release, python 2.1, linux2),
python 2.1.2, linux2) ZServer/1.1b1'
HTTP_ACCEPT 'image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*'
REMOTE_ADDR '127.0.0.1'
HTTP_COOKIE '__ac_name="test
SERVER_NAME 'junior.busnet.se'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
Q312461)'
CONNECTION_TYPE 'close'