Register a view for a component
for_
*
-
Tokens
(default =
None
)
This should be a list of interfaces or classes
name
*
-
TextLine
(default =
u''
)
The name shows up in URLs/paths. For example 'foo'.
type
*
-
GlobalInterface
(default =
None
)
allowed_attributes
-
Tokens
(default =
None
)
By default, 'permission' only applies to viewing the view and any possible sub views. By specifying 'allowed_attributes', you can make the permission also apply to the extra attributes on the view object.
allowed_interface
-
Tokens
(default =
None
)
By default, 'permission' only applies to viewing the view and any possible sub views. By specifying this attribute, you can make the permission also apply to everything described in the supplied interface.
Multiple interfaces can be provided, separated by whitespace.
class_
-
GlobalObject
(default =
None
)
A class that provides attributes used by the view.
factory
-
Tokens
(default =
None
)
layer
-
LayerField
(default =
None
)
A skin is composed of layers. It is common to put skin specific views in a layer named after the skin. If the 'layer' attribute is not supplied, it defaults to 'default'.
permission
-
Permission
(default =
None
)
The permission needed to use the view.
provides
-
GlobalInterface
(default =
<InterfaceClass zope.interface.Interface>
)
A view can provide an interface. This would be used for views that support other views.
* = required