-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raphael Ritz wrote:
> Suresh V. schrieb:
>> Katja Süss wrote:
>>
>>>
>>> why not? A product with custom content types and one or two of
>>> standard content types allowed only in defined folderish custom types.
>>> As I don't need to modify for example ATFile I don't want to subclass
>>> this only to make it not allowed in general. For the moment I don't
>>> see another way to create a profiles/install/types/ATFile.xml
>>
>> Shouldn't you be using allowed_types for your new folderish types and
>> not muck with ATDocument/ATFile etc.?
>>
> 
> 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):
> 
>   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 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 scope.
I don't want to make it easy for "add-ons" to scribble on other people's
types (although yuppie's suggestion would work):  the model here is that
either you are configuring the site *as a whole*, or you are "extending"
it by making "well-behaved" extensions to it.


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          [EMAIL PROTECTED]
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

iD8DBQFFEolC+gerLs4ltQ4RAhlXAKClLH/HjdwLjJ10P0p+TbGqlXR8cgCgiLS1
NIlkdwrrxJMfo0LChFCTdbU=
=iwpV
-----END PGP SIGNATURE-----

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to