Various utilities to patch standard Plone content types
PatchPloneContent is a collection of utilities, used to add or alter how standard Plone content types work using the monkeypatch technique.
Variables of interest in this module are content_types, a tuple collection of the class definitions of standard content types.
The functions of interest are content_classes_add_fields, which accepts a sequence of content classes as the first argument, and a sequence of fields to add as the second argument. As well as add_validator, which inserts validators into fields.
Should work with Plone 3 and 4, maybe 2 as well.
Note that archetypes.schemaextender is a perhaps bit more difficult product to use but more powerful.
Written by Morten W. Petersen, firstname.lastname@example.org
Included ATBlob in content types so that patching content_classes has all standard Plone content types.
Added info about archetypes.schemaextender in readme.txt.
Correct version number.
Added function to add validators to existing content types.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|Products.PatchPloneContent-1.0.4.tar.gz (16.9 kB) Copy SHA256 hash SHA256||Source||None||Jul 26, 2012|