<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:plone="http://namespaces.plone.org/plone"
    i18n_domain="untranslated"
    >

  <plone:behavior
      title="Case Metadata"
      description="Adds Case specific Metadata"
      provides=".case.ICaseMetadata"
      />

  <plone:behavior
      name="quaive.image_field"
      title="Image field"
      provides=".image.IImageField"
      />

  <plone:behavior
      name="quaive.file_field"
      title="File field"
      factory=".file.FileField"
      provides=".file.IFileField"
      for="plone.app.contenttypes.interfaces.IFile"
      marker=".file.IFileFieldMarker"
      />

  <plone:behavior
      name="quaive.event"
      title="PloneIntranet Event Fields"
      provides=".event.IPloneIntranetEvent"
      />

  <plone:behavior
      name="quaive.mail"
      title="Mail"
      description="Adds mail behavior"
      provides=".mail.IMail"
      />

  <plone:behavior
      name="quaive.trashable"
      title="Trashable item behavior"
      description="Declares that an item can be trashed"
      provides="..interfaces.ITrashable"
      />

  <!-- behavior for turning a workspace into a membrane group -->
  <plone:behavior
      name="quaive.group"
      title="Membrane Group (Workspace)"
      description="Use this content as a membrane group"
      factory=".group.MembraneWorkspaceGroup"
      provides=".group.IMembraneGroup"
      for="ploneintranet.workspace.workspacefolder.IWorkspaceFolder"
      marker=".group.IMembraneGroupMarker"
      />

  <plone:behavior
      name="quaive.subspace"
      title="Subspace"
      description="Provides additional fields and methods to Workspaces and Superspaces"
      provides=".subspace.ISubspace"
      />

  <adapter
      factory=".group.MembraneWorkspaceGroup"
      provides="Products.membrane.interfaces.IGroup"
      />
  <!-- Adapt our dexterity membrane groups behavior to IMembraneGroupProperties,
  so that our membrane-workspaces can have property sheets, e.g. for title -->
  <adapter
      factory=".group.MembraneGroupProperties"
      provides="Products.membrane.interfaces.IMembraneGroupProperties"
      />

  <!-- Adapt dexterity group users to IMembraneGroupGroups so that the
  lookup of group->groups in PAS is working for our workspaces.
  See the docstring of MembraneGroupsProvider for more details.
   -->
  <adapter
      factory="ploneintranet.userprofile.adapters.MembraneGroupsProvider"
      provides="Products.membrane.interfaces.group.IMembraneGroupGroups"
      for=".group.IMembraneGroupMarker"
      />

</configure>
