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
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.
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -