[Zope-CMF] edit() 3 arguments waiting, 4 given

Pascal Samuzeau samuzeau@oreka.com
Wed, 11 Sep 2002 10:13:12 +0100


Hi,                                                                   
                                                                      
Yes I have a lot of problem to edit my documents*; I can't because of 
this error and I can't understand why.                                
                                                                      
Before I was on CMF1.2 without any problem. I have upgraded to CMF1.3 
and then I can't edit my document from now.                           
                                                                      
So I made some tests to understand, and I can't find the solution     
alone.                                                                
                                                                      
Thank you                                                             
                                                                      
Sincerily                                                             
PS                                                                    
-------------------                                                   
> Pascal Samuzeau wrote:                                              
> > If I understand well, It's because I haven't a Document that I    
raise                                                                 
> > this error.                                                       
                                                                      
> >                                                                   
                                                                      
> > Ok, I cretad a Document and I did the same ( I mean I did a       
                                                                      
> > document_edit which calls context.edit)                           
                                                                      
> >                                                                   
                                                                      
> > Sorry, but I raise the same error :                               
                                                                      
> >                                                                   
                                                                      
> > 3 arguments expected (4 given).                                   
                                                                      
> >                                                                   
                                                                      
> > So Have you another solution ?                                    
                                                                      
>                                                                     
> The 'Bindings' tab of scripts in normal folders contains some useful
                                                                      
> explanations of the environment variables:                          
> "Context:                                                           
> This is the object on which the script is being called, also known  
as                                                                    
> the "acquisition parent" of the script. This may be the container,  
but                                                                   
> varies according to the path through which the script is accessed." 
>                                                                     
> Using the 'Test' tab in the skin folder, you'll have no chance to   
get                                                                   
> your Document as 'context'.                                         
>                                                                     
> Do you have any problems editing documents?                         
>                                                                     
> Yuppie                                                              
>                                                                     
>                                                                     
>                                                                     
Cordialement                                                          
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com