[Zope] Intercepting and processing URLs

AM list_subscriber@neurobs.com
Fri, 25 Oct 2002 10:34:28 -0700


The main problem there is that the folder test2 is a LocalFS object, 
which makes me totally lost...:(


AM wrote:

> But how do I do it??
>
> I wrote the following PyScript as a test case:
>
> request = container.REQUEST
> url= request.url
>
> if url.find(context.test2.absolute_url()) > -1:
>  url.replace(context.test2.absolute_url(), 
> "http://zope:zuser@myhost/test_folder/test/test2")
>
> where zope and zuser are valid manager credentials for the folder
>
> No when I set up the permission for test2 to Authenticated view only, 
> well I get booted out and cant log in even as emergency user. I mean 
> its a subfolder so I can undo the action from the container level and 
> get back in, but I cant access the resource.
>
> How do I go about it.??
> Where's the documentation about this??
>
> TIA
> AM
>
>
> Andy McKay wrote:
>
>> Look at SiteAccess.
>> -- 
>>  Andy McKay
>>  www.agmweb.ca
>>
>>
>> ----- Original Message ----- From: "AM" <list_subscriber@neurobs.com>
>> To: "Zope" <zope@zope.org>
>> Sent: Thursday, October 24, 2002 5:46 PM
>> Subject: [Zope] Intercepting and processing URLs
>>
>>
>>  
>>
>>> Hi,
>>>
>>> What I want to do is that if a page has a link called :
>>>
>>> http://myserver:8080/images/test.jpg
>>>
>>> I would like to translate that to
>>>
>>> http://user:password@myserver:8080/images/test.jpg
>>>
>>> However I dont want this URL appearing on the user's client, so can 
>>> I use Apache rewrite rules for that.?
>>> If not what option do I have??
>>>
>>> My config Zope 2.5.x behign Apache/Squid on RH 7.3
>>>
>>> TIA
>>> AM
>>>
>>> -- 
>>> ==================================================================
>>> Aseem Mohanty    Neurobehavioral Systems Inc, 828 San Pablo Ave, 
>>> Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231   
>>> ==================================================================   
>>> "I saw `cout' being shifted "Hello world" times to the left and  
>>>  stopped right there!!"                        -- Steve Gonedes  
>>> ==================================================================
>>>
>>>
>>> _______________________________________________
>>> Zope maillist  -  Zope@zope.org
>>> 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 maillist  -  Zope@zope.org
>> 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 )
>>
>>
>>  
>>
>

-- 
==================================================================
 Aseem Mohanty							   
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
==================================================================								  	
 "I saw `cout' being shifted "Hello world" times to the left and  
  stopped right there!!"                        -- Steve Gonedes  
==================================================================