addform (

Define an automatically generated add form

The addform directive creates and registers a view for adding an object based on a schema.

Adding an object is a bit trickier than editing an object, because the object the schema applies to isn't available when forms are being rendered. The addform directive provides a customization interface to overcome this difficulty.


File: Zope3/ from (line 50, column 4) to (line 61, column 4)




Register custom widgets for a form.

This directive allows you to quickly generate custom widget directives for a form.

Besides the two required arguments, field and class, you can specify any amount of keyword arguments, e.g. style='background-color:#fefefe;'. The keywords will be stored as attributes on the widget instance. To see which keywords are sensible, you should look at the code of the specified widget class.


* = required