[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-22 Thread yuppie
Hi Tres! Tres Seaver wrote: Raphael Ritz wrote: In the old days this would have been something like this (pseudo code): typesTool['File'].manage_changeProperties(global_allow=False) in the custom product's install. The question is: how would you do that from an extension profile without

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-21 Thread yuppie
Hi! 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

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-21 Thread Raphael Ritz
Tres Seaver schrieb: [..] The question is: how would you do that from an extension profile without replicating the entire 'File' fti for just this little change? Then you aren't making an extension: it is really a base profile in disguise, as you want to control types outside your profile's

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Katja Süss wrote: Hi * How can I dofor 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

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-19 Thread Katja Süss
.. How can I dofor 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

[Zope-CMF] Re: GenericSetup ATContentTypes global_allow

2006-09-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Katja Süss wrote: .. How can I dofor 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