O'Reilly logo

Professional Plone Development: Building robust, content-centric web applications with Plone 3, an open source Content Management System by Martin Aspeli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Overriding Zope 3 Components

In the Zope 3 Component Architecture, a browser view is a Python class and/or page template (depending on how it is configured) that acts as a page or action. Unlike templates in skin layers, browser views are registered for a particular type of object, described by an interface. They can also be distinguished from content objects and acquirable attributes explicitly. We will learn more about writing and configuring browser views in Chapters 8, 9, and 11, but for now consider the following registration in Zope 3’s ZCML (Zope Configuration Meta-Language) syntax:

<browser:page name="list-contents" for=".interfaces.IMyType" permission="zope2.View" class=".browser.listcontents.ListContentsView" template="browser/listcontents.pt" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required