[Zope-Checkins] SVN: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml converting floats from DateIndexes to DateTime instances

Andreas Jung andreas at andreas-jung.com
Tue Feb 1 09:49:55 EST 2005


Log message for revision 29007:
  converting floats from DateIndexes to DateTime instances
  

Changed:
  U   Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml

-=-
Modified: Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml
===================================================================
--- Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml	2005-02-01 14:40:27 UTC (rev 29006)
+++ Zope/branches/ajung-indexes-desuxing-branch/lib/python/Products/PluginIndexes/dtml/browseIndex.dtml	2005-02-01 14:49:55 UTC (rev 29007)
@@ -6,7 +6,13 @@
 <table border="1" align="center" width="100%" class="form-help">
   <dtml-in items>
     <tr>
-      <td>&dtml-sequence-key; </td>
+      <td>
+        <dtml-if "meta_type in ('DateIndex',)">
+          <dtml-var "DateTime(_['sequence-key'])">
+        <dtml-else>
+          &dtml-sequence-key; 
+        </dtml-if>
+      </td>
       <td>   
         <ul>
           <dtml-let v="_['sequence-item']">



More information about the Zope-Checkins mailing list