<html metal:use-macro="views/apidoc_macros/details">
<body metal:fill-slot="contents">

  <h1 class="details-header"
      tal:content="context/getPath">
    zope.app.function
  </h1>

  <h2 class="details-section" i18n:translate="">Signature</h2>

  <div class="indent">
    <b><code
        tal:content="string:${context/zope:name}${context/getSignature}" />
    </b>
  </div>

  <div tal:condition="context/getDocString">
    <h2 class="details-section" i18n:translate="">Documentation String</h2>

    <div class="indent">
      <div class="documentation" tal:content="structure view/getDocString">
        Here is the doc string
      </div>
    </div>
  </div>

  <div 
      tal:define="attributes view/getAttributes"      
      tal:condition="attributes">

  <h2 class="details-section" i18n:translate="">Attributes</h2>

  <div class="indent">

    <ul class="attr-list">
    
      <li tal:repeat="attr attributes">
        <b><code tal:content="attr/name">attr</code></b>
        <tal:omit-tag condition="not: attr/type_link">
          (<span i18n:translate="">type:</span>
            <code tal:content="attr/type" />)
        </tal:omit-tag>
        <tal:omit-tag condition="attr/type_link">
          (<span i18n:translate="">type:</span>
          <a href="" 
             tal:attributes="href 
                 string:${view/getBaseURL}/Class/${attr/type_link}/index.html">
            <code tal:content="attr/type" /></a>)
        </tal:omit-tag>
        <br/>
        <i i18n:translate="">Value:</i>
        <code tal:content="attr/value">u''</code><br />
      </li>
    
    </ul>

  </div>
  </div>

</body>
</html>
