On Fri, Dec 18, 2009 at 20:44, Daniel Dekany <[email protected]> wrote:
>  TypeError: Missing.Value is not JSON serializable
>
> At JSONFolderListing, line 107, in getListing, TinyMCE eventually tries to
> convert results['items'][theIndexOfTheUIDlessObj] to JSON, which is a brain
> with UID=None. (Note that "Link using UIDs" is not checked in the TinyMCE
> settings.)

Incorrect, UID is Missing.Value, which the json library doesn't know
how to serialize. You can add custom serializers to the json library,
IIRC. A serializer for Missing.Value would remedy this situation
(possibly None would suffice, or omitting the key altogether).

-- 
Martijn Pieters

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to