Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-20 Thread Oleg Broytmann

Hi!

On Fri, 19 May 2000, Evan Simpson wrote:
> From: Martin Grönemeyer <[EMAIL PROTECTED]>
> > 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  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Evan Simpson

- Original Message -
From: Martin Grönemeyer <[EMAIL PROTECTED]>
> http://mydomain/home/index_html')">
> 
> 
>
> 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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Martin Grönemeyer

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

http://mydomain/home/index_html')">



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.




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Evan Simpson

- Original Message -
From: Martin Grönemeyer <[EMAIL PROTECTED]>
> 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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] SiteAccess smashes 'REQUEST.resolve_url(...)' in DTML ?

2000-05-19 Thread Martin Grönemeyer

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


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )