Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.contenttypevalidator

How to install Products.ContentTypeValidator

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.contenttypevalidator
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
2.0b3
2.0b4Never BuiltWhy not?
2.0b3 Available View build log
2.0b2 Available View build log
2.0b1 Available View build log
Windows (64-bit)
2.0b3
2.0b4Never BuiltWhy not?
2.0b3 Available View build log
2.0b2 Available View build log
2.0b1 Available View build log
Mac OS X (10.5+)
2.0b3
2.0b4Never BuiltWhy not?
2.0b3 Available View build log
2.0b2 Available View build log
2.0b1 Available View build log
Linux (32-bit)
2.0b3
2.0b4Never BuiltWhy not?
2.0b3 Available View build log
2.0b2 Available View build log
2.0b1 Available View build log
Linux (64-bit)
2.0b4 Available View build log
2.0b3 Available View build log
2.0b2 Available View build log
2.0b1 Available View build log
 
Author
License
GPL
Dependencies
Lastest release
version 2.0b4 on Jan 9th, 2014

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.0b4 (2012-11-20)
  • Added unittests [gbastien]
  • Updated translations [gbastien]
2.0b3 (2010-10-24)
  • Updated German and Français translation [macagua]
  • Added Spanish translation [macagua]
  • Added master template .pot file [macagua]
  • 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

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.