Re: silva metadata broken?

Marc Petitmermet <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
> I think this is harmless, the form won't validate correctly because 
> some data is missing or something, it's not a measure of whether your 
> metadata set works or not. I get the same error and for me it works 
> like a charm.

this is disturbing. why can i test at all when it's known that the test 
does not work? this should either work or all the irrelevant or 
non-working tabs should be removed.

> The problem seems to be that you don't provide an initial (default) 
> value for the field, it seems that if you don't do that Formulator 
> somehow provides [] as the default value, which is obviously not in 
> your list, hence the error. You can fix it by simply using one of your 
> values as the default (so if the first value is 'foo', you can enter 
> 'foo' in your 'default' field).

although this is a workaround for the problem i really don't like this. 
in my opinion this is a bug and should be fixed. e.g. i have a 
listfield and "Select First Item" is selected. therefore, there IS a 
initial value. looking at the silva-extra and silva-content 
metadatasets there are also no default values set. hopefully, this is 
only a bug with the listfields (i just tested the multicheckboxfield 
and this does work without problems).

thanks anyway for the temporary workaround.
(shall i create an issue in the issuetracker?)

regards,
marc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.