[Zope-CMF] Re: GenericSetup ATContentTypes global_allow
Tres Seaver
tseaver at palladion.com
Tue Sep 19 12:30:56 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Katja Süss wrote:
> Hi *
> 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.
- --
===================================================================
Tres Seaver +1 202-558-7113 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFEBtA+gerLs4ltQ4RAkSaAJ44I9Hj3otYNF32CAYR3SBPtFg91wCcD2vI
nipGWj9HQKWsThVU3457Zhk=
=2nGg
-----END PGP SIGNATURE-----
More information about the Zope-CMF
mailing list