<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser">

    <include package="Products.Five" file="meta.zcml" />
    <include package="Products.Five" />
    <include package="plone.schemaeditor"/>

    <!-- dummy schema editing context -->
    <browser:page
        name="schemaeditor"
        for="*"
        class=".fixtures.DummySchemaContext"
        permission="plone.schemaeditor.ManageSchemata"
        allowed_interface="OFS.interfaces.IItem" />

    <subscriber
        for="plone.schemaeditor.interfaces.IField
             zope.lifecycleevent.interfaces.IObjectModifiedEvent"
        handler=".fixtures.log_event"
        />
    <subscriber
        for="plone.schemaeditor.interfaces.IField
             zope.lifecycleevent.interfaces.IObjectMovedEvent"
        handler=".fixtures.log_event"
        />
    <subscriber
        for="zope.interface.interfaces.IInterface
             zope.container.interfaces.IContainerModifiedEvent"
        handler=".fixtures.log_event"
        />
    <subscriber
        for="plone.schemaeditor.interfaces.ISchemaContext
             plone.schemaeditor.interfaces.ISchemaModifiedEvent"
        handler=".fixtures.log_event"
        />

    <!-- use a form layout that doesn't pull in main_template -->
    <adapter factory=".tests.layout_factory"/>

    <!-- provide a widget renderer a la plone.app.z3cform -->
    <browser:page
        name="ploneform-render-widget"
        for="z3c.form.interfaces.IWidget"
        class=".tests.RenderWidget"
        permission="zope2.View"
        />

    <browser:page
        name="contexteditor"
        for="*"
        class=".fixtures.EditView"
        permission="plone.schemaeditor.ManageSchemata" />

</configure>
