[Zope-CMF] Icons and new Product seems strange

Pascal Samuzeau samuzeau@oreka.com
Tue, 10 Dec 2002 13:07:35 +0100


Hi,                                                                   
                                                                      
Still in my product I have a little problem without a solution.       
                                                                      
Considering that I have :                                             
                                                                      
-----------------------------------------------------------           
factory_type_information { 'id' : 'NewID'                             
			 , 'title' : 'NewTitle'                                            
                         , 'meta_type' : 'NewMetaType'                
                         , 'icon' : 'myproducticon.gif'               
....                                                                  
}                                                                     
                                                                      
class myproduct(SkinnedFolder):                                       
...                                                                   
-----------------------------------------------------------           
                                                                      
Considering that I have in a DTML method :                            
                                                                      
-------------------------------------------------------------------   
<dtml-in expr="portal_catalog.searchResults(meta_type='NewMetaType')">
 ...                                                                  
 <dtml-if getIcon>                                                    
  <img src="&dtml-portal_url;/&dtml-getIcon;">                        
 ...                                                                  
</dtml-in>                                                            
--------------------------------------------------------------------  
                                                                      
I always get, on the HTML page the icon's SkinnedFolder named         
"folder_icon.gif"                                                     
                                                                      
So, How can I tell to Zope to get the icon of my product and not the  
inherited one?                                                        
                                                                      
Cheers                                                                
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com