<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:cmf="http://namespaces.zope.org/cmf"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    i18n_domain="senaite.core">

  <five:registerPackage package="." initialize=".initialize" />
  <i18n:registerTranslations directory="locales" />

  <!-- package includes -->
  <include package=".adapters" />
  <include package=".behaviors" />
  <include package=".browser" />
  <include package=".catalog" />
  <include package=".datamanagers" />
  <include package=".exportimport" />
  <include package=".migration" />
  <include package=".patches" />
  <include package=".permissions" />
  <include package=".schema" />
  <include package=".upgrade" />
  <include package=".z3cform" />

  <!-- portal skins -->
  <cmf:registerDirectory
      name="skins"
      directory="skins"
      recursive="True"
      />

  <!-- Profile -->
  <genericsetup:registerProfile
      name="default"
      title="SENAITE CORE"
      directory="profiles/default"
      description="SENAITE CORE Add-on"
      pre_handler="senaite.core.setuphandlers.pre_install"
      post_handler="senaite.core.setuphandlers.post_install"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      />

  <!-- Install Handler -->
  <genericsetup:importStep
      name="senaite.core.setuphandlers.install"
      title="SENAITE CORE: Run Setup Handler"
      description="Run install handler"
      handler="senaite.core.setuphandlers.install">
  </genericsetup:importStep>

  <!-- Hidden Profiles -->
  <utility
      factory=".setuphandlers.HiddenProfiles"
      name="senaite.core-hiddenprofiles"
      />
  
</configure>
