web/views/baseviews.py
changeset 7940 ac8052334e0d
parent 7918 d59db6068731
child 8130 85ade620056c
child 8416 e7f06e562a27
--- a/web/views/baseviews.py	Tue Oct 11 18:16:06 2011 +0200
+++ b/web/views/baseviews.py	Wed Oct 12 19:06:15 2011 +0200
@@ -132,21 +132,6 @@
     though usually dedicated for cells containing an attribute's value.
     """
     __regid__ = 'final'
-    # record generated i18n catalog messages
-    _('%d years')
-    _('%d months')
-    _('%d weeks')
-    _('%d days')
-    _('%d hours')
-    _('%d minutes')
-    _('%d seconds')
-    _('%d years')
-    _('%d months')
-    _('%d weeks')
-    _('%d days')
-    _('%d hours')
-    _('%d minutes')
-    _('%d seconds')
 
     def cell_call(self, row, col, props=None, format='text/html'):
         value = self.cw_rset.rows[row][col]
@@ -163,8 +148,9 @@
                 return
         value = self._cw.printable_value(etype, value, props)
         if etype in ('Time', 'Interval'):
-            value = value.replace(' ', ' ')
-        self.wdata(value)
+            self.w(value.replace(' ', ' '))
+        else:
+            self.wdata(value)
 
 
 class InContextView(EntityView):