[Zope-CMF] Metadata tool not used?

Yuppie schubbe@web.de
Wed, 24 Jul 2002 12:05:01 +0200


Chris Withers wrote:
>>>- the metadata forms are all hard-coded so that if you add new elements, or
>>>change the type of the ones there, the news elements aren't available for
>>>editing.
>>
>>Skins are *supposed* to be customized!
> 
> Yeah, but it seeems counterintuitive that when you add a metadata element
> using the metadata tool, it doesn't automatically appear on that form.
> 
> Would anyone else agree?

You can't use the metadata tool to add a metadata element, you just can 
add a metadata element to the metadata tool.
The metadata tool is just a registry for site-wide policies. So there is 
no need to change the form if you add an existing metadata element to 
this registry.

Tres Seaver wrote:
>> - validateMetadata is never called, so any policies about fields being 
>> required, etc, you create are never used 
> 
> When to apply such policies is a policy choice in itself;  for instance,
> some sites might want the policies applied at each edit, while others
> might want them applied only at workflow transitions, etc.

Yes. But this is just an argument against hard-coding this in the edit 
methods. What about implementing this in the default skin?

Yuppie