[Zope] SiteRoot and <a>

Petr Knapek petr.knapek@nextra.cz
27 Jun 2001 11:47:04 +0200


Hi Zopists,

  I use Zope 2.3.1 on both, FreeBSD and Debian together with Apache in
SSL mode as a proxy server.  I also use SiteRoot only from SiteAccess
Zope core.  I have developed a pythonn product which can store a URL and
this URL is seen as a link when viewing this product in Zope.  Part of
my code which renders this links can be seen here:

<a href=3D"<dtml-var "getProperty('url')" url_quote>" target=3D"<dtml-v=
ar
"getProperty('target')">" class=3D"linkFile"><dtml-var cz_id>&nbsp;(<dt=
ml-var title>)</a>

where product properties 'url' and 'target' holds URL and name of target
window, respectively.


On Zope 2.1.6 it was working fine under SiteRooted folder.  But now,
when working with Zope 2.3.1, the above noted code is evaluated in
different way and returns also value of BASE1 CGI variable at the
beginning of <a href=3D"">.  This is big problem when putting a foreign
URL.=20

I have looked for a documentation about SiteRoot and this 'special
feature' and I am not sure if it is not a bug, but no bug finded.

If you know how to solve this problem, let me know. Thanks,

Petr=20=20
--=20
Petr Kn=E1pek
Network Development
NEXTRA Czech Republic s.r.o. http://www.nextra.cz/
V Celnici 10 / CZ - 117 21 Praha 1 / Czech Republic
Tel: +420/2/96 355 111 / Mobile: +420/604-202 611
E-Mail: petr.knapek@nextra.com

Contact address:
Hlinky 114 / CZ - 603 00 Brno / Czech Republic
Tel: +420/5/43 554 150 / FAX: +420/5/43 554 214
see Disclaimer http://www.nextra.cz/disclaimer/