Register a resource
name
*
-
TextLine
(default =
u''
)
The name shows up in URLs/paths. For example 'foo'.
type
*
-
GlobalInterface
(default =
None
)
allowed_attributes
-
Tokens
(default =
None
)
allowed_interface
-
Tokens
(default =
None
)
component
-
GlobalObject
(default =
None
)
Python name of the implementation object. This must identify an object in a module using the full dotted name. If specified, the factory field must be left blank.
factory
-
GlobalObject
(default =
None
)
Python name of a factory which can create the implementation object. This must identify an object in a module using the full dotted name. If specified, the component field must be left blank.
layer
-
LayerField
(default =
None
)
permission
-
Permission
(default =
None
)
Permission required to use this component.
provides
-
GlobalInterface
(default =
<InterfaceClass zope.interface.Interface>
)
A view can provide an interface. This would be used for views that support other views.
* = required