[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container/Views/Browser - Contents.py:1.13 main.pt:1.14

runyaga runyaga@thisbox.com
Tue, 3 Dec 2002 09:32:38 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv27327

Modified Files:
	Contents.py main.pt 
Log Message:
backing out changes to formatTime and trying to move it to
macro utilities


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py 1.12 => 1.13 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py:1.12	Tue Dec  3 09:02:56 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/Contents.py	Tue Dec  3 09:32:38 2002
@@ -23,6 +23,7 @@
 from Zope.App.DublinCore.IZopeDublinCore import IZopeDublinCore
 from Zope.Proxy.ContextWrapper import ContextWrapper
 from Zope.App.OFS.Container.IZopeContainer import IZopeContainer
+from Zope.App.ZMI.ZMIViewUtility import ZMIViewUtility
 
 class Contents(BrowserView):
 
@@ -81,9 +82,3 @@
 
         return self._index()
 
-    time_undefined=u'N/A'
-    time_format='%Y/%m/%d'
-    def formatTime(self, in_date):
-        if hasattr(in_date, 'strftime'):
-            return in_date.strftime(self.time_format) 
-        return self.time_undefined


=== Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/main.pt 1.13 => 1.14 ===
--- Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/main.pt:1.13	Tue Dec  3 09:02:56 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/Views/Browser/main.pt	Tue Dec  3 09:32:38 2002
@@ -41,7 +41,7 @@
 
         <tbody>
 
-        <metal:block tal:repeat="item container_contents"> 
+        <metal:block tal:repeat="item container_contents">
           <tr tal:define="oddrow repeat/item/odd; url item/url"
               tal:attributes="class python:oddrow and 'even' or 'odd'" > 
             <td>
@@ -68,9 +68,9 @@
             </td>          
             <td><span tal:content="item/title|default">&nbsp;</span></td>
             <td><span tal:define="created item/created|default"
-                      tal:content="python:view.formatTime(created)">&nbsp;</span></td>
+                      tal:content="created">&nbsp;</span></td>
             <td><span tal:define="modified item/modified|default"
-                      tal:content="python:view.formatTime(modified)">&nbsp;</span></td>
+                      tal:content="modified">&nbsp;</span></td>
           </tr>
         </metal:block>
         </tbody>