SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?
Hello, i have some strange problmes by using the "REQUEST.resolve_url('http://mydomain/...')" in DTML if SiteAccess is active. I have also some Sites in use without SiteAccess and no problems with the above method. Has anybody an idea or a 'workaround' for this ? Martin
----- Original Message ----- From: Martin Grönemeyer <martin@comunit.de>
i have some strange problmes by using the "REQUEST.resolve_url('http://mydomain/...')" in DTML if SiteAccess is active. I have also some Sites in use without SiteAccess and no problems with the above method.
Tell me more about the problem, please. SiteAccess replaces REQUEST.traverse, which is called by REQUEST.resolve_url. Are you just using resolve_url to grab objects given their path? Cheers, Evan @ digicool & 4-am
i have some strange problmes by using the "REQUEST.resolve_url('http://mydomain/...')" in DTML if SiteAccess is active. I have also some Sites in use without SiteAccess and no problems with the above method.
Tell me more about the problem, please. SiteAccess replaces REQUEST.traverse, which is called by REQUEST.resolve_url. Are you just using resolve_url to grab objects given their path?
Getting an object-Context (index_html => DTML Document) by absolute URL: <dtml-with "REQUEST.resolve_url('http://mydomain/home/index_html')"> <dtml-var title> </dtml-with> throws Error Type: ValueError Error Value: Different namespace. If i try to get an object-context of an unexisting object, the snippet above throws the correct message that the ressource wasn't found. On a zope-installation (2.2alpha und 2.1.2) without SiteAccess this example works fine.
----- Original Message ----- From: Martin Grönemeyer <martin@comunit.de>
<dtml-with "REQUEST.resolve_url('http://mydomain/home/index_html')"> <dtml-var title> </dtml-with>
throws
Error Type: ValueError Error Value: Different namespace.
REQUEST.resolve_url requires that the URL you pass to it begins with REQUEST.script, otherwise it will throw this Exception. It treats the URL very much like one coming from a browser, so all SiteRoots and Access Rules affect the result. Cheers, Evan @ digicool & 4-am
Hi! On Fri, 19 May 2000, Evan Simpson wrote:
From: Martin GrЖnemeyer <martin@comunit.de>
Error Type: ValueError Error Value: Different namespace.
REQUEST.resolve_url requires that the URL you pass to it begins with REQUEST.script
Oops! Can you tell more details on this? What is REQUEST.script? I'm asking this becasue my mod_pcgi2 Apache module screws SCRIPT environment variable, and screws it by purpose! Oleg. (All opinions are mine and not of my employer) ---- Oleg Broytmann Foundation for Effective Policies phd@phd.russ.ru Programmers don't die, they just GOSUB without RETURN.
participants (3)
-
Evan Simpson -
Martin Grönemeyer -
Oleg Broytmann