[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/zcmlmodule - index.pt:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Mon Mar 29 10:08:51 EST 2004


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

Modified Files:
	index.pt 
Log Message:


Show the handler when sensible.



Show more file info, such as lines and columns.



"Info" section is now only shown, if the info is text.




=== Zope3/src/zope/app/apidoc/zcmlmodule/index.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/apidoc/zcmlmodule/index.pt:1.1	Thu Feb 19 15:46:43 2004
+++ Zope3/src/zope/app/apidoc/zcmlmodule/index.pt	Mon Mar 29 10:08:50 2004
@@ -8,13 +8,29 @@
   </h1>
 
   <div class="indent" 
-       tal:condition="view/getFile">
-    <i>File:</i> <tal:block content="view/getFile"/>
+       tal:define="info view/getFileInfo"
+       tal:condition="info">
+    <i>File:</i> 
+    <tal:block content="info/file"/>, from
+    <tal:block content="string: (line ${info/line}, column ${info/column})"/> to
+    <tal:block content="string: (line ${info/eline}, column ${info/ecolumn})"/>
   </div>
 
   <div class="indent" 
        tal:condition="view/getInfo">
-    <i>Info:</i> <tal:block content="view/getInfo"/>
+    <i>Info:</i>
+    <tal:block replace="view/getInfo" />
+  </div>
+
+  <div class="indent" 
+       tal:define="handler view/getHandler"
+       tal:condition="handler">
+    <i>Handler:</i>
+    <a href=""
+       tal:attributes="href 
+           string:../../../Class/${handler/url}/index.html"
+       tal:content="handler/path">
+    </a>
   </div>
 
   <h2 class="details-section">Schema</h2>
@@ -70,6 +86,16 @@
   <h3 tal:content="dir/name"> 
     directive
   </h3>
+
+  <div class="indent" 
+       tal:condition="dir/handler">
+    <i>Handler:</i>
+    <a href=""
+       tal:attributes="href 
+           string:../../../Class/${dir/handler/url}/index.html"
+       tal:content="dir/handler/path">
+    </a>
+  </div>
 
   <div class="indent">
     <a href=""




More information about the Zope3-Checkins mailing list