[Zope-CMF] addProduct vs init. Need explanations

Pascal Samuzeau samuzeau@oreka.com
Tue, 05 Nov 2002 16:35:48 +0100


Hi,                                                                   
                                                                      
If I have a product's python source, I've something as:               
                                                                      
from ....                                                             
                                                                      
factory....                                                           
                                                                      
def addProductA(...)                                                  
...                                                                   
                                                                      
class ProductA(..)                                                    
                                                                      
...                                                                   
                                                                      
   def init(..)                                                       
     ....                                                             
                                                                      
InitializeClass(ProductA)                                             
                                                                      
                                                                      
Ok, But What addProductA for ?                                        
                                                                      
I mean if I add a ProductA under a CMFSite, only the init'class is    
calling.                                                              
                                                                      
I can write what I want in addProductA, nothing happens.              
                                                                      
So, I think I haven't yet really understand what addProductA is done. 
                                                                      
Cheers                                                                
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com