[Zope] portal_type and catalog

Pascal Samuzeau samuzeau@oreka.com
Wed, 14 Aug 2002 15:26:44 +0100


Hi,                                                                   
                                                                      
I have 2 version of Zope 2.4.3 and 2.5.1.                             
                                                                      
The 2 versions give the same strange result.                          
                                                                      
I have declared a type 'Document' in my portal_type.                  
                                                                      
I have construct a 'Document' named 'NewDocument' under my Folder,    
when I was connected and Authenticated.                               
                                                                      
In a DTML Document named 'Search' I have                              
                                                                      
<dtml-let results="portal_catalog>                                    
<dtml-var search_against>                                             
</dtml-let>                                                           
                                                                      
The parameters are Type='Document' and SearchableText='' in hidden    
input.                                                                
                                                                      
Both of the 2 versions return to me :                                 
                                                                      
2 Found objects :                                                     
                                                                      
1 -> My NewDocument of type 'Document'                                
2 -> My Document declared in the portal_type.                         
                                                                      
Anybody has an answer on it ?                                         
                                                                      
                                                                      
Sincerily                                                             
PS                                                                    
--------------------------------------------------                    
Oreka ! Nous sommes l'internet moins cher !                           
Surfez 25% moins cher avec http://www.oreka.com