plone - How to change field changeNote from IVersionable behavior to be required -


i have use case users should allways fill changenote field when saving changes on content. possible (ttw) change changenote field iversionable behavior required ? , if not, possible in code ? best way override standard fields properties foreign/preinstalled behaviors ?

i don't know if there's way may override value of required attribute implementing in code:

(pdb) plone.app.versioningbehavior.behaviors import iversionable (pdb) iversionable <schemaclass plone.app.versioningbehavior.behaviors.iversionable> (pdb) iversionable['changenote'] <zope.schema._bootstrapfields.textline object @ 0x7fe45a60f550> (pdb) iversionable['changenote'].required false (pdb) iversionable['changenote'].required = true (pdb) iversionable['changenote'].required true 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -