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

  <!-- Include configuration for dependencies listed in setup.py -->
  <include package="collective.ftw.upgrade" />
  <include package="ploneintranet.activitystream" />
  <include package="ploneintranet.asynctasks" />
  <include package="ploneintranet.admintool" />
  <include package="ploneintranet.bookmarks" />
  <include package="ploneintranet.calendar" />
  <include package="ploneintranet.conference" />
  <include package="ploneintranet.contacts" />
  <include package="ploneintranet.core" />
  <include package="ploneintranet.help" />
  <include package="ploneintranet.messaging" />
  <include package="ploneintranet.microblog" />
  <include
      package="ploneintranet.microblog"
      file="subscribers.zcml"
      />
  <include package="ploneintranet.network" />
  <include package="ploneintranet.news" />
  <include package="ploneintranet.userprofile" />
  <include package="ploneintranet.search" />
  <include package="ploneintranet.library" />
  <include package="ploneintranet.attachments" />
  <include package="ploneintranet.docconv.client" />
  <include package="ploneintranet.invitations" />
  <include package="ploneintranet.imagebank" />
  <include package="ploneintranet.notifications" />
  <include package="ploneintranet.patches" />
  <include package="ploneintranet.layout" />
  <include package="ploneintranet.theme" />
  <include package="ploneintranet.themeswitcher" />
  <include package="ploneintranet.todo" />
  <include package="ploneintranet.utils" />
  <include package="ploneintranet.workspace" />
  <include package="quaive.resources.ploneintranet" />

  <genericsetup:registerProfile
      name="full"
      title="Plone Intranet:  Suite"
      description="Installs the full suite of Plone Intranet packages"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/full"
      post_handler="ploneintranet.suite.setuphandlers.full"
      />

  <!-- This is :default for historical reasons.
       The actual default installer is :full, which provides a themed site.
  -->
  <genericsetup:registerProfile
      name="default"
      title="Plone Intranet: -- [Suite base]"
      description="Unthemed installer for the suite of Plone Intranet packages"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/default"
      post_handler="ploneintranet.suite.setuphandlers.default"
      />

  <genericsetup:registerProfile
      name="uninstall"
      title="Plone Intranet: Suite : Uninstall"
      description="Uninstalls the Ploneintranet Suite"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/uninstall"
      post_handler="ploneintranet.suite.uninstall.uninstall"
      />

  <genericsetup:registerProfile
      name="testcontent"
      title="Plone Intranet:  Suite : Create Testing Content"
      description="WARNING: CANNOT BE UNINSTALLED! Do not run in a production environment. Creates fake user profiles and microblog posts."
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/testcontent"
      post_handler="ploneintranet.suite.setuphandlers.testcontent"
      />

  <genericsetup:registerProfile
      name="testing"
      title="ploneintranet.suite:testing"
      description="For running tests"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      directory="profiles/testing"
      />

  <!-- Has to go after the ploneintranet.suite profile definition -->
  <include package="ploneintranet.upgrade" />

  <!-- enable microblogging on workspaces -->
  <class class="ploneintranet.workspace.workspacefolder.WorkspaceFolder">
    <implements interface="ploneintranet.microblog.interfaces.IMicroblogContext" />
  </class>

  <utility
      factory=".hiddenprofiles.HiddenProducts"
      name="ploneintranet"
      />

  <utility
      factory=".hiddenprofiles.HiddenProfiles"
      name="ploneintranet"
      />

</configure>
