Given that we plan to show an embedded video player when opening a Video page in our website, we must ensure that users won't be able to upload any kind of file other than FLV videos.
Archetypes can validate field inputs in different ways; the most common one is the use of a
validators property inside the schema field definition, as it's used in the previous section for the
We prefer using a more modern way to call a validator, a subscription adapter, which is basically a special class that declares to adapt another one and, in the case of Archetypes validators, it implements a specific event interface.
validators.pyfile inside the
contentssub-package of ...