collective.easyslider and AttributeError: 'NoneType' object has no attribute 'getData'I installed collective.easyslider on a new site and things were looking good. But when somebody started adding slides to the slider, an AttributeError: 'NoneType' object has no attribute 'getData' popped up.
I looked at the logs and they didn't tell anything, so I had to manually start putting print statements in the PortalTransforms convertTo method to see what was going on. And then pdb.set_trace() when the offending part of the code was found.
Turns out that a mime type was missing in the mimetypes registry, adding a mime type with the id safe-html and the mime types text/x-html-safe fixed everything.
Strange that the error messages didn't display, but oh well.
[Permalink] [By morphex] [Python, Zope, Plone - and anything loosely related to that (Atom feed)] [2012 10 Aug 10:26 GMT+2]