[Zope-CMF] metadata: enforce vocabulary

Dieter Maurer dieter@handshake.de
Fri, 11 Apr 2003 00:01:59 +0200


Rob Boyd wrote at 2003-4-9 09:11 -0700:
 > Is the intent of the 'enforce vocabulary' option in
 > the metadata tool to disallow entry of arbitrary
 > values into the Subject (or other elements)?
 > 
 > For a particular content type, I am supplying a
 > vocabulary for the Subject element, and checking the
 > enforce option.  When I edit the metadata for an
 > instance of that content type, I can type in a string
 > into the Subject textarea that does not equal a value
 > in my vocabulary, and can update the content with that
 > change. I know it goes into effect because Topics
 > querying for that 'non-allowed' subject keyword will
 > find it.  I'm using CMF 1.3.1, btw.  Am I missing the
 > point about what 'enforce vocabulary' is supposed to
 > do?

You must call the metadata tools validation method in the metadata
edit action. This is not done automatically.

I do not know the name of the validation method and the
metadata edit action. You must look them up yourself.


Dieter