remove 3.14 deprecation warning
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 06 Oct 2011 18:23:01 +0200
changeset 7918 d59db6068731
parent 7914 fb757a7d887e
child 7919 ae3307cac44e
remove 3.14 deprecation warning
web/views/baseviews.py
--- a/web/views/baseviews.py	Thu Oct 06 16:14:08 2011 +0200
+++ b/web/views/baseviews.py	Thu Oct 06 18:23:01 2011 +0200
@@ -89,7 +89,7 @@
 from cubicweb.selectors import yes, empty_rset, one_etype_rset, match_kwargs
 from cubicweb.schema import display_name
 from cubicweb.view import EntityView, AnyRsetView, View
-from cubicweb.uilib import cut, printable_value
+from cubicweb.uilib import cut
 from cubicweb.web.views import calendar
 
 
@@ -161,7 +161,7 @@
                 # about string format & all
                 self.w(entity.printable_value(rtype, value, format=format))
                 return
-        value = printable_value(self._cw, etype, value, props)
+        value = self._cw.printable_value(etype, value, props)
         if etype in ('Time', 'Interval'):
             value = value.replace(' ', '&#160;')
         self.wdata(value)