[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog/dtml - manageIndex.dtml:1.3
Andreas Jung
andreas@zope.com
Tue, 11 Sep 2001 14:02:23 -0400
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog/dtml
In directory cvs.zope.org:/tmp/cvs-serv29218
Modified Files:
manageIndex.dtml
Log Message:
changed method of check if an index is a pre-2.4 index
=== Zope/lib/python/Products/ZCatalog/dtml/manageIndex.dtml 1.2 => 1.3 ===
<dtml-with sequence-key>
- <td>
- <div class="list-item">
- <dtml-var meta_type>
- <dtml-try>
- <dtml-let xx=numObjects></dtml-let>
- <dtml-except>
- (pre-2.4 index)
- </dtml-try>
- </div>
- </td>
- <td>
- <div class="list-item">
- <dtml-try>
- <dtml-var numObjects>
- <dtml-except>n/a
- </dtml-try>
- </div>
- </td>
- <td>
- <div class="list-item">
- <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
- </div>
- </td>
+ <td>
+ <div class="list-item">
+ <dtml-if "_.string.find(_.str(_.getattr(this(),'__implements__','old')),'PluggableIndexInterface')>-1">
+ <dtml-var meta_type>
+ <dtml-else>
+ (pre-2.4 index)
+ </dtml-if>
+ </div>
+ </td>
+
+ <td>
+ <div class="list-item">
+ <dtml-try>
+ <dtml-var numObjects>
+ <dtml-except>n/a
+ </dtml-try>
+ </div>
+ </td>
+
+ <td>
+ <div class="list-item">
+ <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
+ </div>
+ </td>
+
</dtml-with>
+
</tr>
</dtml-in>
</table>