Five tries to use the Zope 3 ZCML directives where possible, though does sometimes subset the possible attributes. It also introduces a few directives of its own under the five namespace.
Directives are listed per namespace, in alphabetic order.
Hook an adapter factory to an interface.
Declare interface and permissions on content object. Declares Zope 2 permissions.
Way to make Zope 2 permissions available to Five, title is permission name.
Redefine a permission in included ZCML as another one.
Declare a skin, consisting of layers.
Declare a global utility.
Register an interface in ZCML.
Register an object factory.
Provide a module under an alias name, e.g. for persistent backward compatability.
Install a hook on a hookable object.
Declare a page view for an interface. Permission is a Zope 2 permission.
Declare multiple page views for an interface. Permissions are Zope 2 permissions.
Declare the name of the view that should be used for the default when viewing the object; i.e. when the object is traversed to without a view.
Declare the default skin used.
Create an edit form based on a schema.
Create an add form based on a schema.
Declare a layer.
Declare a menu
Declare menuItems
Make a class declare it implements an interface.
Loads ZCML in all Zope 2 products. First processes all meta.zcml files, then processes all configure.zcml files.
Loads overriding ZCML in all products (overrides.zcml).
This statement is now deprecated, since the functionality now is on Zope Core.
Make a Zope 2 content class traversable in the Zope 3 manner using Five. This is used to attached views, resources and other things to Zope 2 objects.
This statement is now deprecated, since the functionality now is on Zope Core.
Make a Zope 2 content class use a Zope 3 default view when looking at it without any paths appended to it. This works then instead of index_html in Zope 2.
Retrieve size information for a Zope 2 content class via a Zope 3 style ISized adapter.
Make events be sent for Zope 2 container objects, instead of calling old methods like manage_afterAdd. These old methods will still be called for classes specified in a deprecatedManageAddDelete directive.
Specify a class that needs its old deprecated methods like manage_afterAdd, manage_beforeDelete and manage_afterClone to be called. Modern classes should use event subscribers instead.
Loads all files with .pt extension in a directory as pages.
Registers Five content with Zope 2.
Turns a class into an implementation of IPossibleSite so that its instances can be serve as local sites. Unless otherwise specified, a default implementation's methods will be used to make the class comply with the IPossibleSite interface.