iElectric/Products.TinyMCE — Issue #18: Anchor filtering only works for primary fields
Author: tomgross
Created: 2011-11-08 12:28:05+00:00
State: open

The filtering of link anchors only works for content-types with a primary field.

a) Only the primary field is scanned for anchors.
b) If a content-type doesn't have a primary field (like PloneFormGen FormFolder) the scanning code fails.

Traceback (innermost last):
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 120, in jsonDetails
Module Products.TinyMCE.adapters.JSONDetails, line 67, in getDetails
Module Products.TinyMCE.browser.atanchors, line 16, in listAnchorNames
AttributeError: 'NoneType' object has no attribute 'getAccessor'