Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Make sure the value is json compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Nov 28, 2016
1 parent 72a7482 commit 2b44d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plone.server/plone/server/catalog/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from plone.server.security import getPrincipalsWithAccessContent
from plone.server.security import getRolesWithAccessContent
from plone.server.utils import get_content_path
from plone.server.json.serialize_value import json_compatible
from zope.component import queryAdapter
from zope.interface import implementer
from zope.schema import getFields
Expand Down Expand Up @@ -98,7 +99,7 @@ def __call__(self):
real_field = field.bind(behavior)
value = real_field.get(behavior)
ident = schema.getName() + '-' + real_field.getName()
values[ident] = value
values[ident] = json_compatible(value)

# Look for plone.indexer
# TODO
Expand Down

0 comments on commit 2b44d32

Please sign in to comment.