RFC: cataloging and custom catalogs

Alexandre SauvĂ© <sauve-3Dl1JeTYXg/[email protected]> Fri, 12 May 2006 11:17:02 +0200
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <[email protected]>
Hi there,

I' wondering about custom catalog and content using it.

Example :
    I have created "my_catalog"
    then NewContent have this in its schema :
       TheField("fieldName",
                index = "my_catalog/FieldIndex",
                ...

Currently when adding the Product with quickinstaller,
my_catalog gets no content until it is registerer in archetype_tool.
Which can be done from Extensions/Install.py with :

    at_tool.setCatalogsByType(meta_type, ('my_catalog',))

Question:
    Why 'my_catalog' is not added automatically? (this leads to a long
    tracking for new users of this feature like me)

    Is it desirable that this is done automatically by setting the
catalog list
    of types using custom catalogs to :

      - ('portal_catalog', 'custom_catalog') + any other custom catalog used
        in other fields...

Regards

-- 
Alexandre Sauvé



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642