Registering additional validators on PloneFormGen

59 Views Asked by At

I'm trying to register a new validator to the available list of validators you can select in a PloneFormGen field.

The task seems simple at the beginning: I registered a new Archetypes validator and I found a way to add it to the dropdown list (through a monkey-patch to add new item to stringValidators tuple) and a call to initStringValidators method of the PFG tool.

Still, selecting my new validator will not lead to anything: the __call__ method is never called.

What I'm missing?

0

There are 0 best solutions below