Thanks ..... After reading portal.py, what i understood is that factory_type_information is used in the setup of a CMFSite, by PortalGenerator.setupType, to fill in portal_types tool with the default types. It's a way to customize a basic CMF Site If i want to add y own types, i can define a module sometype.py and add its factory_type_information to portal.factory_type_information otherwise i'll have to add a Factory_type_based_information in portal_types workspace. If i want to use PortalGenerator.setupTypes in my own module to register my type in portal_types, i suppose i'll have to create an instance of PortalGenerator in my module but that i don't need to use PortalGenerator as a base class of my module. Am i right ? (i'm a newbie so my questions may be simples ones) Mark McEahern a écrit:
Why is needed this factory_type_information in CMFDehault.portal.py
Create a CMF site and then look in its portal_types tool. I suspect a light bulb will go on. ;-)
Cheers,
// m
-
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Andre PZP Enthusiast