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

Package Layout

Our new content types will be contained in a new package, called optilux.cinemacontent. As before, we will create a skeleton using Paste Script and register the new package with our project’s buildout environment. In the src/ directory, we run the following command:

$ paster create -t plone optilux.cinemacontent

As before, we use optilux as the namespace of the package and cinemacontent as the package name. We must also remember to answer True to the question, whether we want a Zope 2 product. This is because Archetypes’ content type registration code should be run during product initialization.

We must then inform our build environment of the new package. Add the following to buildout.cfg:

[buildout] ... develop = src/optilux.policy ...

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