Re: silva metadata broken?
Guido Wesdorp <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Marc Petitmermet wrote: > the first problem starts when i try to test the listfield in the > "test" tab. regardless of which element i choose from the list i get > the following error when input is required: > > field_id error_key error_text > cat required_not_found Input is required but no input given. > 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. > ignoring the above test results i initialized the metadataset anyway > and added it to silva document and silva folder. but now silva throws > up with the error below when clicking on the properties tab (traceback > at the end): > > Error Type: KeyError > Error Value: Wrong item value [[]] > 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). Cheers, Guido