Products.ContentTypeValidator
Provides a archetypes field validator for content types of files
Project Description
Introduction
Provides an archetypes validator for file and image fields to only allow specific content types to be added.
Example
from Products.ContentTypeValidator.validator import ContentTypeValidator
...
FileField('file',
validators = (ContentTypeValidator(('audio/mpeg', 'audio/x-mp3', 'audio/x-mpeg', 'audio/mp3',))),
widget = atapi.FileWidget(
description = '',
label=_(u'label_audio', default=u'Audio file'),
show_content_type = False,),
),
...
History
2.0b3 (2010-10-24)
- Set zip_safe flag to False
2.0b2 - (2010-10-21)
- Removed unused generic setup profile
- Added README
2.0b1 - (2010-10-20)
- First public release
1.2 - (Unreleased)
- Fixed mimetype parsing in validator
1.1 - (Unreleased)
- Changes added / profiles added / version increase
1.0 - (Unreleased)
- Init Rls for plone3
Current Release
No stable release available yet.
All Releases
| Version | Released | Description | Compatibility | Licenses | Status |
|---|---|---|---|---|---|
| 2.0b3 | Set zip_safe flag to False More about this release… |
Plone 4
Plone 3
|
GPL | beta | |
| 2.0b2 | Removed unused generic setup profile and added README More about this release… |
Plone 4
Plone 3
|
GPL | beta | |
| 2.0b1 | First public release More about this release… |
Plone 4
Plone 3
|
GPL | beta |

