[Zope-Checkins] CVS: Zope/lib/python/HelpSys/dtml - APIHelpView.dtml:1.4

Amos Latteier amos@zope.com
Tue, 16 Oct 2001 20:08:46 -0400


Update of /cvs-repository/Zope/lib/python/HelpSys/dtml
In directory cvs.zope.org:/tmp/cvs-serv6569/dtml

Modified Files:
	APIHelpView.dtml 
Log Message:
Added support for documenting Functions to API help topics. This is necessary to support help for things like PythonScripts.standard and the sequence module. Before the sequence module was DTML help, but that's wasn't right. This is especially obvious now the Python-based scripts and Page Templates can use the sequence module.


=== Zope/lib/python/HelpSys/dtml/APIHelpView.dtml 1.3 => 1.4 ===
 <h1>API Documentation</h1>
 
-<dtml-if "_.len(apis) > 1">
+<dtml-if "_.len(apis) > 1 or (apis and funcs)">
 <h3>Classes</h3>
 <dl><dd>
 <h2 class="api">
@@ -14,12 +14,37 @@
 </dd></dl>
 </dtml-if>
 
+<dtml-if "_.len(funcs) > 1 or (apis and funcs)">
+<h3>Functions</h3>
+<dl><dd>
+<h2 class="api">
+<dtml-in funcs>
+<a href="#<dtml-var name>"><dtml-var name></a>
+<dtml-unless sequence-end> , </dtml-unless>
+</dtml-in>
+</h2>
+</dd></dl>
+</dtml-if>
+
 <dtml-if doc>
 <dtml-var doc fmt="structured-text">
 <hr noshade>
 </dtml-if>
 
 <dtml-in apis>
+  <dtml-if expr="_['sequence-start'] and funcs">
+    <h2>Classes</h2>
+  </dtml-if>
+  <dtml-var view>
+  <dtml-unless expr="_['sequence-end'] and not funcs">
+    <hr noshade>
+  </dtml-unless>
+</dtml-in>
+
+<dtml-in funcs>
+  <dtml-if expr="_['sequence-start'] and apis">
+    <h2>Functions</h2>
+  </dtml-if>
   <dtml-var view>
   <dtml-unless sequence-end>
     <hr noshade>