[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/catalog/browser/advanced.pt handle indexes in advanced views that do not implement IStatistics so that at least the view renders without errors

Bernd Dorn bernd.dorn at fhv.at
Fri Nov 3 08:23:24 EST 2006


Log message for revision 71040:
  handle indexes in advanced views that do not implement IStatistics so that at least the view renders without errors

Changed:
  U   Zope3/trunk/src/zope/app/catalog/browser/advanced.pt

-=-
Modified: Zope3/trunk/src/zope/app/catalog/browser/advanced.pt
===================================================================
--- Zope3/trunk/src/zope/app/catalog/browser/advanced.pt	2006-11-03 09:10:50 UTC (rev 71039)
+++ Zope3/trunk/src/zope/app/catalog/browser/advanced.pt	2006-11-03 13:23:22 UTC (rev 71040)
@@ -10,11 +10,10 @@
        <th i18n:translate="">Document Count</th>
        <th i18n:translate="">Word Count</th>
    </tr>
-   <tr tal:repeat="indexname context"
-       >
+   <tr tal:repeat="indexname context">
        <td tal:content="indexname">foo</td>
-       <td tal:content="context/?indexname/documentCount">42</td>
-       <td tal:content="context/?indexname/wordCount">99</td>
+       <td tal:content="context/?indexname/documentCount | default">-</td>
+       <td tal:content="context/?indexname/wordCount | default">-</td>
     </tr>
 </table>
 



More information about the Zope3-Checkins mailing list