[Zope-CMF] Re: GenericSetup ATContentTypes global_allow
Katja Süss
k.suess at gmx.net
Tue Sep 19 13:11:21 EDT 2006
..
>> How can I do for type in types: if type in
>> NOT_IMPLICITLY_ADDABLE:
>> t = pttool.getTypeInfo(type)
>> t.global_allow = 0
>> for standard ATContentTypes
>> when using GenericSetup for a product?
>> Thanks for any hints,
>
> You shouldn't need to "post-process" the type information objects,
> because they have the 'global_allow' attribute stored in the profile
> data: just arrange to have that value be False
>
> E.g., instead of::
>
> <property name="global_allow">True</property>
>
> change it to::
>
> <property name="global_allow">False</property>
>
>
>
> Tres.
> - --
Ok, I do it like this for my custom types. But what to do with ATDocument, etc?
More information about the Zope-CMF
mailing list