web/views/plots.py
branchstable
changeset 5389 809d3b5b3d31
parent 5377 84d14ddfae13
child 5421 8167de96c523
--- a/web/views/plots.py	Fri Apr 23 14:55:10 2010 +0200
+++ b/web/views/plots.py	Fri Apr 23 12:19:54 2010 +0200
@@ -7,17 +7,13 @@
 """
 __docformat__ = "restructuredtext en"
 
-try:
-    from json import dumps
-except ImportError:
-    from simplejson import dumps
-
 from logilab.common.date import datetime2ticks
 from logilab.mtconverter import xml_escape
 
 from cubicweb.utils import UStringIO
 from cubicweb.appobject import objectify_selector
 from cubicweb.selectors import multi_columns_rset
+from cubicweb.web import dumps
 from cubicweb.web.views import baseviews
 
 @objectify_selector