silva metadata broken?
Marc Petitmermet <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
dear developers
can it be that silva metadata is broken somehow (silva-1.0-all)? i
tried to create my own dataset and i only get errors. my plan was as
following: i want to categorize each document and folder with the help
of a pull-down menu in the properties tab. therefore, i created a new
metadataset called category and added a listfield element with the
items a, b and c, size 1.
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.
there are no errors when input is not required but the test never shows
the result regardless of the selected item:
select a: -> test successful:
select b: -> test successful:
select c: -> test successful:
testing the same with a standard formulator form the result is complete
different: it's exactly as you would expect it;-)
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 [[]]
this used to work because i have done it before, although it's a long
time ago since i last looked at it. is this a bug or is my procedure
incorrect?
regards,
marc
Traceback (innermost last):
Module ZPublisher.Publish, line 98, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.FileSystemSite.FSPageTemplate, line 191, in _exec
Module Products.FileSystemSite.FSPageTemplate, line 124, in pt_render
Module Products.PageTemplates.PageTemplate, line 95, in pt_render
- <FSPageTemplate at /silva/service_views/Silva/edit/tab_metadata
used for
/silva/service_views/SilvaDocument/edit/VersionedContent/Document>
Module TAL.TALInterpreter, line 200, in __call__
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 412, in do_optTag_tal
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 703, in do_useMacro
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 726, in do_defineSlot
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 669, in do_condition
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 669, in do_condition
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 703, in do_useMacro
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 414, in do_optTag_tal
Module TAL.TALInterpreter, line 399, in do_optTag
Module TAL.TALInterpreter, line 394, in no_tag
Module TAL.TALInterpreter, line 244, in interpret
Module TAL.TALInterpreter, line 473, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 220, in evaluate
- Line 19, Column 4
- Expression: <PythonExpr view.get_metadata(content) or nothing>
- Names:
{'container': <DirectoryViewSurrogate instance at 356fda0>,
'default': <Products.PageTemplates.TALES.Default instance at
0x15fab7c>,
'here': <DirectoryViewSurrogate instance at 31c23c0>,
'loop': <SafeMapping instance at 3780920>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0x15e47ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at 3780920>,
'request': <HTTPRequest,
URL=http://localhost:8080/silva/ssb/index/edit/tab_metadata>,
'root': <Application instance at 3309af0>,
'template': <FSPageTemplate at
/silva/service_views/Silva/edit/tab_metadata used for
/silva/service_views/SilvaDocument/edit/VersionedContent/Document>,
'traverse_subpath': [],
'user': admin}
Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
- __traceback_info__: view.get_metadata(content) or nothing
Module Python expression "view.get_metadata(content) or nothing",
line 2, in f
Module Products.FileSystemSite.FSPythonScript, line 104, in __call__
Module Shared.DC.Scripts.Bindings, line 306, in __call__
Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
Module Products.FileSystemSite.FSPythonScript, line 160, in _exec
Module None, line 69, in get_metadata
- <FSPythonScript at /silva/service_views/Silva/edit/get_metadata
used for
/silva/service_views/SilvaDocument/edit/VersionedContent/Document>
- Line 69
Module Products.SilvaMetadata.Binding, line 87, in renderElementView
Module Products.SilvaMetadata.Element, line 188, in renderView
Module Products.Formulator.Field, line 226, in render_view
Module Products.Formulator.Widget, line 455, in render_view
KeyError: Wrong item value [[]]