Raphael Ritz wrote:
That's not the point. The question is, say, you want (some of) the
default types *only* be addable to your custom type, so you want to
replicate what you do in ZMI by ticking one check box: the 'implicitly
addable' flag on a default type.
In the old days this would have been something like this (pseudo code):
in the custom product's install.
The question is: how would you do that from an extension profile
without replicating the entire 'File' fti for just this little change?
An XML file with this content should work:
This is the easy part. But the original question was how to do that in a
loop based on a condition:
for type in types:
if type in NOT_IMPLICITLY_ADDABLE:
That doesn't work in GenericSetup. You have to add a small XML file for
each content type as in this example:
Zope-CMF maillist - Zope-CMF@lists.zope.org
See http://collector.zope.org/CMF for bug reports and feature requests