Modification dates of Archetypes objects are set automatically to the current date and time when an object is reindexed. Usually […]
I recently had the problem of finding out if a content type in Plone implemented a certain interface, but only […]
One of our current projects working with Plone requires multilingual content using the LinguaPlone product. One of the features that […]
I’m currently working on the latest version of our Business Directory product for Business Link Kent (it should be going […]
In the general category of ‘you learn something new every day’…. Today I’m back using Plone (it’s been a while!). […]
This is an issue that has cropped up on a couple of our sites. We generally only use Squid to […]
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.