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

5. Component Configuration with ZCML

ZCML (Zope Component Meta-Language) is an XML format used by Zope 3 to configure components such as utilities, adapters, and views. We have already seen ZCML files in the optilux.policy package, and they are found throughout Plone and Zope.

ZCML files are usually rooted in a <configure /> node, which includes directives from one of several XML namespaces, including zope for core component configuration, browser for configuration of views and browser resources, and five for Zope 2 integration directives.

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:browser="http://namespaces.zope.org/browser">
    ...
</configure>

We will normally describe specific ZCML directives ...

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