Tuesday, December 29, 2009

Overriding a view class

I had some trouble overriding one of Plone (4)'s view classes. The tutorial at
were a great help.

The step below should not be needed anymore.,A fix for it has been committed to Plone 4 trunk. You can just use Interface
But the missing step was to subclass the theme marker interface from IDefaultPloneLayer, instead of from zope.interface.Interface

from plone.theme.interfaces import IDefaultPloneLayer

class IPloneInvitePolicy(IDefaultPloneLayer):
""" A marker interface for the theme layer """

No comments: