Nidelven IT - All about Python, Zope & Plone - and Open Source!

Here you'll find issues related to our services. Mostly about Python, Zope and Plone, as well as hosting-related issues.

"Keeping IT real"






Older entries



Atom - Subscribe - Categories
Previous | Next

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]

Add comment (text format)

Passphrase

A passphrase is required to comment on this weblog. It is required to make sure that bots aren't doing automatic spamming. It is: nit is the best!.

Title

Name

Email

Comment