entity.py
changeset 3230 1d25e928c299
parent 3185 bd0126d17e83
parent 3212 07d11bacfefe
child 3293 69c0ba095536
--- a/entity.py	Mon Sep 14 11:25:56 2009 +0200
+++ b/entity.py	Tue Sep 15 15:01:41 2009 +0200
@@ -321,7 +321,7 @@
         return value
 
     def printable_value(self, attr, value=_marker, attrtype=None,
-                        format='text/html'):
+                        format='text/html', displaytime=True):
         """return a displayable value (i.e. unicode string) which may contains
         html tags
         """
@@ -351,7 +351,8 @@
                 return self.mtc_transform(value.getvalue(), attrformat, format,
                                           encoding)
             return u''
-        value = printable_value(self.req, attrtype, value, props)
+        value = printable_value(self.req, attrtype, value, props,
+                                displaytime=displaytime)
         if format == 'text/html':
             value = xml_escape(value)
         return value