<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    >

  <browser:page
      name="view"
      for="..content.todo.ITodo"
      class=".todo_view.TodoView"
      template="templates/todo_view.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="context-menu"
      for="..content.todo.ITodo"
      class=".todo_view.TodoView"
      template="templates/context-menu.pt"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="todo_sidebar"
      for="..content.todo.ITodo"
      class=".todo_view.TodoSidebar"
      permission="zope2.View"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

  <browser:page
      name="todo_in_sidebar"
      for="..content.todo.ITodo"
      class=".todo_view.TodoView"
      template="templates/todo_in_sidebar.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <!-- Override the workflone_menu View, but re-use the template -->
  <configure package="ploneintranet.layout.browser">
    <browser:page
        name="workflow_menu"
        for="ploneintranet.todo.content.todo.ITodo"
        class="ploneintranet.todo.browser.todo_view.TodoWorkflowMenu"
        template="templates/workflow_menu.pt"
        permission="zope2.View"
        layer="ploneintranet.todo.browser.interfaces.IPloneintranetTodoLayer"
        />
  </configure>

  <browser:page
      name="add_task"
      for="Products.CMFCore.interfaces.IFolderish"
      class=".todo_add.AddTask"
      permission="cmf.AddPortalContent"
      />

  <browser:page
      name="add_task"
      for="ploneintranet.todo.interfaces.ITodoApp"
      class=".todo_add.AppAddTask"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="get_milestones_for_container"
      for="ploneintranet.todo.interfaces.ITodoApp"
      class=".todo_add.GetMilestonesForContainer"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="app-todo"
      for="ploneintranet.layout.app.IApp"
      class=".app.View"
      template="templates/app.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="app-todo-search-results"
      for="ploneintranet.layout.app.IApp"
      class=".app.View"
      template="templates/app-results.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="my-tasks"
      for="ploneintranet.layout.app.IApp"
      class=".app.MyTasksView"
      template="templates/app.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="my-tasks-search-results"
      for="ploneintranet.layout.app.IApp"
      class=".app.MyTasksView"
      template="templates/app-results.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="personal-tasks"
      for="ploneintranet.layout.app.IApp"
      class=".app.PersonalTasksView"
      template="templates/app.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="personal-tasks-search-results"
      for="ploneintranet.layout.app.IApp"
      class=".app.PersonalTasksView"
      template="templates/app-results.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="workspace-tasks"
      for="ploneintranet.workspace.interfaces.IBaseWorkspaceFolder"
      class=".app.WorkspaceTasksView"
      template="templates/app.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="workspace-tasks-search-results"
      for="ploneintranet.workspace.interfaces.IBaseWorkspaceFolder"
      class=".app.WorkspaceTasksView"
      template="templates/app-results.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="workspace-tasks"
      for="ploneintranet.workspace.case.ICase"
      class=".app.CaseTasksView"
      template="templates/app.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="workspace-tasks-search-results"
      for="ploneintranet.workspace.case.ICase"
      class=".app.CaseTasksView"
      template="templates/app-results.pt"
      permission="zope2.View"
      layer=".interfaces.IPloneintranetTodoLayer"
      />

  <browser:page
      name="delete_confirmation"
      for="..content.todo.ITodo"
      class=".todo_delete.TodoDeleteConfirmationForm"
      permission="zope2.DeleteObjects"
      layer="ploneintranet.layout.interfaces.INoBarcelonetaLayer"
      />

</configure>
