[Zope-CMF] call invokeFactory on an object different of the context

Pascal Samuzeau samuzeau@oreka.com
Wed, 06 Nov 2002 16:31:02 +0100


Hi Sed,                                                               
                                                                      
Thanks a lot for the solution                                         
                                                                      
Cheers                                                                
PS                                                                    
-------------------                                                   
>                                                                     
>                                                                     
> Pascal Samuzeau wrote:                                              
> > context.invokeFactory('Factory',id=id, and_so_on...)              
>                                                                     
> > How can I construct a "new" context just before to call the       
                                                                      
> > invokeFactory ?                                                   
                                                                      
>                                                                     
> something like                                                      
>                                                                     
>    pathA = "a/b/c/a"                                                
>    location = context.restrictedTraverse(pathA, default=context)    
>    location.invokeFactory(...)                                      
>                                                                     
> seb                                                                 
>                                                                     
>                                                                     
Cordialement                                                          
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com