[ZCM] [ZC] 312/ 1 Request "Problems with "+ " and "-" images when running Zope in a sub-folder behind Apache"

Collector: Zope Bugs and Patches ... zope-coders@zope.org
Mon, 25 Mar 2002 06:38:30 -0500


Issue #312 Update (Request) "Problems with "+ " and "-" images when running Zope in a sub-folder behind Apache"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/312

==============================================================
= Request - Entry #1 by Anonymous User on Mar 25, 2002 6:38 am

In the folder tree view, the "+" and "-" images are not displayed as the path is incorrect. All other images are correctly displayed.

Apache and Zope are correctly set-up: Proxy enabled, Siteroot set. 

>From the Apache config
 ProxyVia On
 ProxyPass /qs http://localhost:8080
 ProxyPassReverse /qs http://localhost:8080
 ProxyPass /misc_ http://localhost:8080
 ProxyPass /p_ http://localhost:8080

It seems that the hard-wired paths for /p_/pl and /p_/mi in
\lib\python\TreeDisplay\TreeTag.py
lines 344 - 353 may be at fault.

Hard-wiring /p_ to /qs/p_ seems to solve the problem.

            if exp:
                ptreeData['tree-item-expanded']=1
                output('<A NAME="%s" HREF="%s?%stree-c=%s#%s">'
                       '<IMG SRC="%s/qs/p_/mi" ALT="-" BORDER=0></A>' %
                       (id, root_url, param, s, id, script))
            else:
                output('<A NAME="%s" HREF="%s?%stree-e=%s#%s">'
                       '<IMG SRC="%s/qs/p_/pl" ALT="+" BORDER=0></A>' %
                       (id, root_url, param, s, id, script))
            output('</TD>\n')
==============================================================