BBB: DEPRECATED
Creating layers via ZCML has been deprecated. The
browser:layer
directive will be removed in Zope 3.5. Layers
are now interfaces extending
zope.publisher.interfaces.browser.IBrowserRequest
.
They do not need further registration.
Previous documentation
Defines a browser layer
You must either specify a `name` or an `interface`. If you specify the name, then a layer interface will be created for you based on the name and the `base` interface.
If you specify the `name` and the `interface`, then the layer will be registered twice for the name. This way we can be backward compatible. The layer is still available via its dotted name.
If you do not specify a `base`, then `IBrowserRequest` is used by default.
You cannot specify both, the `interface` and the `base` attribute.
base
-
GlobalObject
(default =
None
)
The name of the skin
bbb_aware
-
Bool
(default =
None
)
Backward-compatability aware?
interface
-
GlobalInterface
(default =
None
)
name
-
TextLine
(default =
None
)
The name of the layer.
* = required