Interface
zope.app.publisher.browser.metadirectives.ILayerDirective

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 interfaces

Attributes/Fields

* = required

Methods

There are no methods specified.

Adapters

Adapters where this interface is required:

Specific Adapters

There are no specific adapters registered for this interface.

Extended Adapters

There are no extended adapters registered for this interface.

Generic Adapters

Views

Browser

Specific views

There are no views available.

Extended views

Generic views

XML-RPC

HTTP

FTP

Other