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

  <include package="Products.CMFCore" file="permissions.zcml" />
  <include package=".tiles" />

  <include
      zcml:condition="installed plone.app.ldap"
      file="ldap.zcml"
      />

  <browser:page
      name="userprofile-view"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class=".userprofile.UserProfileView"
      permission="zope2.View"
      template="templates/userprofile.pt"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
      />

  <!-- This edit page is linked to the ploneintranet.theme layer,
       so that CMS editors get the default edit page -->
  <browser:page
      name="edit"
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      class=".forms.UserProfileEditView"
      permission="cmf.ModifyPortalContent"
      layer="ploneintranet.theme.interfaces.IThemeSpecific"
      />

  <browser:page
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      name="author"
      class=".userprofile.AuthorView"
      permission="zope2.View"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      name="my-profile"
      class=".userprofile.MyProfileView"
      permission="zope2.View"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
      />

  <browser:page
      for="plone.dexterity.interfaces.IDexterityContainer"
      name="import-avatars"
      class=".user_import.ImportAvatarsView"
      permission="cmf.ManagePortal"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer"
      name="import-users"
      class=".user_import.CSVImportView"
      permission="cmf.ManagePortal"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer"
      name="sync-user-properties"
      class="..sync.AllUsersPropertySync"
      permission="cmf.ManagePortal"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
      />

  <browser:page
      for="ploneintranet.userprofile.content.userprofilecontainer.IUserProfileContainer"
      name="sync-users"
      class="..sync.AllUsersSync"
      permission="cmf.ManagePortal"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
      />

  <browser:page
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      name="sync"
      class="..sync.UserPropertySync"
      permission="cmf.ManagePortal"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="Products.CMFPlone.interfaces.IPloneSiteRoot"
      name="avatars"
      class=".userprofile.AvatarsView"
      permission="zope2.View"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      name="avatar.jpg"
      class=".userprofile.MyAvatar"
      permission="zope2.View"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      for="ploneintranet.userprofile.content.userprofile.IUserProfile"
      name="avatar_profile.jpg"
      class=".userprofile.MyAvatar"
      attribute="avatar_profile"
      permission="zope2.View"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
     />

  <browser:page
      name="workspace-group-view"
      for="*"
      class=".groups.WorkspaceGroupView"
      permission="zope2.View"
      template="templates/group.pt"
      layer="ploneintranet.userprofile.interfaces.IPloneintranetUserprofileLayer"
      />



</configure>
