entity.py
branch3.5
changeset 3212 07d11bacfefe
parent 3184 613064b49331
child 3230 1d25e928c299
child 3241 1a6f7a0e7dbd
--- a/entity.py	Mon Sep 14 15:11:58 2009 +0200
+++ b/entity.py	Mon Sep 14 18:24:42 2009 +0200
@@ -427,7 +427,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
         """
@@ -457,7 +457,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