• Vincent Pelletier's avatar
    SQLCatalog_deferFullTextIndex{,Activity}: Do not use getObject . · da7e0f0b
    Vincent Pelletier authored
    getObject is generally a shortcut for "return self", and on brains for
    traversing to corresponding document.
    Except... Not everywhere. portal_catalog for example defines a completely
    unrelated method which takes a UID as argument and does a query retrieving
    one document. Which is basically totally redundant with its __call__
    method. Still, of course, it is used in several places.
    Also, ERP5Form.Report defines yet another getObject method, taking an
    acquisition context as argument and traversing to some other path.
    
    So do not use getObject (at least until the code recovers some sanity and
    consistency), but getPath + custom activity API. Oh well.
    da7e0f0b
SQLCatalog_deferFullTextIndex.xml 2.52 KB