Skip to content

Category Archives: Archetypes

LinguaPlone and redirection

One of our current projects working with Plone requires multilingual content using the LinguaPlone product. One of the features that […]

Altering an Archetypes validator after the schema has been defined

To change the validator for a field on an Archetypes schema after the schema has been defined is not as simple as it first looks. You can’t just alter the value of the “Field.validators“ property, you see…. Like you would assume, firstly set the field’s “validators“ property to be the required string or tuple as you would in the schema definition. Then call the field’s “_validationLayer()“ method. This will turn the value that you have provided into a ValidationChain as required.