<record name="my.addon.settings.persons">
<field type="plone.registry.field.JSONField">
<title>JSON Data</title>
<description>store the data in this field, used by Vocabulary</description>
</field>
<value />
</record>
File "/home/plone/my.addon/src-mrd/plone.app.registry/plone/app/registry/exportimport/handler.py", line 79, in importRegistry
importer.importDocument(body)
- __traceback_info__: registry/main.xml
File "/home/plone/my.addon/src-mrd/plone.app.registry/plone/app/registry/exportimport/handler.py", line 125, in importDocument
self.importRecord(node)
File "/home/plone/my.addon/src-mrd/plone.app.registry/plone/app/registry/exportimport/handler.py", line 240, in importRecord
raise TypeError(
- __traceback_info__: record name: my.addon.settings.persons
TypeError: Field of type plone.registry.field.JSONField used for record my.addon.settings.persons is not supported.
if i look in the handlers.zcml and fields.py, i think we need a little bit code for JSONFields
I use the current main branches of
Creation via Code looks good:
But via registry.xml it fails:
if i look in the handlers.zcml and fields.py, i think we need a little bit code for JSONFields