[Zope] filter_content_type / allowed_content_types query

David Pratt fairwinds at eastlink.ca
Sat May 21 21:23:13 EDT 2005


Thanks Dieter for clarifying this.  I was not sure and could not find 
anything on these so thought I would ask.  I think I got the idea they 
might restrict mime types from Archetypes which has a similarly named 
method.

Regards,
David

On Saturday, May 21, 2005, at 03:10 PM, Dieter Maurer wrote:

> David Pratt wrote at 2005-5-21 12:36 -0300:
>> I am creating a CMF product.  It is simple and will only have an id,
>> title, description and the ability to upload its content.  I am 
>> wanting
>> to restrict the files uploaded to a certain mime type, specifically
>> .txt files (plain text).
>>
>> I see many products like this:
>>
>>  'filter_content_types' : 0,
>>  'allowed_content_types': (),
>>
>> but can't seem to find an example where it is creating this kind of
>> restriction
>
> These are used as defaults for "Filter content types"
> and "Allowed contents types", respectively, for the type
> factories (look in "portal_types --> <sometype>").
>
> They have nothing to do with MIME types and uploading.
>
> Instead, they control what other types can be contained
> in a folder like type.
>
> -- 
> Dieter
>


More information about the Zope mailing list