[Zope-dev] Re: restrictedTraverse doesn't give the good container

Pascal Samuzeau samuzeau at oreka.com
Mon Feb 16 05:30:40 EST 2004


Hi,                                                                   
                                                                      
> Please don't cross-post.                                            
> You already posted this exact question to zope@[...].org,           
> and received two replies to which you did not follow up.            
                                                                      
Sorry if I did that, but my Webmail gives me some trouble, and you've 
certainly knew it because you can't reach my box.                     
                                                                      
> Why should we have time to fix your problem when you                
> apparently don't have time to respond to our replies?               
                                                                      
I don't ask for someone to fix my problem, just to know if someone had
fixed it before. I have no time to have a look yet, but if nobody had 
fixed up, I will fixed up later.                                      
                                                                      
Incidetn is closed.                                                   
                                                                      
                                                                      
Just for the answer fo the link below :                               
 http://aspn.activestate.com/ASPN/Mail/Message/zope-List/1993724      
                                                                      
No the path is not absolute.                                          
                                                                      
I have this hierarchy :                                               
                                                                      
-Root                                                                 
--ThisFolder                                                          
---FolderA ...                                                        
                                                                      
I've written as:                                                      
                                                                      
...                                                                   
thepath = 'ThisFolder'                                                
path = context.restrictedTraverse(thepath)                            
...                                                                   
                                                                      
To follow the folders I've written:                                   
                                                                      
...                                                                   
herenow = context.restrictedTraverse(path+'/FolderC')                 
herenow = herenow.restrictedTraverse(path+'/FolderC')                 
...                                                                   
                                                                      
Sincerily                                                             
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com                       
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com                       



More information about the Zope-Dev mailing list