[Product-Developers] UID() - should all content objects have it, and how?
Daniel Dekany
ddekany at freemail.hu
Thu Dec 17 08:32:11 UTC 2009
I'm using TinyMCE 1.1rc7 (on Plone 3.3.2). When I click on the "link" or
"image" icon and in the dialog I browse to a folder where a contained object
has no UID() and that object is also not filtered out by TinyMCE by
"resource type" (so it's linkable, or an image, or is a folder), it will not
show the folded contents because this happens:
Module ZPublisher.Publish, line 119, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 42, in call_object
Module Products.TinyMCE.browser.browser, line 40, in
jsonLinkableFolderListing
Module Products.TinyMCE.adapters.JSONFolderListing, line 107, in
getListing
Module simplejson, line 230, in dumps
Module simplejson.encoder, line 202, in encode
Module simplejson.encoder, line 426, in _iterencode
Module simplejson.encoder, line 400, in _iterencode_dict
Module simplejson.encoder, line 323, in _iterencode_list
Module simplejson.encoder, line 400, in _iterencode_dict
Module simplejson.encoder, line 434, in _iterencode
Module simplejson.encoder, line 177, in default
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.)
--
View this message in context: http://n2.nabble.com/UID-should-all-content-objects-have-it-and-how-tp4179022p4180187.html
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers
mailing list