[Zope3-checkins] CVS: Zope3/src/zope/app/introspector - introspector.pt:1.3

Dmitry Vasiliev dima at hlabs.spb.ru
Thu Apr 8 08:12:32 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/introspector
In directory cvs.zope.org:/tmp/cvs-serv11543/src/zope/app/introspector

Modified Files:
	introspector.pt 
Log Message:
Corrected URL's for apidoc


=== Zope3/src/zope/app/introspector/introspector.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/introspector/introspector.pt:1.2	Tue Mar 23 17:07:47 2004
+++ Zope3/src/zope/app/introspector/introspector.pt	Thu Apr  8 08:12:30 2004
@@ -96,7 +96,7 @@
             </div>
           </td>
         </tr>
-        
+
         <!-- this section is currently not available
         <tr>
           <th class="introspector">
@@ -115,7 +115,7 @@
     </div>
 
     <div tal:condition="python:not introspector.isInterface()">
-    
+
       <table>
         <tr>
           <th colspan="2" i18n:translate="">Class Browser</th>
@@ -125,8 +125,10 @@
           <th class="introspector">
             <tal:span i18n:translate="class-component">Class</tal:span>:
           </th>
-          <td><a tal:attributes="href 
-                string: /++apidoc++/Class/index.html?path=${introspector/getModule}.${introspector/getClass}" 
+          <td><a tal:define="path python: (introspector.getModule()
+                + '.' + introspector.getClass()).replace('.', '/')"
+                tal:attributes="href
+                string: /++apidoc++/Class/${path}/index.html"
                 href="">
             <span tal:replace="introspector/getModule">Module</span
             >.<span tal:replace="introspector/getClass">Name</span></a></td>
@@ -139,8 +141,10 @@
           </th>
           <td>
             <div tal:repeat="base introspector/getBaseClassNames">
-              <a tal:attributes="href 
-                string: /++apidoc++/Class/index.html?path=${repeat/base/item}" 
+              <a tal:define="path
+                python: path('repeat/base/item').replace('.', '/')"
+                tal:attributes="href
+                string: /++apidoc++/Class/${path}/index.html"
                 href=""><span tal:replace="repeat/base/item" /></a>
             </div>
           </td>
@@ -163,7 +167,8 @@
           </th>
           <td>
             <div tal:repeat="interface introspector/getInterfaceNames">
-              <div tal:define="url string: /++apidoc++/Class/index.html?path=${interface}">
+              <div tal:define="url
+                string: /++apidoc++/Interface/${interface}/apiindex.html">
                 <a href=""
                     tal:attributes="href url"
                     tal:content="interface"
@@ -182,7 +187,8 @@
           <td>
             <div tal:repeat="interface introspector/getDirectlyProvidedNames"
                   tal:condition="introspector/getDirectlyProvided">
-              <div tal:define="url string: /++apidoc++/Class/index.html?path=${interface}">
+              <div tal:define="url
+                string: /++apidoc++/Interface/${interface}/apiindex.html">
                 <a href=""
                     tal:attributes="href url"
                     tal:content="interface"




More information about the Zope3-Checkins mailing list