O'Reilly logo

Plone 3 Products Development Cookbook by Marcos F. Romero, Juan Pablo Giménez

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

Creating the user interface for Zope 3 content types

The Section class developed in Creating a folderish content type is working as expected, nevertheless it's not yet usable from a web browser. Like most content types in Plone, we need it to have add and edit forms and a view page. Fortunately, Zope 3 is on our side, so we will squeeze it.

Getting ready

Note

By convention, components are separated into modules or packages according to their intended target. Thus, all browser-related components will reside in a browser sub-package.

In your pox/banner folder, create the package by running:

mkdir src/pox.banner/pox/banner/browser 
touch src/pox.banner/pox/banner/browser/__init__.py

Note

In Linux, we usually run touch <name_of_file> to create an empty ...

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