On 13 Dec 2005, at 11:01, yuppie wrote:
Florent Guillaume wrote:
Also, why is the meta_type information duplicated in typesinfo.xml and types/foo.xml?

The adapter for the container is responsible for creating empty sub- objects. So in this case the TypesToolXMLAdapter needs to know the meta_type information to find the correct class.

Ok I thought it would be something like that. I don't like it but I don't see another option.

The meta_type information in types/foo.xml isn't strictly necessary, but it allows to see to which meta_type the XML file belongs and to check the meta_type before applying an XML file to an object.

Yes I agree that it's good to have it in types/foo.xml for consistency and self-sufficiency.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to