[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/classmodule - function_index.pt:1.1

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 21:00:52 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/apidoc/classmodule
In directory cvs.zope.org:/tmp/cvs-serv12299/src/zope/app/apidoc/classmodule

Added Files:
	function_index.pt 
Log Message:


Added a details view for functions.




=== Added File Zope3/src/zope/app/apidoc/classmodule/function_index.pt ===
<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">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">Documentation String</h2>

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

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

  <h2 class="details-section">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">
          (type: <code tal:content="attr/type" />)
        </tal:omit-tag>
        <tal:omit-tag condition="attr/type_link">
          (type: 
          <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>Value:</i>
        <code tal:content="attr/value">u''</code><br />
      </li>
    
    </ul>

  </div>
  </div>

</body>
</html>



More information about the Zope3-Checkins mailing list