[Zope-Checkins] CVS: Zope/lib/python/Products/ZCatalog/dtml - catalogView.dtml:1.6.10.1
Casey Duncan
casey@zope.com
Mon, 16 Dec 2002 13:34:44 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZCatalog/dtml
In directory cvs.zope.org:/tmp/cvs-serv19713/lib/python/Products/ZCatalog/dtml
Modified Files:
Tag: Zope-2_6-branch
catalogView.dtml
Log Message:
Collector #479: Type column of ZCatalog catalog tab now shows Unknown when it cannot determine the meta_type of a cataloged object
=== Zope/lib/python/Products/ZCatalog/dtml/catalogView.dtml 1.6 => 1.6.10.1 ===
--- Zope/lib/python/Products/ZCatalog/dtml/catalogView.dtml:1.6 Fri Jun 7 14:51:12 2002
+++ Zope/lib/python/Products/ZCatalog/dtml/catalogView.dtml Mon Dec 16 13:34:43 2002
@@ -71,13 +71,11 @@
</td>
<td align="left" valign="top">
<div class="form-text">
- <dtml-with sequence-item only>
- <dtml-if name="meta_type">
- <dtml-var name="meta_type" size="15">
- <dtml-else>
- <i>Unknown</i>
- </dtml-if>
- </dtml-with>
+ <dtml-if expr="has_key('meta_type') and meta_type">
+ <dtml-var name="meta_type" size="15">
+ <dtml-else>
+ <i>Unknown</i>
+ </dtml-if>
</div>
</td>
</tr>