You are here: Home Blog archive 2011 September 01 Fix for 404 Not Found Error for @@manage-portlets

Fix for 404 Not Found Error for @@manage-portlets

by Chris Crownhart — last modified Sep 01, 2011 12:35 PM

In the midst of upgrading a Plone site from 2.5.x to 3.3.x (and eventually to 4.x), we discovered certain custom content types were returning a 404 error when accessing the @@manage-portlets page.

This one took a while to track down, so I thought I would write down our solution.  It turned out to be easy.  We simply added an interface to our custom content type's class as follows:

First import the necesary modules:

from zope.interface import implements
from plone.portlets.interfaces import ILocalPortletAssignable


Then we added an implements line to our class:

class SiteFolderCT(BaseFolder):
    """An Archetype for an SiteFolder application"""
    <the rest of the class code...>


I hope this helps out others.

Document Actions

less imports

Avatar Posted by Davi Lima at Sep 09, 2011 03:55 PM
Well, it seems you shouldn't need to import classProvides nor IPortletRenderer since you don't use them in the SiteFolderCT class. Is that right?

Cleaned up

Avatar Posted by Chris Crownhart at Sep 09, 2011 03:56 PM
Davi, thanks for pointing that out. You are correct, those are not used. I cleaned up the example to be correct.

Add comment

You can add a comment by filling out the form below. Plain text formatting.

You are not logged in. You may optionally enter your username and password below. If you don't enter anything, this comment will be posted as 'Anonymous User'.
Enter the word
Copyright © 2003-2018 Core Software Group | 303/809-1001 | Fort Collins, Colorado | All rights reserved.