entity.py
changeset 7914 fb757a7d887e
parent 7907 08320697ca1a
child 7920 5146c63e8e34
--- a/entity.py	Thu Oct 06 16:14:08 2011 +0200
+++ b/entity.py	Thu Oct 06 16:14:08 2011 +0200
@@ -40,7 +40,7 @@
 from cubicweb.schema import RQLVocabularyConstraint, RQLConstraint
 from cubicweb.rqlrewrite import RQLRewriter
 
-from cubicweb.uilib import printable_value, soup2xhtml
+from cubicweb.uilib import soup2xhtml
 from cubicweb.mixins import MI_REL_TRIGGERS
 from cubicweb.mttransforms import ENGINE
 
@@ -619,8 +619,8 @@
                 return self._cw_mtc_transform(value.getvalue(), attrformat, format,
                                               encoding)
             return u''
-        value = printable_value(self._cw, attrtype, value, props,
-                                displaytime=displaytime)
+        value = self._cw.printable_value(attrtype, value, props,
+                                         displaytime=displaytime)
         if format == 'text/html':
             value = xml_escape(value)
         return value