[Zope-CMF] why portal_catalog collect "None" object ?

GC gc@iis.sinica.edu.tw
Tue, 18 Mar 2003 18:17:21 +0800


Hi,

   I use this code within a python script of my CMF site

            entries = context.portal_catalog(portal_type =
CPS_meta_type,
                                         review_state = public_state,
                                         sort_on = 'Counter',
                                         sort_order = "reverse")

   Amazingly, it collect also the "deleted" object, such that my page
template form got an error
   caused from
         "None" object can not apply getObject() method !!

   Why these ghost objects still be collected by portal_catalog ?
   How can I avoid this ?


    ------------

    Another weird problem about my portal_catalog is that

    it collect redundant object objects with recursive path that are
identical to the same object !
    For example :

    I got a list of objects with the following url

       http://gc:88/

 
http://gc:88/Members/john/Dumbell_Covering_Problem/Plone/Members/john/Du
mbell_Covering_Problem

 
http://gc:88/Members/john/Dumbell_Covering_Problem/Plone/Members/john/Du
mbell_Covering_Problem/Plone/Members/john/Dumbell_Covering_Problem

       ...

     My Goodness !

    ------------

    These two problem happened in my Plone1.0RC2 and also 1.0.1
  
    How can I go it through ..

    I am helpless ...

    Any help will be appreciated ..


>From GC