<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
    i18n_domain="ploneintranet.suite">

  <five:registerPackage package="." initialize=".initialize" />

  <!-- Include configuration for dependencies listed in setup.py -->
  <includeDependencies package="." />

  <include package="ploneintranet.activitystream"/>
  <include package="ploneintranet.async"/>
  <include package="ploneintranet.core"/>
  <include package="ploneintranet.messaging"/>
  <include package="ploneintranet.microblog"/>
  <include package="ploneintranet.microblog" file="subscribers.zcml"/>  
  <include package="ploneintranet.network"/>
  <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.notifications"/>
  <include package="ploneintranet.pagerank"/>
  <include package="ploneintranet.layout"/>
  <include package="ploneintranet.theme"/>
  <include package="ploneintranet.themeswitcher"/>
  <include package="ploneintranet.todo"/>
  <include package="ploneintranet.workspace"/>

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

  <genericsetup:registerProfile
      name="ldap"
      title="Plone Intranet:  Suite : LDAP"
      directory="profiles/ldap"
      description="Installs LDAP support in Plone Intranet"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      />

  <genericsetup:registerProfile
      name="ldap-uninstall"
      title="Plone Intranet: Suite : LDAP Uninstall"
      directory="profiles/ldap-uninstall"
      description="Removes LDAP support from Plone Intranet"
      provides="Products.GenericSetup.interfaces.EXTENSION"
      />

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

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

  <!-- 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" />


  <genericsetup:upgradeStep
      title="Enable barceloneta specific workspace layer"
      description="Enable fallback views for barceloneta workspace"
      source="*"
      destination="0008"
      handler=".upgrades.barceloneta_workspace"
      profile="ploneintranet.suite:default" />


  <!-- -*- extra stuff goes here -*- -->

</configure>
