<?xml version="1.0" encoding="UTF-8"?>
<object name="Samples"
        meta_type="Dexterity FTI"
        i18n:domain="senaite.core"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n">

  <!-- Title and Description -->
  <property name="title" i18n:translate="">Samples</property>
  <property name="description"></property>

  <!-- content-type icon -->
  <property name="icon_expr">senaite_theme/icon/sample</property>

  <!-- factory name; usually the same as type name -->
  <property name="factory">Samples</property>

  <!-- URL TALES expression to add an item TTW -->
  <property name="add_view_expr"></property>

  <property name="link_target"></property>
  <property name="immediate_view">view</property>

  <!-- Is this item addable globally, or is it restricted? -->
  <property name="global_allow">False</property>

  <!-- If we're a container, should we filter addable content types? -->
  <property name="filter_content_types">True</property>
  <!-- If filtering, what's allowed -->
  <property name="allowed_content_types">
  </property>

  <property name="allow_discussion">False</property>

  <!-- what are our available view methods, and what's the default? -->
  <property name="default_view">view</property>
  <!-- the view methods below will be selectable via the display tab -->
  <property name="view_methods">
    <element value="view"/>
  </property>
  <property name="default_view_fallback">False</property>

  <!-- permission required to add an item of this type -->
  <property name="add_permission">cmf.AddPortalContent</property>

  <!-- Python class for content items of this sort -->
  <property name="schema">senaite.core.content.samples.ISamplesSchema</property>
  <property name="klass">senaite.core.content.samples.Samples</property>

  <!-- Dexterity behaviours for this type -->
  <property name="behaviors">
    <element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
    <!-- Needed behavior to indexed in uid_catalog -->
    <element value="plone.app.referenceablebehavior.referenceable.IReferenceable" />
  </property>

  <!-- Action aliases -->
  <alias from="(Default)" to="(dynamic view)"/>
  <alias from="edit" to="@@edit"/>
  <alias from="sharing" to="@@sharing"/>
  <alias from="view" to="(selected layout)"/>

  <!-- View -->
  <action title="View"
          action_id="view"
          category="object"
          condition_expr=""
          description=""
          icon_expr=""
          link_target=""
          url_expr="string:${object_url}"
          visible="False">
    <permission value="View"/>
  </action>

  <!-- Edit -->
  <action title="Edit"
          action_id="edit"
          category="object"
          condition_expr=""
          description=""
          icon_expr=""
          link_target=""
          url_expr="string:${object_url}/edit"
          visible="False">
    <permission value="Modify portal content"/>
  </action>

</object>
