[Zope-CMF] Re: GenericSetup ATContentTypes global_allow
tseaver at palladion.com
Tue Sep 19 13:24:46 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Katja Süss wrote:
>>> How can I do for type in types: if type in
>>> 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>
> Ok, I do it like this for my custom types. But what to do with
> ATDocument, etc?
If you are creating a "base" profile (one which controls the *entire*
site), then you will have 'types/ATDocument.xml' inside it, and can
modify that flag yourself. If you *aren't* creating a base profile,
then why would you want to modify the types created in the base?
"Extension" profiles are normally "additive" to the site.
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v22.214.171.124 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Zope-CMF